Results 1 to 3 of 3

Thread: SPS Help

  1. #1
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SPS Help

    I'm trying to use SPS to verify at the start of my script that I am indeed in the Grand Exchange. How could I do this? I have the function SPS_GetMyPos but I'm not sure where to go from there. Is there a way I can specify something like a range of acceptable TPoints to make sure I'm starting in the right area? Thanks for any help!

  2. #2
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Take a look at this, from my Planking script.
    Obviously you would have to change the coordinates, but that is the basic structure you should use.

    Simba Code:
    rocedure NotInArea;
    var
      P : TPoint;
    Begin
      P := SPS_GetMyPos;
      if ((P.x <= 4825) or (P.x >= 5080) or (P.y <= 2525) or (P.y >= 3000)) then
      begin
        writeln('not in area');
        Logout;
        TerminateScript;
      end else
        writeln('in area');
    end;

  3. #3
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright thanks I think that should do it!

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
  •