program AutoFighter;
{------------------------
{ Rwj4real's Autofight
{------------------------
{ I am in need of a proggy script!! I will give credit!!!
{------------------------
{ BUGS----
{ Has a slow startup loading smart - Prolly Easy Fix
{
{ Gets Colors mixxed up - Will happily give credit to anyone who helps
{
{ Has no proggress report!!!! - Working on one but will be appreciated if someone submits one to me!!
{------------------------
{ Need To Knows -----
{ Fill Out Lines 33 Through 52
{ Have Smart!!!
{------------------------
{Once Again
{THANK YOU!!
{---------------------------------------------------------------------------------------------------------------------------------------}
{---------------------------------}
{.Include SRL\SRL\Misc\SMART.SCAR}
{.Include SRL\SRL.SCAR}
{.include SRL/SRL/misc/Users.scar}
{---------------------------------}
var
x, y: Integer;
MonsterColor : TIntegerArray;
MonsterName : TStringArray;
Const
MySRLID = '7123';//example: '9999'
MySRLPassword = '147852369';//example: 'password'
procedure Playersetup;
Begin
HowManyPlayers := 1;//Change this accordingly
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
MonsterColor := [12370117, 5528425, 5863579]; // Colors have as many as u want
MonsterName := ['Co', 'ow']; // Names have as many as u want
Players[0].Name :=''; //Character Name
Players[0].Pass :=''; //Character Pass
Players[0].Nick :=''; //Nickname 3 - 4 Letter's of char name
Players[0].Active := True; //True if you want this player to be ran in the script, false if not
{_______________________________________________________________________________________________________________________________
{Dont Change Below Here
{___________________________________________________________________________________________________________________________________________}
LoginPlayer;
SRLid:= MySRLId;
SRLpassword:= MySRLPassword;
SendSRLReport;
Wait(2000 + random(1000));
SetAngle(True);
MakeCompass('n');
Setrun(True);
end;
Procedure Startup;
Begin
/// SMARTSetupEx(2, False, True, False);
/// Wait(5000);
/// SetTargetDC(SmartGetDC);
/// repeat
/// wait(100);
/// until(SmartGetColor(253, 233)<>1118604);
SetUpSRL;
End;
procedure Report;
begin
cleardebug;
writeln('Rwj4reals Autofight');
writeln('');
writeln('You been running this Autofighter for' + TimeRunning);
writeln('The time right now is: ' +TheTime);
end;
Procedure Sig;
Begin
ClearDebug;
Writeln(' Thank you!!!');
Wait(200);
Writeln(' I need a Proggy script so if you can make one it would be appreciated!');
Wait(200);
Writeln(' Giving credit!!!!');
End;
procedure AntiBan;
begin
case (RandomRange(1, 9)) of
1 : RandomRClick;
2 : HoverSkill('Random', False);
3 : RandomMovement;
4 : BoredHuman;
5 : DoEmote(400 +Random(90));
6 : PickUpMouse;
7 : Gametab(1 + Random(12));
8 : SleepAndMoveMouse(3600);
end;
end;
procedure Kill;
begin
if not LoggedIn then exit;
FindNormalRandoms;
if FindObjCustom(x, y, [MonsterName], [MonsterColor], 10) then
Begin
WriteLn('Killing');
Mouse(x, y, 2, 2, False);
Wait(900 + Random(110));
if not ChooseOption('ttack') then Exit;
FFlag(0);
Repeat
If FindFight Then AntiBan;
Until(Not FindFight Or (HPPercent < 25));
If (HPPercent < 25) then RunTo('N', true);
GameTab(4);
End;
end;
Begin
Sig;
Startup;
Playersetup;
Repeat
Kill;
Wait(2000);
Report;
Until(not LoggedIn);
if not LoggedIn then
LoginPlayer;
Antiban;
FindNormalRandoms;
Repeat
Kill;
Until(Not LoggedIn);
end.
i fixed some of it up for u