Results 1 to 7 of 7

Thread: FindColorSpiral problem

  1. #1
    Join Date
    Nov 2006
    Location
    Location, Location
    Posts
    1,126
    Mentioned
    6 Post(s)
    Quoted
    41 Post(s)

    Default FindColorSpiral problem

    For a script I'm updating (DummyCurser by neG), I have this statement to check if there are enough runes. zx1, zy1, zx2, and zy2 are all declared and that part isn't the problem. The problem occurs when it tries to find this color (which never changes) and it always says it cant be found, if I take it out it works perfectly. But it just cant seem to find the color. (its the purple color in the curse spells and crumble undead)

    SCAR Code:
    if FindColorSpiral(x,y,15533737,zx1,zy1,zx2,zy2) then
        begin
          case Lowercase(Spell) of
            'confuse': Cast('Confuse');
            'weaken': Cast('Weaken');
            'curse': Cast('Curse');
            'crumble undead': Cast('Crumble Undead');
          else
            begin
              WriteLn('Didnt enter a correct spell... Logging Out.');
              Logout;
              wait(2000)
                NextPlayer(False);
              Exit;
            end;
          end;
        end
      else
        begin
          WriteLn('Not enough runes for cast.');
          Wait(500);
          WriteLn('Logging out.');
          Logout;
          wait(2000)
            NextPlayer(False);
          Exit;
        end;

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Use FindColorSpiralTolerance, since the colours in runescape change slightly every once in a while.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    Nov 2006
    Location
    Location, Location
    Posts
    1,126
    Mentioned
    6 Post(s)
    Quoted
    41 Post(s)

    Default

    That color never changes and I fixed my problem, for some reason if I had it in the if statement it would always be false, so I just added a boolean and it works now. Makes no sense that it wouldn't work before, but at least its working now hehe. Heres how it looks now

    SCAR Code:
    castit := FindColorSpiral(x,y,15533737,zx1,zy1,zx2,zy2);
      if castit then
        begin
          case Lowercase(Spell) of
            'confuse': Cast('Confuse');
            'weaken': Cast('Weaken');
            'curse': Cast('Curse');
            'crumble undead': Cast('Crumble Undead');
          else
            begin
              WriteLn('Didnt enter a correct spell... Logging Out.');
              Logout;
              wait(2000)
                NextPlayer(False);
              Exit;
            end;
          end;
        end
      else
        begin
          WriteLn('Not enough runes for cast.');
          Wait(500);
          WriteLn('Logging out.');
          Logout;
          wait(2000)
            NextPlayer(False);
          Exit;
        end;

  4. #4
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I have no idea what you're talking about, so I'm just going to act as if I understood
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    good that you helped him santa
    ~Hermen

  6. #6
    Join Date
    Jan 2007
    Location
    The Netherlands!
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    lol this is my cast function:

    SCAR Code:
    program curser;
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\magic.scar}  //<-----very important for it...

    const
    spelll = 'curse'; // you can change this into any spell you want


    procedure Curse; //select the curse spell

    Begin
    cast(spelll);
    end;

    hope you can do anything with it... or is it too simple? =P
    Derp.

  7. #7
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its pretty simple considering you just used an srl function... i think he already has a function like that anyway
    The truth finally came out...


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. No FindColorSpiral in SRL 4?
    By pianoman933 in forum OSR Help
    Replies: 5
    Last Post: 09-23-2008, 01:13 AM
  2. [.net]FindColorSpiral
    By SlashShot in forum C#/Visual Basic Help and Tutorials
    Replies: 0
    Last Post: 12-23-2007, 04:50 PM
  3. problem with FindColorSpiral
    By Dahlriku in forum OSR Help
    Replies: 3
    Last Post: 09-29-2007, 06:11 PM
  4. FindColorSpiral Question
    By PwNZoRNooB in forum OSR Help
    Replies: 11
    Last Post: 04-16-2007, 06:39 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
  •