SRL Archive - Help

Walking


Footy

2012-07-17 16:09:49

I'm Making a script that cuts maples behind seers, then banks, but I cant figure out how to get my script to walk to the bank. I've tried SPS, that didnt work
program MapleChopper;
//{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}


Procedure Walkwherever;
Var
WalkW: TPointarray; //declares that path is a TPA
Begin
SetAngle(SRL_ANGLE_HIGH); //Sets the angle high, not necessary though
MakeCompass('N'); //makes compass 'North'
WalkW := [Point(2738, 2677)]; //this is where your points would go ex: Point[234, 238] , Point[]
Sps_WalkPath(WalkW); //this tells it to walk the path WalkW
End;




begin
SetupSRL
SPS_Setup(RUNESCAPE_SURFACE,['6_6']);
Walkwherever

end.
I've tried a DTM of the bank symbol and of the bank building, neither of those worked. Whats the easiest way to get it to work? Its only a one click path, not that complex.

Nebula

2012-07-17 16:11:44

Symbol walking.

If FindSymbol(x, y, 'Symbol_Bank') then
mouse(x, y, 2, 2, true);
FFlag;

Footy

2012-07-17 16:18:37

I tried that, got this
SRL Compiled in 0 msec
** Warning in GetSymbolColorIn: symbol_bank is not a valid name. **
Exception in Script: The bitmap[0] does not exist
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Admin bitmap, SRL - Flag bitmap]

x[Warrior]x3500

2012-07-17 17:12:31

** Warning in GetSymbolColorIn: symbol_bank is not a valid name. **

-.- what do u think that means. hint, use 'bank'

Footy

2012-07-17 17:30:32

lol thanks. Still dosent work though, I think its because of the 50 pixel Y offset.
E: edited globals, works well now. Thanks for the help guys!