Log in

View Full Version : Walking



Footy
07-17-2012, 08:09 PM
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
07-17-2012, 08:11 PM
Symbol walking.

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

Footy
07-17-2012, 08:18 PM
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
07-17-2012, 09:12 PM
** Warning in GetSymbolColorIn: symbol_bank is not a valid name. **

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

Footy
07-17-2012, 09:30 PM
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!