Results 1 to 5 of 5

Thread: Kamanja road color finder

  1. #1
    Join Date
    Feb 2006
    Location
    With mooncow on the moon
    Posts
    292
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default Kamanja road color finder

    hi guys,

    well my latest script is based in kamanja and it is my first srl script, Fakawi know's what it is but i dont wanna tell anyone until its flawless. The function bellow is one of a few that i made for the script and i can tell you that im working on a wide range of kamanji scripts like fishers, miners auto fighters ect ect.


    o ya and btw i tried to use "standards"





    Code:
    Function KamanjaRoadColor: boolean;
    var C, TX ,TY, kamanjaroad : integer;
    
    begin
     kamanjaroad := BitmapFromString(10, 2, 'z78DA33304000572737' +
           '235747032200A64A52F50200A8431815');
    
       begin
       repeat
       c:=c+1;
       If FindBitMapspiralTolerance(kamanjaroad,TX,TY,580,7,718,155,c) then
          begin
                Kroad:=GetColor(TX+8,TY);
                Players[CurrentPlayer].Loc:='Kamanja';
                writeln('RoadColor '+inttostr(kroad))
                Result:=true;
                break;
          end;
                wait(50+random(50))
          until(result)or(c=25)
       
         if kroad=0 then writeln('RoadColor NOT Found');
         FreeBitMap(kamanjaroad);
       end;
     end;

  2. #2
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Put the FreeBitmap before the last end. That will only be free'd if it's found.

    Thanks for attempting standards, makes things so much more legible.

  3. #3
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Solemn....

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

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    It's Karamja, if that is what you ment...

    Good Job!



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  5. #5
    Join Date
    Feb 2006
    Location
    California-Foster City
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Great job
    The Welcoming Party
    Don't be a Fakawi! Get 25 hours of sleep a day!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Road COlor..
    By faster789 in forum OSR Help
    Replies: 1
    Last Post: 04-09-2008, 11:09 PM
  2. Radial Get Road Color
    By YoHoJo in forum Research & Development Lounge
    Replies: 17
    Last Post: 12-24-2007, 03:29 PM
  3. Useing grass color as road color??????
    By ronny.m.p in forum OSR Help
    Replies: 7
    Last Post: 04-28-2007, 09:42 PM

Posting Permissions

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