Can someone tell me what I'm doing wrong?

Discussion in 'Archives' started by 9pyro9mage9, May 28, 2007.

Can someone tell me what I'm doing wrong?
  1. Unread #1 - May 28, 2007 at 2:14 AM
  2. 9pyro9mage9
    Joined:
    Apr 3, 2007
    Posts:
    241
    Referrals:
    0
    Sythe Gold:
    0

    9pyro9mage9 Active Member
    $5 USD Donor

    Can someone tell me what I'm doing wrong?

    Can someone tell me why this script won't work? it seems right I made it but I don't know whats wrong with it. When I run it it says "Unknown identifier 'm' in script". Here is the script...
    All I want this script to do is if i press the key "m" I want it to search for one of those colors if it cant find the other then click on it.
     
  3. Unread #2 - May 28, 2007 at 2:17 AM
  4. Infantry001
    Joined:
    Mar 19, 2006
    Posts:
    90
    Referrals:
    0
    Sythe Gold:
    0

    Infantry001 Member

    Can someone tell me what I'm doing wrong?

    Code:
    program Goblin;
    
    {.include SRL/SRL.scar}
    
    procedure Attack;
    begin
      if Findcolorspiraltolerance(x,y,3510411,5,5,510,330,5 ) or
      Findcolorspiraltolerance(x,y,5476460,5,5,510,330,5 ) then
      begin
        wait(10+random(10));
        mouse(x,y,1,1,false);
        wait(300+random(500));
        chooseoption(x,y,'attack');
      end;
    end;
    
    procedure Setup;
    begin
      setupsrl;
    end;
    
    function key : boolean;
    begin
      result := IsKeyDown('m');
      wait(10+random(50));
    end;
    
    begin
      Setup;
      repeat
        if key then
          Attack;
      until(false);
    end.
    Don't understand? Let me know.
     
  5. Unread #3 - May 28, 2007 at 2:28 AM
  6. 9pyro9mage9
    Joined:
    Apr 3, 2007
    Posts:
    241
    Referrals:
    0
    Sythe Gold:
    0

    9pyro9mage9 Active Member
    $5 USD Donor

    Can someone tell me what I'm doing wrong?

    thnks for the help
     
< selling mills paypal 6$ea look inside for further details | ~~--==Summah Time==--~~ >

Users viewing this thread
1 guest


 
 
Adblock breaks this site