Results 1 to 12 of 12

Thread: Need helps with SPS.

  1. #1
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default Need helps with SPS.

    How could I check if the Map I'm using aka the IMAGE is on the minimap?

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

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

    Default

    You could use the SPS_GetMyPos function with the SPS_PosToTile function, read descriptions at Includes/SPS/SPS.simba

    Edit:
    Actually I think this is wrong

  4. #4
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    do you mean check if the map you have loaded is the correct one for your current location?

    ~shut
    I'm making a Air rune crafter to practise. I want something to check if he is at the top of the altar mountain (where he can craft the runes) to do this I want to load the Map from in the sps folder (wich I know how to) but now I want to check if the map is one the minimap.

  5. #5
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    well all i can suggest is get that pos then to check if it is the correct map do a SPS_GetMyPos and check its output with what you think it should be

    if its too far off then i guess you can assume its the wrong map

    oh and sorry for the delay

    ~shut

  6. #6
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    well all i can suggest is get that pos then to check if it is the correct map do a SPS_GetMyPos and check its output with what you think it should be

    if its too far off then i guess you can assume its the wrong map

    oh and sorry for the delay

    ~shut
    Gonna test this.

    EDIT: Doesn't seem to work :s
    Last edited by NexPB; 01-11-2012 at 08:30 PM.

  7. #7
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default

    I recive this error now Error: Exception: Type Mismatch at line 100

    The line:
    Simba Code:
    SPS_Setup(RUNECRAFTING_ALTARS, [0, 0]);

  8. #8
    Join Date
    May 2007
    Location
    Waterloo, Ontario, Canada
    Posts
    1,008
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NexPB View Post
    I recive this error now Error: Exception: Type Mismatch at line 100

    The line:
    Simba Code:
    SPS_Setup(RUNECRAFTING_ALTARS, [0, 0]);
    Create a string and compare the resultant with your location. Also, take out SPS_Debug = true; from your code (I had this happen to me when I was debugging with SPS, for some reason you have to create a string and then toss the resultant into it, then you can do a comparison.)



  9. #9
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by NexPB View Post
    I recive this error now Error: Exception: Type Mismatch at line 100

    The line:
    Simba Code:
    SPS_Setup(RUNECRAFTING_ALTARS, [0, 0]);
    0, 0 should be a string
    so you want this
    Simba Code:
    SPS_Setup(RUNECRAFTING_ALTARS, ['0, 0']);

    ~shut

  10. #10
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    0, 0 should be a string
    so you want this
    Simba Code:
    SPS_Setup(RUNECRAFTING_ALTARS, ['0, 0']);

    ~shut
    Ty didn't know this.

    edit: fixed it but SPS-GetMyPos didn't seem to work .. Anything else i can try?
    Last edited by NexPB; 01-12-2012 at 05:12 PM.

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

    Default

    Hey man When I was Making a Fire Runner gave up :P Might re try again the SPS altar walking I had to use RadialWalk as Its the only one that worked.
    Mat



    ^^

  12. #12
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Aligndude View Post
    Hey man When I was Making a Fire Runner gave up :P Might re try again the SPS altar walking I had to use RadialWalk as Its the only one that worked.
    Mat
    Im using radial walk and dtms to get to altar but I want something to know when im at the altar area

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
  •