Results 1 to 4 of 4

Thread: Trouble with sps-(

  1. #1
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default Trouble with sps-(

    Hi. So, i have a problem with a script.
    I initialize sps:
    PHP Code:
    procedure SetupSps;
    begin
    SPS_Setup
    (RUNESCAPE_SURFACE, ['6_8']);
    end
    after - generate waypoint path with Wolygon's Path Creator,
    and use this path:
    PHP Code:
    procedure GoToBank;
    var
    GoBankTPointArray;
    begin
    ClickNorth
    (SRL_ANGLE_None);
    Writeln('Walking to Bank...');
    GoBank := [Point(25083412), Point(24823417), Point(24723444), Point(24513475), Point(24303489), Point(24123496), Point(24103526), Point(24543526)];
    if 
    SPS_WalkPath(GoBankthen
    Writeln
    ('At the Bank..');
    while(
    IsMoving) do
       
    Wait(Random(5000));

    end
    This code is compile without any error, but after run it I infinitely see
    PHP Code:
    formWritelnWalking At Bank 
    and doesn't nothing. How i can fix to this problem?

  2. #2
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    The World Map might need updating where is '6_8' that location as some location are bad on world Map.



    ^^

  3. #3
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    if it isn't coming up with "At the Bank.." then that means it is failing to walk.. is everything else in the script working ok?

    put this in your script just after SPS_Setup

    Simba Code:
    SPS_Debug := True;
    Then run the script and It will give you more of an idea of what is going wrong...

  4. #4
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    After - SPS_Debug:= true - script is working. Mystic.

    But after second start,
    PHP Code:
    SPS_GetMyPosFinished in 281 msResult = (-1, -1)
    SPS_GetMyPosFinished in 297 msResult = (-1, -1)
    SPS_GetMyPosFinished in 280 msResult = (-1, -1
    i see that in debug window.
    After first run with debug :
    PHP Code:
    formWritelnWalking to Bank...
    formWritelnSPS_GetMyPosFinished in 296 msResult = (25033407)
    formWritelnSPS_GetMyPosFinished in 296 msResult = (24793431)
    formWritelnSPS_GetMyPosFinished in 296 msResult = (24753463)
    formWritelnAt the Bank..
    formWritelnSuccessfully executed
    Last edited by CynicRus; 06-18-2012 at 01:26 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •