• Log in or sign up for an account here: https://www.sythe.org/login

SRL problems?

  • Thread starter Thread starter quipeace
  • Start date Start date
Q

quipeace

Guest
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!
 
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.
 
alright, thanks for the explanation, ill get on it right away lol :)
 
Runescape Gamblingrunescape gambling
Back
Top