SRL problems?

Discussion in 'Scar/Simba Help' started by quipeace, Mar 4, 2008.

SRL problems?
  1. Unread #1 - Mar 4, 2008 at 9:32 AM
  2. quipeace
    Referrals:
    0

    quipeace Guest

    SRL problems?

    Hi everyone,

    I just recently started making scripts for scar, I've made several little scripts and I thought i was ready for the good work :) ...well I guess I wasn't

    I'm making a willowcutter/firemaker using a tutorial about making a woodcutter found on srl-forums.com and another tutorial (also found on srl-forums.com) about things they don't mention in beginner tutorials, that is where the problems begin

    if i want to use the antirandoms i get the following error:
    Failed when compiling
    Line 68: [Error] (68:1): Unknown identifier 'FindTalk' in script C:\Program Files\scar\Scripts\WillowBurnerXL.scar
    I have no idea what I'm doing wrong here :(

    anyway, this is what i got so far

    Code:
    
                                                                                  
    program WillowBurnerXL;                                                       
    {.include SRL/SRL.scar}                                                       
    {.include SRL/SRL/Skill/WoodCutting.scar}                                    
    {.include SRL/SRL/Skill/FireMaking.scar}                                      
                                                                                  
                                                                                  
    var    //Variables (Don't edit this.)                                         
    x:    Integer;                                                                
    y:    Integer;                                                                
                                                                                  
                                                                                  
    const  //Constants (Edit this.)                                               
    pin  = 'Your bankpin';                                                        
    user = 'Your Username';                                                       
    pass = 'Your Password';                                                       
                                                                                  
    ////////////////////////////////////////////////////////////////////////////////
    procedure Clear;                                                              
    begin                                                                         
         cleardebug;                                                              
    end;                                                                          
    ////////////////////////////////////////////////////////////////////////////////
    procedure Login;                                                              
    begin                                                                        
         if (FindColor(x,y,16777215,455,290,455,290)) then                        
         begin                                                                    
         //username                                                               
         wait(2000+random(50));                                                   
         movemousesmooth(x,y);                                                    
         wait(500+random(50));                                                    
         clickmouse(x,y,true);                                                    
         wait(2000+random(50));                                                   
         sendkeys(user);                                                          
         //password                                                               
         wait(1000+random(50));                                                   
         sendkeys(pass);                                                          
         wait(2000+random(50));                                                   
         end;                                                                     
    end;                                                                          
    ////////////////////////////////////////////////////////////////////////////////
    procedure DoAntiRandoms;                                                      
    begin                                                                         
    FindTalk;                                                                     
    FindNormalRandoms;                                                            
    if (FindFight = true) then                                                    
              begin                                                               
              RunAwayDirection('N');                                              
              Wait(10000 + random(2000));                                         
              RunBack;                                                           
              end;                                                                
    end;                                                                          
    ////////////////////////////////////////////////////////////////////////////////
    
    
    begin
    SetupSRL;
    clear;
    login;
    end.
    I hope theres someone who can help me:)

    Quipeace, a starting scripter

    EDIT: I WILL BE BACK IN ABOUT AN HOUR!
     
  3. Unread #2 - Mar 5, 2008 at 8:20 PM
  4. BlackHand
    Referrals:
    0

    BlackHand Guest

    SRL problems?

    FindTalk is outdated. Remove it.
    The reason you're having problems is because you're using bad code.
    ...
    Criticism:
    Procedure Clear is useless.
    FindFight returns a boolean, therefor, while what you did is not wrong, you can shorten that line to
    'If FindFight then.'
    Your variable declaration is weak. You should be doing x, y: integer;.
    not x : integer, y : integer;.
    You have no use of declareplayers, or the SRLPlayerform - that means no multiplayer, and no antirandoms.
     
  5. Unread #3 - Mar 6, 2008 at 8:49 AM
  6. quipeace
    Referrals:
    0

    quipeace Guest

    SRL problems?

    alright, thanks for the explanation, ill get on it right away lol :)
     
< Need Good Scripts!!! Read Plz!! | Does SRL even have this function? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site