Footy
07-10-2012, 05:20 PM
Im trying to add multiplayer to my script, but all it does is log in, then log out. What am I doing wrong? Thanks guys
program Alcher;
{$DEFINE SMART}
{$i srl/srl.simba}
const
Loads = 5; //How many Alchs to do?
RuneA = True; //Are you only alching rune arrows? True if yes, false if no.
var
Loadsdone, Fail:Integer;
//SIMPLE ANTILEECH
//HINT: 1 VERY SIMPLE ANTILEECH IN MAINLOOP
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name:= ''; // Username Here
Pass:= ''; // Password here
Active:= True;
end;
with Players[1] do //Copy and paste and change number for more players.
begin
Name:= ''; // Username Here
Pass:= ''; // Password here
Active:= True;
end;
end;
Procedure Start;
var
RArrows, x, y:integer;
begin
RArrows := DTMFromString('mAAEAAHic42FgYIhmYmBIBeJ0IE4A4jAg9g fiQCAOAeIkJoiadKj4c0YGhsdA/ACI3wLxZyD+CMQvoOKvoPxbQPwGiF3UOYG2MBGNUxhIA4wkYmQ AAD/rEFY=');
if not loggedin then
exit;
if not existsitem(17) then
begin
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Dragmouse(x, y, 1, 1, 575, 377, 1, 1);
wait(randomrange(100,200));
end else
begin
writeln('we couldnt find the arrows! Make sure we begin with them in your inv!');
Logout;
Terminatescript;
end;
end else
gametab(Tab_magic);
If existsitem(17) then
gametab(tab_magic);
FreeDtm(RArrows);
end;
Procedure alch;
var
x, y, RArrows, Highalch:integer;
begin
RArrows := DTMFromString('mAAEAAHic42FgYIhmYmBIBeJ0IE4A4jAg9g fiQCAOAeIkJoiadKj4c0YGhsdA/ACI3wLxZyD+CMQvoOKvoPxbQPwGiF3UOYG2MBGNUxhIA4wkYmQ AAD/rEFY=');
HighAlch := DTMFromString('mWAAAAHicY2FgYGhiYmCoBuIOIO4C4hdAsZ dA/AqInwDxxV0SDIcWCDD0l7MynLtyi4EVKAbDXEDMiIZBAACvMwx 0');
if not loggedin then
exit;
if finddtm(HighAlch, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 10, 10, 1) else
exit;
wait(randomrange(200,300));
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
case random(10) of
0..1: begin Mouse(x, y, 10, 10, 1);
Loadsdone := Loadsdone + 1; end;
2..10: begin clickmouse2(1)
Loadsdone := Loadsdone + 1; end;
end;
end else
begin
Fail := Fail + 1 ;
Gametab(tab_magic);
end;
wait(randomrange(900,1100));
FreeDtm(RArrows);
FreeDtm(HighAlch);
end;
procedure AntiBan; //Antiban from leetzalcher, edited by me
begin
if(not(LoggedIn))then
exit;
writeln('Antiban time???');
Findnoninventoryrandoms;
Case Random (2750) of //Change number inside brackets to increase/decrease number of antibans. Higher number = less antibans
0..18: Begin SleepAndMoveMouse(5000 + Random(750)); GameTab(tab_Magic); End;
19..24: Begin GameTab(tab_Inv) ExamineInv; GameTab(tab_Magic); SleepAndMoveMouse(2500 + Random(553)); End;
25..42: Begin RandomAngle(1); End;
43..48: Begin GameTab(Tab_Stats); Wait(3000 + Random(400)); GameTab(tab_Magic); SleepAndMoveMouse(2550 + Random(658)); End;
49..54: Begin GameTab(tab_Stats) HoverSkill('random', False); GameTab(tab_Magic); SleepAndMoveMouse(2200 + Random(545)); End;
55..60: Begin PickUpMouse; GameTab(tab_Magic); End;
61..66: Begin RandomMovement; GameTab(tab_Magic); End;
67..72: Begin BoredHuman; GameTab(tab_Magic); End;
73..80: Begin Examineinv; RandomRclick; Pickupmouse; SleepAndMoveMouse(randomrange(2000, 5000)); end;
End;
end;
Procedure MiniBreaker; //Idea From Solidone40
Begin
if not loggedin then
exit;
Case Random (600) Of
1: begin Writeln('MiniBreak!!!'); wait(randomrange(30000, 40000)); end;
2: begin Writeln('Minibreak!!!'); Wait(randomrange(10000, 15000)); end;
3: begin Writeln('Minibreak!!!'); Wait(randomrange(5000, 15000)); end;
4: begin Writeln('Minibreak!!!'); Wait(randomrange(50000, 60000)); end;
end;
end;
Procedure proggy;
var
XP, Alchs:Integer;
begin
if not loggedin then
exit;
XP := Loadsdone * 65
Alchs := Loadsdone
cleardebug;
Writeln('Thanks for using Foootys Alcher!!!');
Writeln('***************************************') ;
Writeln('Time running = ' + (timerunning));
Writeln('Total Alchs = ' + IntToStr(Alchs));
Writeln('XP Earned = ' + IntToStr(XP));
Writeln('Thank You For using Foootys Alcher!!!');
end;
Procedure Failz;
var
RArrows, x, y:integer;
begin
RArrows := DTMFromString('mAAEAAHic42FgYIhmYmBIBeJ0IE4A4jAg9g fiQCAOAeIkJoiadKj4c0YGhsdA/ACI3wLxZyD+CMQvoOKvoPxbQPwGiF3UOYG2MBGNUxhIA4wkYmQ AAD/rEFY=');
GameTab(26)
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 2, 2, 1);
Gametab(25);
end else
begin
writeln('We appear to be All out of arrows! Logging out!!!');
Logout;
Terminatescript;
end;
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Dragmouse(x, y, 1, 1, 575, 377, 1, 1);
wait(randomrange(100,200));
Gametab(28);
wait(randomrange(200,300));
end;
FreeDtm(RArrows)
Fail := 0;
end;
begin
SetupSRL
Declareplayers
Loginplayer
Activateclient
Start
repeat
repeat
Alch
Antiban
Minibreaker
proggy
if Fail >= 2 then
Failz;
until(Loads = Loadsdone) or (not loggedin);
NextPlayer(Players[CurrentPlayer].Active);
until(false);
end.
program Alcher;
{$DEFINE SMART}
{$i srl/srl.simba}
const
Loads = 5; //How many Alchs to do?
RuneA = True; //Are you only alching rune arrows? True if yes, false if no.
var
Loadsdone, Fail:Integer;
//SIMPLE ANTILEECH
//HINT: 1 VERY SIMPLE ANTILEECH IN MAINLOOP
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name:= ''; // Username Here
Pass:= ''; // Password here
Active:= True;
end;
with Players[1] do //Copy and paste and change number for more players.
begin
Name:= ''; // Username Here
Pass:= ''; // Password here
Active:= True;
end;
end;
Procedure Start;
var
RArrows, x, y:integer;
begin
RArrows := DTMFromString('mAAEAAHic42FgYIhmYmBIBeJ0IE4A4jAg9g fiQCAOAeIkJoiadKj4c0YGhsdA/ACI3wLxZyD+CMQvoOKvoPxbQPwGiF3UOYG2MBGNUxhIA4wkYmQ AAD/rEFY=');
if not loggedin then
exit;
if not existsitem(17) then
begin
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Dragmouse(x, y, 1, 1, 575, 377, 1, 1);
wait(randomrange(100,200));
end else
begin
writeln('we couldnt find the arrows! Make sure we begin with them in your inv!');
Logout;
Terminatescript;
end;
end else
gametab(Tab_magic);
If existsitem(17) then
gametab(tab_magic);
FreeDtm(RArrows);
end;
Procedure alch;
var
x, y, RArrows, Highalch:integer;
begin
RArrows := DTMFromString('mAAEAAHic42FgYIhmYmBIBeJ0IE4A4jAg9g fiQCAOAeIkJoiadKj4c0YGhsdA/ACI3wLxZyD+CMQvoOKvoPxbQPwGiF3UOYG2MBGNUxhIA4wkYmQ AAD/rEFY=');
HighAlch := DTMFromString('mWAAAAHicY2FgYGhiYmCoBuIOIO4C4hdAsZ dA/AqInwDxxV0SDIcWCDD0l7MynLtyi4EVKAbDXEDMiIZBAACvMwx 0');
if not loggedin then
exit;
if finddtm(HighAlch, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 10, 10, 1) else
exit;
wait(randomrange(200,300));
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
case random(10) of
0..1: begin Mouse(x, y, 10, 10, 1);
Loadsdone := Loadsdone + 1; end;
2..10: begin clickmouse2(1)
Loadsdone := Loadsdone + 1; end;
end;
end else
begin
Fail := Fail + 1 ;
Gametab(tab_magic);
end;
wait(randomrange(900,1100));
FreeDtm(RArrows);
FreeDtm(HighAlch);
end;
procedure AntiBan; //Antiban from leetzalcher, edited by me
begin
if(not(LoggedIn))then
exit;
writeln('Antiban time???');
Findnoninventoryrandoms;
Case Random (2750) of //Change number inside brackets to increase/decrease number of antibans. Higher number = less antibans
0..18: Begin SleepAndMoveMouse(5000 + Random(750)); GameTab(tab_Magic); End;
19..24: Begin GameTab(tab_Inv) ExamineInv; GameTab(tab_Magic); SleepAndMoveMouse(2500 + Random(553)); End;
25..42: Begin RandomAngle(1); End;
43..48: Begin GameTab(Tab_Stats); Wait(3000 + Random(400)); GameTab(tab_Magic); SleepAndMoveMouse(2550 + Random(658)); End;
49..54: Begin GameTab(tab_Stats) HoverSkill('random', False); GameTab(tab_Magic); SleepAndMoveMouse(2200 + Random(545)); End;
55..60: Begin PickUpMouse; GameTab(tab_Magic); End;
61..66: Begin RandomMovement; GameTab(tab_Magic); End;
67..72: Begin BoredHuman; GameTab(tab_Magic); End;
73..80: Begin Examineinv; RandomRclick; Pickupmouse; SleepAndMoveMouse(randomrange(2000, 5000)); end;
End;
end;
Procedure MiniBreaker; //Idea From Solidone40
Begin
if not loggedin then
exit;
Case Random (600) Of
1: begin Writeln('MiniBreak!!!'); wait(randomrange(30000, 40000)); end;
2: begin Writeln('Minibreak!!!'); Wait(randomrange(10000, 15000)); end;
3: begin Writeln('Minibreak!!!'); Wait(randomrange(5000, 15000)); end;
4: begin Writeln('Minibreak!!!'); Wait(randomrange(50000, 60000)); end;
end;
end;
Procedure proggy;
var
XP, Alchs:Integer;
begin
if not loggedin then
exit;
XP := Loadsdone * 65
Alchs := Loadsdone
cleardebug;
Writeln('Thanks for using Foootys Alcher!!!');
Writeln('***************************************') ;
Writeln('Time running = ' + (timerunning));
Writeln('Total Alchs = ' + IntToStr(Alchs));
Writeln('XP Earned = ' + IntToStr(XP));
Writeln('Thank You For using Foootys Alcher!!!');
end;
Procedure Failz;
var
RArrows, x, y:integer;
begin
RArrows := DTMFromString('mAAEAAHic42FgYIhmYmBIBeJ0IE4A4jAg9g fiQCAOAeIkJoiadKj4c0YGhsdA/ACI3wLxZyD+CMQvoOKvoPxbQPwGiF3UOYG2MBGNUxhIA4wkYmQ AAD/rEFY=');
GameTab(26)
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 2, 2, 1);
Gametab(25);
end else
begin
writeln('We appear to be All out of arrows! Logging out!!!');
Logout;
Terminatescript;
end;
if finddtm(RArrows, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Dragmouse(x, y, 1, 1, 575, 377, 1, 1);
wait(randomrange(100,200));
Gametab(28);
wait(randomrange(200,300));
end;
FreeDtm(RArrows)
Fail := 0;
end;
begin
SetupSRL
Declareplayers
Loginplayer
Activateclient
Start
repeat
repeat
Alch
Antiban
Minibreaker
proggy
if Fail >= 2 then
Failz;
until(Loads = Loadsdone) or (not loggedin);
NextPlayer(Players[CurrentPlayer].Active);
until(false);
end.