Results 1 to 16 of 16

Thread: Custom SPS Map

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default Custom SPS Map

    My Map -

    Or do I have to have the FULL map, with ALL of the places recorded? :s

    Simba Code:
    procedure WalkInsideFrosts;
    var
      myPath:TPointArray;
    begin
    myPath := [Point(242, 356), Point(247, 351), Point(256, 350), Point(265, 356),
    Point(271, 363), Point(278, 365), Point(285, 365), Point(294, 365),
    Point(301, 370)];
    SPS_Setup(runescape_surface,['0_0Frosts']);
    SPS_WalkPath(myPath);

    end

    Soz, i'm kinda clueless about SPS..

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    The map has to be 500x500 without any player/npc/monster dots on them. If you just need that area, then that map would work if you remove the dots.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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

    Default

    You don't need the entire area, just the part where you'll be walking so what you have should be fine. It has to be 500x500. Remove the yellow/white dots with this script I made a while back for personal use:

    Simba Code:
    program colormap;
    {$i srl/srl.simba}
    var
      x, y: Integer;
    begin
      SetupSRL;
      ActivateClient;
      repeat
        if (FindColorTolerance(x, y, 387575, 139, 95, 230, 167, 20))
        then
          Mouse(x, y, 0, 0, true);
      until((FindColorTolerance(x, y, 387575, 44, 54, 83, 86, 20)) = false);
    end.

    Basically open the map in paint, use the simba color picking tool to get the color of the point you want to delete, put that in find color tolerance. Get the coordinates of the map and put them in as x1y1x2y2. use the color picking tool in paint and choose the color you want to replace the yellow/white dots with (in this case the lightblue snow color). start with a tolerance of like 20 and increase it until all of the color is replaced.

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    You're a genius^
    I change my vote to a yes on your app.

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Frosties I see :P Good luck

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

    Default

    Oh I didn't realize this was going to be a frost dragon script, I thought it was going to be a Ice warrior killing script, I didn't see the procedure name

    Sorry for not thinking of this sooner, but you don't have to manually make the map like that. This dungeon is showed on the map so you can just open it up and make the map by setting the zoom to 100%, and choosing the option to remove the labels like so: . Although you might want to remove those yellow boxes.

    but if you don't feel like doing that either you can find the folder that is somewhere in the SPS section that has all the dungeon maps.

    Edit: found it. use the attached image (click on it until it becomes its own separate page, then right click and make sure to save it as a .png so the quality isn't distorted.)
    Last edited by Nebula; 03-18-2012 at 01:54 AM.

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    That's not part of the Frost Dragon Cavern, btw gratz on Member!

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

    Default

    Sin, what are you trying to do as make a SPS map to walk? I found it to create most of the map and create a separate area's in SPS.
    Like:
    Simba Code:
    Frosts = 5;
    Simba Code:
    Frosts:
          with SPS_Surface do
          begin
            Name        := 'Frosts';
            ImagePath   := SPS_IMG_PATH + 'Frosts\';
            FactorX     := 400;
            FactorY     := 400;
            TileOffsetX := -1;
            TileOffSetY := -1;
            Tolerance   := 0.5;
          end;
    <3



    ^^

  9. #9
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    I'll try that, busy botting atmo xD

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

    Default

    Quote Originally Posted by Sin View Post
    That's not part of the Frost Dragon Cavern
    Oh lol. Didn't realize.

    Quote Originally Posted by Sin View Post
    btw gratz on Member!
    Thanks


    btw if you use the script I posted to remove the dots, don't forget to to remove the black on the bottom of each dot. Easiest way to do that is to [in paint] go to view->zoom. Otherwise it can be a pain to have to change around the box in FindColorTolerance due to the black area's in the cavern.

  11. #11
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Yeah I figured that out, heres my new map.
    SPS isn't my strong suit, I might just have to rely on DTM walking..


  12. #12
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Alrighty Mat, I tried your solution, this is what came up -

    [Error] C:\Simba\Includes\sps/sps.simba(99:5): Unknown identifier 'FROSTS' at line 98

    Simba Code:
    FROSTS:
          with SPS_Surface do
          begin
            Name        := 'Frosts';
            ImagePath   := SPS_IMG_PATH + 'Frosts\';
            FactorX     := 400;
            FactorY     := 400;
            TileOffsetX := -1;
            TileOffSetY := -1;
            Tolerance   := 0.8;
          end;

    Simba Code:
    procedure WalkInsideFrosts;
    var
      myPath:TPointArray;
    begin
    myPath := [Point(242, 356), Point(247, 351), Point(256, 350), Point(265, 356),
    Point(271, 363), Point(278, 365), Point(285, 365), Point(294, 365),
    Point(301, 370)];
    SPS_Setup(Frosts,['0_0']);
    SPS_WalkPath(myPath);
    end;

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

    Default

    Make sure that you put frosts up here

  14. #14
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    That explains it .___________.

  15. #15
    Join Date
    Nov 2011
    Location
    Louisiana
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    That explains it .___________.
    I'm just happy I knew why it said Unknown Identifier before you did. Lol. Btw, check your PM's.

  16. #16
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    It worked!
    Thanks Mat + Nebs <3

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
  •