SRL Archive - OSR Help

Object Pickup


Evaporation

2012-06-17 09:50:55

Hi Guys,

I'm trying to add a feature to a script I'm currently using.

I want the script to pick up charms, all of them. I have no problem finding colors, that's the easy part, haha, what I'm having trouble is… what the heck and where the heck, do I write and call the method?

Thanks for any assistance :)

riwu

2012-06-17 10:04:55

U write them in a separate procedure/function in the script. (Where else can u write?)

Call it anytime u want, preferably after a fight (use srl_infight or averagepixelshift to detect the end of the fight)

Gucci

2012-06-17 10:05:02

Just write a procedure for picking them up and call it in the main loop

Evaporation

2012-06-17 10:11:37

@Gucci and my problem begins in the first two words of what you said.. :|

Olly

2012-06-17 10:28:40

What script are you trying to edit?

Evaporation

2012-06-17 21:35:46

From: Ollybest
What script are you trying to edit?



Caotoms Rock Crab Trainer v2.0.1. I'm trying to add charm pickup to it.
http://villavu.com/forum/showthread.php?t=75527

Noob King

2012-06-23 02:51:24

The best place would probably be before searching for another crab. If you are wanting some one to give you the code and tell you where to put it however, that most likely won't happen. If you don't know how to make your own method for picking stuff up I suggest starting here: http://villavu.com/forum/forumdisplay.php?f=191