Log in

View Full Version : SPS Functioning Weird?



Google
11-07-2012, 11:58 PM
Is this happening for anyone else I got a new computer recently and I am able to script again. Most of my procedures and functions are acting up from the last update which completely broke all my scripts in every single ASPECT.

I will list one error here:

SPS not grabbing position > It will work as a single procedure as a test (example: It will grab the coords and run to the designated area) but not into the loop It will just sit there and terminate from failsafe. This has never happend to me before and I've spent days trying to figure it out.

How it works into the script ^ I am having it teleport, having it wait until it finds a symbol when it reloads, having it wait 3 seconds incase its any kind of loading issue as a test, then having it call the path and try to grab the position.

Does anyone else run into this problem, I haven't scripted in a long long time so I don't know if its an error on my part.

Code Below:

PROCEDURE WALKBACK;
BEGIN
WALK := [Point(346, 349), Point(337, 351),Point(330, 354), Point(323, 356), Point(311, 357),Point(303, 358), Point(278, 326), Point(274, 319),Point(269, 310), Point(261, 305), Point(256, 300),Point(251, 296), Point(242, 286), Point(236, 278),Point(226, 269), Point(219, 262), Point(209, 254),Point(198, 244), Point(193, 234), Point(193, 224),Point(189, 213), Point(192, 198), Point(191, 139),Point(161, 139), Point(138, 123), Point(139, 125),Point(140, 126)]
SPS_WALKLINE(WALK);
END;
PROCEDURE TELEPORT;
BEGIN
FTAB(28);

IF FINDBITMAPTOLERANCEIN(TELE, X, Y, MIX1, MIY1, MIX2, MIY2, 35) THEN
BEGIN
WRITELN('FOUND THE TELEPORT ICON');
MMOUSE(X, Y, 5, 5);
CLICKMOUSE2(TRUE);
END ELSE
WRITELN('COULD NOT FIND ICON, UPDATE BITMAP');

FTAB(25);

MARKTIME(T);
REPEAT
WAIT(10);
UNTIL(TIMEFROMMARK(T) > 4000) OR FINDSYMBOL(X, Y,'CLOTHES SHOP')

IF DEBUG THEN
WRITELN('WE FOUND THE CLOTHES SHOP ICON, GRABBING SPS COORDS');


WAIT(3000); //[TESTING WAIT]
WALKBACK;

//IF DEBUG THEN
// PRINTONSMART;

END;

Walkline is just a modified version of walkpath incase you were wondering.