Results 1 to 6 of 6

Thread: symbol auto colour

  1. #1
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default symbol auto colour

    hi i am adapting to my wood cutter and i am trying to auto colour a tree symbol.

    i have found in srl there is a function called get symbol colour:
    SCAR Code:
    {*******************************************************************************
    function GetSymbolColor(var rx, ry: Integer; Name: string): Integer;
    By: Stupid3ooo and Modified by Starblaster100
    Description: Returns the Color of the Chosen Symbol, searching the whole Minimap
    *******************************************************************************}


    function GetSymbolColor(var rx, ry: Integer; Name: string): Integer;
    begin
      Result := GetSymbolColorIn(rx, ry, LowerCase(Name), MMX1, MMY1, MMX2, MMY2);
    end;

    now what i want to do is

    SCAR Code:
    RadialWalk({the sybol colour} , 140, 250, 70, 2, 2);

    but i dont no how to store the colour of the symbol so i can use it in radial walk

    could some one help me please
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Look at the function, it says integer right? That mean that It Stores the colour into itself

    So just put

    SCAR Code:
    RadialWalk(GetSymbolColor(x, y, 'Rare Tree' , 140, 250, 70, 2, 2));

    or you could do like

    SCAR Code:
    var
      TheColour: INteger;
    begin
      TheColour := GetSymbolColor(x, y, 'Rare Tree');
      RadialWalk(TheColour , 140, 250, 70, 2, 2);
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh thanks i was wondering if that was how you did it but it looked a bit weird having like all that in radial walk. thanks shall use now!
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    My bad. Try this

    SCAR Code:
    RadialWalk(GetSymbolColor(x, y, 'Rare Tree') , 140, 250, 70, 2, 2);
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  5. #5
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh yer i did that anyway but thanks 4 correction
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  6. #6
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    ok..anyways, it's better to store the color into a var.
    less cpu usage, more effency... and symbol colors don't change after loading them on mm if i'm right.

    conclusion: make a (preferably global, depends on how much you need that symbol color) var that holds that color for usage in for eg. RW.

    -Tsn.
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. RadialWalk colour?
    By StrikerX in forum OSR Help
    Replies: 8
    Last Post: 04-22-2008, 10:47 PM
  2. Replies: 3
    Last Post: 12-02-2007, 11:46 PM
  3. clicking the quest symbol then the bank symbol
    By RudeBoiAlex in forum OSR Help
    Replies: 7
    Last Post: 03-22-2007, 11:14 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
  •