SRL Archive - OSR Help

Need help with script: Resuming work when item spawns


L3nnuk

2013-04-20 12:23:14

Hi guys, I am currently working on my first script(yey!) that telegrabs Wines of Zamorak and then teles back to falador to bank them.

So far its all going well (It telegrabs inventory full and then teleports to Falador, still have to figure out walking, but that doesn't seem that hard), but I still need some help with some things.
Namely, how to put the script to idle/make wait after the wine has been grabbed to the point it respawns?
Right now, I am just using wait with the time of wine to respawn on the lowest worlds. Thus slowing down my script too much.

Can someone maybe give a small nudge in the right way? :P

Is it possible to use the minimap to check when red dot appears then resuming work? How to make sure its the right red dot, not some random item dropped on the ground?

wthomas

2013-04-21 11:32:44

you can set the compass angle to asuch that another player will never be in front of the wine, then presuming you've already grabbed one have the script rememeber where it spawned on the main screen and search a box for pixelshift. If many pixels change then the wine has spawned.