blackfire553
05-19-2007, 06:07 PM
I cant get multiplayer to work. i have SetupSRL in before DeclarePlayers
Im using this: (unfinished
{ |-----------------------------------------------| }
{ | | }
{ | Blackfire553's PowerChopper | }
{ | Thanks To: | }
{ | Jad, and all other tutorial-makers | }
{ | | }
{ |-----------------------------------------------| }
Program PowahChoppah;
Const
RunDirection = 'S';//Direction to run away (N,S,E,W)
LoadsPerPlayer = 10;//Loads to do before switching players
LogColorA = 1;// \/ \/ \/ \/ \/ \/ \/ \/ |
LogColorB = 1;//Only change these if it cant find the trees|
LogColorC = 1;// /\ /\ /\ /\ /\ /\ /\ /\ |
WeildingAxe = True;//Will you be Weilding the Axe?
Var
DidRandomHappen: Boolean;
Procedure DeclarePlayers;
Begin
HowManyPlayers := 6;//Number of players (Inactive + Active)
NumberOfPlayers := HowManyPlayers;
CurrentPlayer :=0;//Player you want to start with
Players[0].Name :='Username';
Players[0].Pass :='Password';
Players[0].Nick :='4 consecutive letters of your name';
Players[0].Active:=True;
Players[1].Name :='Username';
Players[1].Pass :='Password';
Players[1].Nick :='4 consecutive letters of your name';
Players[1].Active:=False;
Players[2].Name :='Username';
Players[2].Pass :='Password';
Players[2].Nick :='4 consecutive letters of your name';
Players[2].Active:=False;
Players[3].Name :='Username';
Players[3].Pass :='Password';
Players[3].Nick :='4 consecutive letters of your name';
Players[3].Active:=False;
Players[4].Name :='Username';
Players[4].Pass :='Password';
Players[4].Nick :='4 consecutive letters of your name';
Players[4].Active:=False;
Players[5].Name :='Username';
Players[5].Pass :='Password';
Players[5].Nick :='4 consecutive letters of your name';
Players[5].Active:=False;
NickNameBmp:=CreateBitMapMaskFromText(Players[CurrentPlayer].Nick,UpChars)
End;
//~~~~Dont change anything else unless you know exactly what you are doing~~~~\\
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Normal Anti-Ban~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Function HumanAntiBan: Boolean;
Begin
Wait(100 + Random(50));
RotateEvery(3 + Random(4));
Wait(300 + Random(100 + Random(100)));
BoredEvery(5 + Random(6));
Wait(500 + Random(300);
HoverEvery(6+Random(5),'WoodCutting')
Wait(650 + Random 200);
LeaveScreenEvery(3 + random(5));
Wait(300 + Random(200);
MakeCompass('N');
HighestAngle;
End;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~WT-Fakawi's Random Finding~~~~~~~~~~~~~~~~~~~~~~~\\
function FindFastRandoms: Boolean; //By WT-Fakawi.
var
i: Integer;
begin
for i := 1 to 8 do
begin
case I of
1: if FindDead then
Result := True;
2: if FindMod then
Result := True;
3: if FindMime then
Result := True;
4: if FindMaze then
Result := True;
5: if FindQuiz then
Result := True;
6: if FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
7: begin
if InBlack then
begin
Result := True;
Players[CurrentPlayer].loc := 'InBlack';
Logout;
Exit;
end;
end;
8: RC;
end;
wait(1);
end;
if (Result = true) then
DidRandomHappen := true;
end;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Procedure DropLogs;
Begin
If (WieldingAxe = True) Then
Begin
DropTo(1,28);
End;
If (WieldingAxe = False) Then
DropTo(2,28);
End;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Setup Program~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Procedure Setup;
Begin
SetupSRL;
DeclarePlayers;
ClearDebug;
ActivateClient;
DisguiseScar('RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer');
End;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Main Program~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Begin
Setup;
Repeat
DropLogs;
ProgressReport;
If(LoadsDone=LoadsPerPlayer)Then
Begin
NextPlayer(True);
LoadsDone :=0;
HighestAngle;
MakeCompass('N');
Writeln('Sucessfully Switched Players!');
End;
until (False);
End.
Im using this: (unfinished
{ |-----------------------------------------------| }
{ | | }
{ | Blackfire553's PowerChopper | }
{ | Thanks To: | }
{ | Jad, and all other tutorial-makers | }
{ | | }
{ |-----------------------------------------------| }
Program PowahChoppah;
Const
RunDirection = 'S';//Direction to run away (N,S,E,W)
LoadsPerPlayer = 10;//Loads to do before switching players
LogColorA = 1;// \/ \/ \/ \/ \/ \/ \/ \/ |
LogColorB = 1;//Only change these if it cant find the trees|
LogColorC = 1;// /\ /\ /\ /\ /\ /\ /\ /\ |
WeildingAxe = True;//Will you be Weilding the Axe?
Var
DidRandomHappen: Boolean;
Procedure DeclarePlayers;
Begin
HowManyPlayers := 6;//Number of players (Inactive + Active)
NumberOfPlayers := HowManyPlayers;
CurrentPlayer :=0;//Player you want to start with
Players[0].Name :='Username';
Players[0].Pass :='Password';
Players[0].Nick :='4 consecutive letters of your name';
Players[0].Active:=True;
Players[1].Name :='Username';
Players[1].Pass :='Password';
Players[1].Nick :='4 consecutive letters of your name';
Players[1].Active:=False;
Players[2].Name :='Username';
Players[2].Pass :='Password';
Players[2].Nick :='4 consecutive letters of your name';
Players[2].Active:=False;
Players[3].Name :='Username';
Players[3].Pass :='Password';
Players[3].Nick :='4 consecutive letters of your name';
Players[3].Active:=False;
Players[4].Name :='Username';
Players[4].Pass :='Password';
Players[4].Nick :='4 consecutive letters of your name';
Players[4].Active:=False;
Players[5].Name :='Username';
Players[5].Pass :='Password';
Players[5].Nick :='4 consecutive letters of your name';
Players[5].Active:=False;
NickNameBmp:=CreateBitMapMaskFromText(Players[CurrentPlayer].Nick,UpChars)
End;
//~~~~Dont change anything else unless you know exactly what you are doing~~~~\\
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Normal Anti-Ban~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Function HumanAntiBan: Boolean;
Begin
Wait(100 + Random(50));
RotateEvery(3 + Random(4));
Wait(300 + Random(100 + Random(100)));
BoredEvery(5 + Random(6));
Wait(500 + Random(300);
HoverEvery(6+Random(5),'WoodCutting')
Wait(650 + Random 200);
LeaveScreenEvery(3 + random(5));
Wait(300 + Random(200);
MakeCompass('N');
HighestAngle;
End;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~WT-Fakawi's Random Finding~~~~~~~~~~~~~~~~~~~~~~~\\
function FindFastRandoms: Boolean; //By WT-Fakawi.
var
i: Integer;
begin
for i := 1 to 8 do
begin
case I of
1: if FindDead then
Result := True;
2: if FindMod then
Result := True;
3: if FindMime then
Result := True;
4: if FindMaze then
Result := True;
5: if FindQuiz then
Result := True;
6: if FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
7: begin
if InBlack then
begin
Result := True;
Players[CurrentPlayer].loc := 'InBlack';
Logout;
Exit;
end;
end;
8: RC;
end;
wait(1);
end;
if (Result = true) then
DidRandomHappen := true;
end;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Procedure DropLogs;
Begin
If (WieldingAxe = True) Then
Begin
DropTo(1,28);
End;
If (WieldingAxe = False) Then
DropTo(2,28);
End;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Setup Program~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Procedure Setup;
Begin
SetupSRL;
DeclarePlayers;
ClearDebug;
ActivateClient;
DisguiseScar('RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer');
End;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Main Program~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\
Begin
Setup;
Repeat
DropLogs;
ProgressReport;
If(LoadsDone=LoadsPerPlayer)Then
Begin
NextPlayer(True);
LoadsDone :=0;
HighestAngle;
MakeCompass('N');
Writeln('Sucessfully Switched Players!');
End;
until (False);
End.