Even cleaner code:
program monkKilla;
{.include SRL/SRl.scar}
var
Kills,Heals:integer;
{###############################################################################
##### ##### ## ## ## ## ## ## ## ##
############ ## ## #### ## ## ## ## ## ## ##
### ## ### ## ## ## ## ## ## ## ## ## ## ## ###### ## ## ##
### ### ## ## ## #### #### #### ## ## ## ##__## ### # ##
### ### ## ## ## ### ## ## ## ## ## ## ## ## ## ##
### ### ## ## ## ## ## ## ## ## ## ## ###### ## ##
################################################################################
##Credits; ##
##Home: Helped me with the Healin Function and other various stuff ##
##Keen: For making my laziness go away:p ##
################################################################################
INSTRUCTIONS ##
##
1. USE Original client with Low Detail, Very Bright. ##
2. Set your Screen to 32 bit TRUE color. ##
3. SET HOWMANYPLAYERS inside DeclarePlayers ##
4. Set Playernames and Passwords in DeclarePlayers ##
5. Drag Crosshair over RuneScape ##
6. Start script logged out. ##
################################################################################
## Enjoy:p ##
###################Leave these alone###########################################}
const
ver = '1.0';
color = 1786735;
{###############################################################################
############################ Setup ############################################}
totaltime = 100000; //total time on each player in ms
Procedure DeclarePlayers;
begin
HowManyPlayers := 2;//number of players you are going to use
NumberOfPlayers(HowManyPlayers);//Leave this alone
CurrentPlayer := 0;//the starting player
Players[0].Name := 'yourname'; //username here
Players[0].Pass := 'yourpass'; //password here
Players[0].Nick := 'rna'; //3letters from the username
Players[0].Loc := 'Monastery'; //leave as it is
Players[0].Skill := 'attack';//type of combat to use attack,strength,defence are the only options
Players[0].Active:= True;
Players[1].Name := 'yourname2'; //username here
Players[1].Pass := 'yourpass2'; //password here
Players[1].Nick := 'me2'; //3letters from the username
Players[1].Loc := 'Monastery'; //leave as it is
Players[1].Skill := 'strength';//type of combat to use attack,strength,defence are the only options
Players[1].Active:= True;
end;
//if you have more than 2 accounts, just copy a paragraph from above and
//change the number to the next one(+1)
{END OF SETUP DO NOT TOUCH BELOW}
Function AttackingOption: boolean;
begin
GameTab(1);
if(Players[CurrentPlayer].Skill = 'attack')then
SetFightMode(1);
if(Players[CurrentPlayer].Skill = 'strength')then
SetFightMode(2);
if(Players[CurrentPlayer].Skill = 'defence')then
SetFightMode(3);
Result:= True;
end;
Function Ask4Heal: boolean;
var
x,y: integer;
begin
Status('Healing');
repeat
repeat
If(not(LoggedIn))then
begin
LoginPlayer;
AttackingOption;
end;
wait(200 + random(150));
if(FindColorTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, 8))then
MMouse(x, y, 0, 0);
until(isuptext('Talk-to'))or(isuptext('Attack'))
getmousepos(x, y);
PopUp2(x, y, 0, 0, 'Talk-to');
Flag;
wait(3000 + random(1000));
repeat
wait(10 + random(13));
until(ClickToContinue)
wait(4000 + random(1000));
Mouse(293, 391, 3, 3, true);
wait(4000 + random(1000));
repeat
wait(20 + random(25));
until(findcolortolerance(x, y, 16711680, MCX1, MCY1, MCX2, MCY2, 10))
Mouse(315, 447, 3, 3, true);
wait(3000 + random(1000));
repeat
wait(20+ random(25));
until(findcolortolerance(x, y, 16711680, MCX1, MCY1, MCX2, MCY2, 10))
Mouse(315, 447, 3, 3, true);
until(HpPercent > 99)
Heals:= Heals + 1;
Result:= True;
if(IsChatMessage('You feel'))then
Writeln('Account Healed');
end;
Function Attack:boolean;
var
x,y: integer;
begin
Status('Atacking');
repeat
repeat
wait(200 + random(150));
if(findcolortolerance(x, y, color,MSX1, MSY1, MSX2, MSY2, 8))then
MMouse(x, y, 0, 0);
until(isuptext('Talk-to'))or(isuptext('Attack'))
getmousepos(x, y);
PopUp2(x, y,0, 0, 'Attack');
Flag;
wait(2000 + random(1000));
until(FindFight)
repeat
if(HpPercent < 5)then
begin
SetRun(true);
RunAwayDirection('N');
wait(3000);
RunBack;
Ask4Heal;
end;
until(not(FindFight))or(WeAreDead)
Result:= True;
end;
Function FindRandoms: boolean;
begin
if(not(loggedIn))then
LoginPlayer;
CloseWindow;
ClickToContinue;
FindLamp(Players[CurrentPlayer].Skill);
FindDead;
FindMod;
FindMime;
FindMaze;
FindQuiz;
FindFrog;
FindDoctor;
FindBox;
FindDemon;
if(Findname)Then
FindTalk;
if (FindNewBox)or (WeAreDead) then
begin
Players[CurrentPlayer].Active:= False;
Logout;
NextPlayer(true);
Chatsoff;
end;
Result:= True;
end;
Procedure ChangePlayer;
begin
if(PlayerStartTime>totaltime)then
begin
Logout;
NextPlayer(true);
Chatsoff;
AttackingOption;
end else
exit;
end;
procedure ProgressReport;
begin
writeln('----------<Monk Killer v' + (ver) + ' by HISTORY----->')
writeln('--------------------Progress Report---------------------->')
writeln('Worked for: ' + (TimeRunning))
writeln('Killed: ' + IntToStr(Kills) + ' monks')
writeln('Healed: ' + IntToStr(Heals) + ' times')
WriteLn(' ');
if(fights > 0)then
WriteLn(' Fought ' + IntToStr(fights) + ' Time[s].');
if(talks > 0)then
WriteLn(' Talked to ' + IntToStr(talks) + ' Random event[s].');
if(lamps > 0)then
WriteLn(' Used lamps ' + IntToStr(lamps) + ' Time[s].');
if(doctors > 0)then
WriteLn(' Solved ' + IntToStr(doctors) + ' Fords[s].');
if(frogs > 0)then
WriteLn(' Solved ' + IntToStr(frogs) + ' Frog[s].');
if(boxes > 0)then
WriteLn(' Solved ' + IntToStr(boxes) + ' Box[es].');
if(demons > 0)then
WriteLn(' Solved ' + IntToStr(demons) + ' Demon[s].');
if(logs > 0)then
WriteLn(' Logged in ' + IntToStr(logs) + ' Time[s].');
WriteLn('<--------------------------------------------------------->');
end;
procedure newplayer;
begin
LoginPlayer;
Chatsoff;
AttackingOption;
end;
begin
Setupsrl;
DisGuiseScar('Monk killer v' + (ver));
activateclient;
DeclarePlayers;
Heals:= 0;
Kills:= 0;
newplayer;
repeat
if(not(LoggedIn))then
LoginPlayer;
FindRandoms;
FindRs;
Attack;
changeplayer;
if(timerunning > '500000000')then
break;
until(false)
progressreport;
end.
You don't need multiple "const" unless SRL is different, but I don't see how since "const" is a SCAR command not and include command.
Also all the #'s make me not even want to test your script, it lowers the look of your script, even if you made a good script I wouldn't care because it looks like crap.