Ive been trying to get this to work on rscd, and its still not working. If anyone could help that would be great.
Ive found a few more scripts but they wont work. Im guessing it has something to do with rscd running from a different screen then rsc. Any advice would be helpful im almost completely lost.
Here is another script ive found.
Program Aut0Attack;
Var
x,y,i,monsters,ks,la,wt,StatCount1,StatCount2,IdleCount,MapCount,time,FightM,att,def,str,fat,lvl,newstat,stat,mhp,chp,report,heal,tme,tries,arrow,log,Attack,stop,a,b,trybag,bag,salmon,trout,lobster,swordfish,shark,cake,startexp,exp,d:Integer;
username,password,mname,mcolour,mode,nMin,nHour,chat:String;
IsEnemy,killswitch,statswitch,screen,minimap,rotate,lognotarg,rightclick,timeout,foundbag:Boolean;
Hour,Min,Sec,MSec:Word;
Procedure settings;
Begin
{>----------------------------------------------<}
// Aut0Attack written by Reines \\
{>-------------------FEATURES-------------------<}
// - Checks list for colour code of target, if \\
// the target isn't found asks user for code. \\
// - Script Stops after set amount of Logins. \\
// - Eats, using Salmon, Trout, Lobster, \\
// Swordfish, Shark or Cake, when health goes \\
// under set level. \\
// - Displays Progress Report every set amount \\
// of targets attacked. \\
// - Saves Screenshot if you level. \\
// - Changes Fight Mode after desired level \\
// is reached. \\
// - Uses MiniMap to find targets if there are \\
// none in view. \\
// - Logs out if no targets are found after \\
// a long time. \\
// - Logs out if a mod talks or adds you. \\
// - Can use left or right click attack \\
// - Logs into both f2p and p2p. \\
// - Logs out at a set Hour. \\
{>-----------------INSTRUCTIONS-----------------<}
// When entering names remember everything \\
// in PoonScape is CASE SENSATIVE. \\
// Sleeping bag and food can go in any position \\
// Fight Modes - (1)Controlled. \\
// (2)Aggressive. \\
// (3)Accurate. \\
// (4)Defensive. \\
// For Rotate to work Camera Angle mode \\
// must be set to "Auto" \\
// Minimap and rotate can't both be used at \\
// the same time. \\
// For (timeout) to work the hour must be \\
// entered in same format as your pc clock and \\
// must be 2 digits. \\
// If (eating) you must have food with you. \\
// Will only recognise - Salmon \\
// - Trout \\
// - Lobster \\
// - Swordfish \\
// - Shark \\
// - Cake \\
// as types of food, no others. \\
{>-------------------SETTINGS-------------------<}
screen:=(true); // (true) to take a screenshot if you advance a level.
statswitch:=(false); // (true) to train another stat after desired level is reached.
killswitch:=(true); // (true) to stop script after set amount of logins.
minimap:=(false); // (true) to check minimap for targets if none found.
rotate:=(true); // (true) to rotate camera angle if no target is found.
lognotarg:=(true); // (true) to log out if no targets are found for along time.
rightclick:=(false); // (true) to right click attack, (false) to left click attack.
timeout:=(false); // (true) to stop the script at a set Hour.
lvl:=99; // Desired level to train until if (statswitch).
FightM:=2; // Stat to train initially .
newstat:=3; // Stat to train after desired level is reached if (statswitch).
la:=60; // Amount of times to relog in before stopping script if (killswitch).
report:=100; // After how many targets to display Progress Report.
heal:=60; // Eat food after what HP level is reached.
stop:=08; // Stop script and log out at this Hour if (timeout).
{>----------------------------------------------<}
End;
Procedure checksettings;
Begin
Status('Checking Settings');
mcolour:='0';
If(mname='skeleton')Then mcolour:='16447223';
If(mname='Rat')Then mcolour:='7159865';
If(mname='Guard')Then mcolour:='10661355';
If(mname='Guard (level-28)')Then mcolour:='10661355';
If(mname='Blessed Spider')Then mcolour:='3109013';
If(mname='Yanille Watchman')Then mcolour:='10661355';
If(mname='cow')Then mcolour:='4079166';
If(mname='Ghost')Then mcolour:='7039240';
If(mname='carnillean guard')then mcolour:='7763583';
If(mcolour='0')Then mcolour:=Readln('Unknown Target, Enter Colour Code:');
If(fightm=1)Then mode:='Controlled';
If(fightm=2)Then mode:='Aggressive';
If(fightm=3)Then mode:='Accurate';
If(fightm=4)Then mode:='Defensive';
If(not killswitch)Then
Begin
killswitch:=(true);
la:=9999999999;
End;
foundbag:=(false);
Attack:=BitmapFromString(37,10,
'000000000000FFFFFFFFFFFFFFFFFF000000000000000000000000' +
'FFFFFF000000000000000000FFFFFF000000000000000000000000' +
'000000000000000000000000000000000000000000000000000000' +
'000000000000000000FFFFFFFFFFFF000000000000000000000000' +
'000000000000000000FFFFFFFFFFFFFFFFFF000000000000000000' +
'FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000000000000000' +
'000000000000000000000000000000000000000000000000000000' +
'000000000000000000000000FFFFFFFFFFFF000000000000000000' +
'000000000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000' +
'000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFF000000' +
'000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000FFFFFF' +
'FFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFF000000000000' +
'FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF' +
'000000000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000' +
'000000FFFFFF000000000000000000FFFFFFFFFFFF000000FFFFFF' +
'FFFFFF000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000' +
'FFFFFFFFFFFF000000000000000000FFFFFFFFFFFF000000FFFFFF' +
'FFFFFF000000000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF' +
'000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF000000' +
'FFFFFFFFFFFF000000000000000000000000000000FFFFFFFFFFFF' +
'FFFFFFFFFFFF000000000000000000000000FFFFFFFFFFFF000000' +
'FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000000000FFFFFF' +
'FFFFFF000000000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF' +
'000000FFFFFFFFFFFF000000000000000000000000000000FFFFFF' +
'FFFFFFFFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFF' +
'FFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000000000' +
'FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000000000FFFFFF' +
'FFFFFF000000FFFFFFFFFFFF000000000000000000000000000000' +
'FFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF' +
'000000000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000' +
'000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000000000' +
'FFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF' +
'000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000FFFFFF' +
'FFFFFF000000000000000000FFFFFFFFFFFF000000000000FFFFFF' +
'FFFFFF000000000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF' +
'FFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFF' +
'000000000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000' +
'000000000000000000000000000000000000000000000000000000' +
'000000000000000000000000000000000000000000000000000000' +
'000000000000000000000000000000000000000000000000000000' +
'000000000000000000000000000000000000000000000000000000' +
'000000');
bag:=BitmapFromString(18,7,
'9D6E3D9D6E3D9D6E3D7B542E7B542E7B542E7B542E7B542E7B542E' +
'7B542E52452E52452E52452E52452E52452E52452E52452E360E06' +
'9D6E3D7B542E9D6E3D7B542E7B542E7B542E7B542E7B542E7B542E' +
'7B542E7B542E52452E52452E52452E52452E52452E52452E52452E' +
'9D6E3D9D6E3D9D6E3D9D6E3DC344227B542E7B542E7B542E7B542E' +
'7B542E7B542E7B542E52452E7B542E52452E52452E52452E615D61' +
'9D6E3D9D6E3D9D6E3D7B542E9D6E3D7B542E7B542E7B542E7B542E' +
'7B542E7B542E7B542E52452E7B542E52452E52452E8D8D8D868457' +
'7B542E9D6E3D9D6E3D9D6E3D7B542E9D6E3D7B542E7B542E7B542E' +
'7B542E7B542E7B542E7B542E7B542E7B542E52452E988CB1988CB1' +
'7B542E7B542E9D6E3D9D6E3D9D6E3D9D6E3D9D6E3DC344227B542E' +
'7B542E7B542E7B542E7B542E7B542E7B542E988CB1988CB1988CB1' +
'7B542E7B542E7B542E9D6E3D9D6E3D9D6E3D9D6E3D9D6E3D7B542E' +
'7B542E7B542E7B542E7B542E7B542E7B542E988CB1CFAB7BCFAB7B' +
'');
cake:=BitmapFromString(11,8,
'866950A38062A38062A38062A38062A38062A380628669505A4736' +
'5A4736545539866950866950866950A38062A38062A38062A38062' +
'7058435A47365A4736A38062866950866950866950866950A38062' +
'A38062A38062A38062A38062A38062A38062866950866950866950' +
'866950866950866950866950A38062A38062A38062A38062A38062' +
'866950866950866950866950866950866950866950866950866950' +
'866950A38062A38062A38062866950866950866950866950866950' +
'866950866950866950866950A38062A38062A38062866950866950' +
'866950866950866950866950866950866950866950866950A38062' +
'A38062A38062A38062866950866950866950866950');
lobster:=BitmapFromString(12,4,
'7F4500AD5E00AD5E008E4D009E56009E56008E4D009E56009E5600' +
'9E56009E56008E4D00AD5E007F45008E4D009E56009E56009E5600' +
'703D008E4D009E56009E56007F450045372C703D007F45008E4D00' +
'8E4D008E4D009E56008E4D00703D008E4D008E4D0045372C180C07' +
'703D007F45008E4D008E4D00703D008E4D009E56008E4D00703D00' +
'8E4D007F45000D0700');
salmon:=BitmapFromString(12,4,
'9B74749B74749B7474654B4B9B74749B74749B74749B74749B7474' +
'9B74749B74749B74748A68688A68688A6868654B4B8A68688A6868' +
'8A68688A68688A68688A68688A68688A68688A68688A68688A6868' +
'654B4B8A68688A68688A68688A68688A68688A68688A68688A6868' +
'7B5C5C7B5C5C654B4B7B5C5C7B5C5C7B5C5C7B5C5C7B5C5C7B5C5C' +
'7B5C5C7B5C5C7B5C5C');
shark:=BitmapFromString(16,5,
'804600804600804600804600804600804600804600804600804600' +
'804600804600804600804600804600804600723E00673800804600' +
'804600804600804600804600804600804600804600804600804600' +
'804600804600804600804600723E00673800804600804600723E00' +
'552E00804600804600804600804600804600804600804600804600' +
'804600804600723E00804600804600804600552E00552E00804600' +
'804600804600804600804600804600804600804600804600804600' +
'723E00804600804600804600804600804600804600804600804600' +
'804600804600804600804600804600723E00723E00723E00');
swordfish:=BitmapFromString(12,6,
'7B477B7B477B7B477B7B477B8A508A8A508A8A508A8A508A8A508A' +
'8A508A8A508A8A508A7B477B7B477B7B477B7B477B7B477B7B477B' +
'7B477B7B477B7B477B7B477B7B477B7B477B7B477B7B477B7B477B' +
'7B477B7B477B7B477B7B477B7B477B7B477B7B477B7B477B7B477B' +
'653B65653B65653B65653B65653B65653B65653B65653B65653B65' +
'653B65653B65653B65653B65653B65653B65653B65653B65653B65' +
'653B65653B65653B65653B65653B65653B65653B65653B65653B65' +
'653B65653B65653B65653B65653B65653B65653B65543154653B65' +
'');
trout:=BitmapFromString(12,4,
'CE5A5ACE5A5A863B3BCE5A5ACE5A5ACE5A5ACE5A5ACE5A5ACE5A5A' +
'CE5A5ACE5A5ACE5A5AB85050B85050863B3BB85050B85050B85050' +
'B85050B85050B85050B85050B85050B85050B85050B85050863B3B' +
'B85050B85050B85050B85050B85050B85050B85050B85050B85050' +
'A34747863B3BA34747A34747A34747A34747A34747A34747A34747' +
'A34747A34747A34747');
End;
Procedure gettime;
Begin
Status('Checking Time');
DecodeTime(Now,Hour,Min,Sec,MSec);
nMin:=inttostr(Min);
nHour:=inttostr(Hour);
If(Min<10)Then nMin:='0'+inttostr(Min);
If(Hour<10)Then nHour:='0'+inttostr(Hour);
End;
Procedure logout;
Begin
killswitch:=(false);
Status('Logging out');
Repeat
MoveMouse(325+Random(5),20+Random(5));
Wait(100);
ClickMouse(350,280,True);
Wait(1000);
Until(GetColor(338,125)=5524540);
End;
Procedure startup;
Begin
gettime;
Writeln('<--------Aut0Attack-------->');
Writeln('Written by Reines');
Writeln('Username: '+username);
Writeln('Fight Mode: '+mode);
Writeln('Target: '+mname);
Writeln('Starting at '+nHour+':'+nMin);
Writeln('Total Exp: '+inttostr(startexp div 1000)+'k');
Status('A');Wait(100);
Status('Au');Wait(100);
Status('Aut');Wait(100);
Status('Aut0');Wait(100);
Status('Aut0A');Wait(100);
Status('Aut0At');Wait(100);
Status('Aut0Att');Wait(100);
Status('Aut0Atta');Wait(100);
Status('Aut0Attac');Wait(100);
Status('Aut0Attack');Wait(100);
Status('Aut0Attack ');Wait(100);
Status('Aut0Attack B');Wait(100);
Status('Aut0Attack By');Wait(100);
Status('Aut0Attack By ');Wait(100);
Status('Aut0Attack By R');Wait(100);
Status('Aut0Attack By Re');Wait(100);
Status('Aut0Attack By Rei');Wait(100);
Status('Aut0Attack By Rein');Wait(100);
Status('Aut0Attack By Reine');Wait(100);
Status('Aut0Attack By Reines');Wait(500);
End;
Procedure ifkillswitch;
Begin
gettime;
Writeln('<-------------------------->');
Writeln('Login limit exceeded');
Writeln('at '+nHour+':'+nMin);
Writeln('after attempting to attack ' + IntToStr(monsters)+'targets');
logout;
End;
Procedure sleep;
Begin
fat:=0;
wt:=0;
Wait(200);
Movemouse(498,16);
Wait(1000);
Movemouse(a+2,b+2);
Wait(1000);
If(IsTextAt(6,2,'Sleeping Bag: sleep'))Then
Begin
Status('Sleeping');
ClickMouse(a+2,b+2,True);
Repeat
Wait(1000);
wt:=wt+1000;
Until(wt>=60000)Or(Getcolor(166,44)<>65535)Or(Getcolor(266,133)<>16777215);
Wait(1000);
End;
MoveMouse(25,25);
End;
Procedure login;
Begin
ClickMouse(357+random(5),281+random(5),True);
Wait(200+random(50));
ClickMouse(255+random(5),287+random(5),True);
Wait(200+random(50));
ks:=ks+1;
Status('Attempting login');
gettime;
Writeln('<-------------------------->');
Writeln('Attempting login #'+inttostr(ks)+' at '+nHour+':'+nMin);
ClickMouse(166+random(5),263+random(5),True);
Wait(500+random(50));
SendKeysSilent(username);
Wait(500+random(50));
ClickMouse(260+random(5),303+random(5),True);
Wait(500+random(50));
SendKeysSilent(password);
Wait(500+random(50));
ClickMouse(392+random(5),248+random(5),True);
tme:=0;
Repeat
Wait(1000);
tme:=tme+1000;
Until(tme>10000)Or(GetColor(56,117)=16777215);
If(GetColor(56,117)=16777215)And(GetColor(455,216)=16777215)Then
Begin
Status('Closing Welcome Box');
ClickMouse(220+random(5),230+random(5),True);
Wait(1000+random(250));
End;
If(GetColor(95,133)=65535)And(GetColor(325,159)=16777215)Then
Begin
Status('Closing Non-Member Server Box');
ClickMouse(262+random(5),202+random(2),True)
Wait(1000+random(250));
End;
End;
Procedure amod;
Begin
gettime;
Writeln('<-------------------------->');
Writeln('Fuck, a Mod! Logging out at '+nHour+':'+nMin);
logout;
End;
Procedure eat;
Begin
MoveMouse(492,14);
Wait(100);
If(FindBitmap(salmon,x,y))Or(FindBitmap(trout,x,y))Or(FindBitmap(lobster,x,y))Or(FindBitmap(swordfish,x,y))Or(FindBitmap(shark,x,y)Or(FindBitmap(cake,x,y)))Then
Begin
ClickMouse(x+2,y+2,True);
Wait(2000);
Writeln('<-------------------------->');
Writeln('Eating Food');
End;
MoveMouse(25,25);
End;
Procedure switchstat;
Begin
If(FightM=2)Then stat:=str;
If(FightM=3)Then stat:=att;
If(FightM=4)Then stat:=def;
If(stat>=lvl)Then
Begin
FightM:=newstat;
If(FightM=1)Then mode:='Controlled';
If(fightm=2)Then mode:='Aggressive';
If(fightm=3)Then mode:='Accurate';
If(fightm=4)Then mode:='Defensive';
gettime;
Writeln('<-------------------------->');
Writeln('Fight Mode changed to '+mode+' at '+nHour+':'+nMin);
End;
End;
Procedure checkstats;
Begin
Repeat
Wait(100);
Until(getfightmode=0)
tries:=0
Repeat
Status('Checking Stats');
MoveMouse(427,16);
Wait(500);
att:=strtoint(GetTextAt(375,73));
Wait(50);
def:=strtoint(GetTextAt(385,86));
Wait(50);
str:=strtoint(GetTextAt(387,99));
Wait(50);
mhp:=strtoint(copy(GetTextAt(343,112),4,5));
chp:=strtoint(copy(GetTextAt(343,112),1,2));
Wait(50);
fat:=strtoint(GetTextAt(365,189)); //Check Fatigue
Wait(50);
If(FightM=2)Then ClickMouse(350,107,True);
IF(FightM=3)Then ClickMouse(350,80,True);
If(FightM=4)Then ClickMouse(350,94,True);
Wait(200);
exp:=strtoint(GetTextAt(369,279));
tries:=tries+1
Until((att<>-1)And(def<>-1)And(str<>-1)And(mhp<>-1)And(chp<>-1)And(fat<>-1)And(exp<>-1))Or(tries>10);
gettime;
If(StatCount2>=report)Then
Begin
Writeln('<----------'+nHour+':'+nMin+'---------->');
Writeln('Attack:'+inttostr(att));
Writeln('Defence:'+inttostr(def));
Writeln('Strength:'+inttostr(str));
Writeln('Hits:'+inttostr(chp)+'/'+inttostr(mhp));
Writeln('Fatigue:'+inttostr(fat)+'%');
Writeln('Exp Gained:'+inttostr((exp-startexp) div 1000)+'k');
StatCount2:=0;
End;
If(chp<=heal)Then eat;
If(statswitch)Then switchstat;
StatCount1:=0;
MoveMouse(25,25);
End;
Procedure fight;
Begin
IdleCount:=IdleCount+1;
log:=log+1;
Status('Searching for targets');
If(FindColorSpiral(x,y,strtoint(mcolour),5,5,510,325))Then
Begin
MoveMouse(x,y);
i:=0;
IsEnemy:=False;
Repeat
Wait(5);
IsEnemy:=IsTextAt(6,2,mname);
i:=i+1;
Until(i>20)Or(IsEnemy);
If(IsEnemy)Then
Begin
Status('Attempted to attack '+IntToStr(monsters)+' targets');
If(not rightclick)Then ClickMouse(x,y,True);
IF(rightclick)Then
Begin
ClickMouse(x,y,False);
Wait(200);
FindBitmap(Attack,x,y)
ClickMouse(x+2,y+2,True);
End;
time:=0;
Repeat
Wait(100);
time:=time+100;
Until(getfightmode<>0)Or(time>4000);
monsters:=monsters+1;
StatCount1:=StatCount1+1;
StatCount2:=StatCount2+1;
IdleCount:=0;
log:=0
Status('Attempted to attack '+IntToStr(monsters)+' targets');
End;
End;
End;
Procedure changemode;
Begin
Repeat
Status('Shifting to '+mode+' fight mode');
ClickMouse(100,25+20*FightM,True);
Wait(50);
Until(GetFightMode=FightM)Or(GetFightMode=0);
End;
Procedure attacklvl;
Begin
gettime;
MoveMouse(430,15);
Wait(100);
Repeat
att:=strtoint(GetTextAt(375,73));
Until(att<>-1);
SaveScreenshot(AppPath+'Attack'+inttostr(att)+'.bmp');
Writeln('<----------'+nHour+':'+nMin+'---------->');
Writeln('You attack is now '+inttostr(att));
Writeln('Screenshot Saved');
End;
Procedure defencelvl;
Begin
gettime;
MoveMouse(430,15);
Wait(100);
Repeat
def:=strtoint(GetTextAt(385,86));
Until(def<>-1);
SaveScreenshot(AppPath +'Defence'+inttostr(def)+'.bmp');
Writeln('<----------'+nHour+':'+nMin+'---------->');
Writeln('Your defence is now '+inttostr(def));
Writeln('Screenshot Saved');
End;
procedure strengthlvl;
Begin
gettime;
MoveMouse(430,15);
Wait(100);
Repeat
str:=strtoint(GetTextAt(387,99));
Until(str<>-1);
SaveScreenshot(AppPath +'Strength'+inttostr(str)+'.bmp');
Writeln('<----------'+nHour+':'+nMin+'---------->');
Writeln('Your strength is now '+inttostr(str));
Writeln('Screenshot Saved');
End;
procedure hitslvl;
Begin
gettime;
MoveMouse(430,15);
Wait(100);
Repeat
mhp:=strtoint(copy(GetTextAt(343,112),4,5));
Until(mhp<>-1);
SaveScreenshot(AppPath+'Hits'+inttostr(mhp)+'.bmp');
Writeln('<----------'+nHour+':'+nMin+'---------->');
Writeln('Your Hits are now '+inttostr(mhp));
Writeln('Screenshot Saved');
End;
Procedure notargs;
Begin
gettime;
Writeln('<-------------------------->');
Writeln('No Targets Found, Logging Out');
Writeln('at '+nHour+':'+nMin);
Writeln('after attempting to attack ' + IntToStr(monsters)+'targets');
logout;
End;
Procedure rotatemap;
Begin
Status('Rotating Map');
arrow:=0;
Repeat
SendArrowSilent(1);
arrow:=arrow+1;
Until(arrow=30);
Wait(2000);
IdleCount:=0;
End;
Procedure findbag;
Begin
MoveMouse(492,14);
Wait(200);
trybag:=0;
Repeat
IF(FindBitmap(bag,a,b))Then foundbag:=(true);
trybag:=trybag+1;
Wait(100);
Until(foundbag)or(trybag>20);
If(foundbag)Then
Begin
Writeln('<-------------------------->');
Writeln('Sleeping Bag Found');
End;
If(trybag>=20)Then
Begin
Writeln('<-------------------------->');
Writeln('No Sleeping Bag Found, Go get one fuckwit!');
logout;
End;
MoveMouse(25,25);
End;
Procedure checkminimap;
Begin
Status('Checking MiniMap');
Wait(100);
MoveMouse(460,16);
Wait(500);
Repeat
MapCount:=MapCount+1;
Wait(10);
If(FindColor(x,y,65535,380,70,480,160))Then
Begin
Status('Found a Target on MiniMap');
Wait(100);
ClickMouse(x,y,true);
Wait(100);
IdleCount:=0;
MapCount:=0;
End;
Until(IdleCount<20)Or(MapCount>20);
MoveMouse(25,25);
End;
Procedure getstartexp;
Begin
Repeat
MoveMouse(425+random(5),15+random(5));
Wait(200);
If(FightM=2)Then ClickMouse(350,107,True);
IF(FightM=3)Then ClickMouse(350,80,True);
If(FightM=4)Then ClickMouse(350,94,True);
Wait(1000);
startexp:=strtoint(GetTextAt(369,279));
Until(startexp<>-1);
End;
Begin
username:=Readln('Enter your Username:');
password:=Readln('Enter your Password:');
mname:=Readln('Enter Target name:');
settings;
checksettings;
getstartexp;
startup;
findbag;
Repeat
Begin
If(ks>=la)Then ifkillswitch;
If(Getcolor(15,312)=65280)And(GetColor(338,125)<>5524540)Then checkstats;
If(fat>=95)And(GetColor(338,125)<>5524540)Then sleep;
If(GetColor(338,125)=5524540)Then login;
chat:=getchatmsg;
d:=pos(':',chat);
If(copy(chat,1,4)='Mod ')Or(copy(chat,1,d-1)='Paul')Or(copy(chat,1,d-1)='Andrew')Then amod;
If(StatCount1>=10)And(GetColor(338,125)<>5524540)Then checkstats;
If(getfightmode<>0)Then
Begin
Repeat
Wait(200);
Until(getfightmode=0);
End;
If(getfightmode=0)And(GetColor(338,125)<>5524540)Then fight;
If(GetFightMode<>FightM)And(GetFightMode<>0)Then changemode;
If(getchatmsg='You just advanced 1 attack level!')And(screen)And(GetColor(338,125)<>5524540)Then attacklvl;
If(getchatmsg='You just advanced 1 defence level!')And(screen)And(GetColor(338,125)<>5524540)Then defencelvl;
If(getchatmsg='You just advanced 1 strength level!')And(screen)And(GetColor(338,125)<>5524540)Then strengthlvl;
If(getchatmsg='You just advanced 1 hitpoints level!')And(screen)And(GetColor(338,125)<>5524540)Then hitslvl;
If(log>10000)And(lognotarg)And(GetColor(338,125)<>5524540)Then notargs;
If(IdleCount>10)And(minimap)And(GetColor(338,125)<>5524540)Then checkminimap;
If(IdleCount>10)And(rotate)And(GetColor(338,125)<>5524540)Then rotatemap;
If(timeout)Then gettime;
If(timeout)And(nhour=inttostr(stop))And(GetColor(338,125)<>5524540)Then logout;
End;
Until(not killswitch);
End.