SRL Archive - OSR Help

Find player location and move to another location


shakssage

2012-03-25 13:46:11

Hi. I'm having some trouble on how to find what the current player location is.

Sometimes my script accidentally (I think accidentally :P) clicks away from where it is supposed to click and therefore makes the player move from the bank chest spot in soul wars. If this occurs, sometimes it goes so far that it can't see the bank chest on the screen, so just stands there.

How can I find out where the player is and how to move to the bank spot?

Thanks.

NKN

2012-03-25 14:37:45

Alright, what?
What do you want it to do, Click the chest, or just move to where the chest is?

Abu

2012-03-25 14:53:40

Just try to make the path as accurate as possible.


Unfortunately I'm not a member so I can't give you exact details :(

Brandon

2012-03-25 14:58:29

Depends on what the script does.. if it's an alching script you can add something like:


While IsMoving do
wait(1);
fflag(0);
OpenBankChest(SRL_BANK_SW);

That way it waits until it's done doing whatever first.. then it'll open the bank. Or just use FindSymbol to find the bank symbol.. there's actually many ways to determine if near the bank.

Home

2012-03-25 15:18:58

From: ggzz
Depends on what the script does.. if it's an alching script you can add something like:


While IsMoving do
wait(1);
fflag(0);
OpenBankChest(SRL_BANK_SW);

That way it waits until it's done doing whatever first.. then it'll open the bank. Or just use FindSymbol to find the bank symbol.. there's actually many ways to determine if near the bank.


You should first do FFlag(0) then while IsMoving do Wait(100);

Because if the flag is not there, it will wait for 10 secs to flag appear.


~Home

shakssage

2012-03-26 08:57:01

Thanks for the replies. I did it with FindSymbol. Was very easy.