JAD
04-08-2007, 04:43 AM
OK, well heres my randoms procedure (well, its fakawi's random procedure for the most part.. :p)
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 FindRandoms;
begin
FindFastRandoms;
FindNormalRandoms;
if (FindNormalRandoms) then
DidRandomHappen := true;
end;
do I need in there if(FindFight)then run away....etc. and stuff like that? When I looked in a few scripts like fakawi's and wizzup?'s, they didn't have that so I assumed it wasn't needed. As for ent color text, if anybody gets an ent, could you pick the color of the ent text for me? that'd be GREAT :)
Edit: sorry if I didn't clarify, but the problem I'm having is with fighting randoms..
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 FindRandoms;
begin
FindFastRandoms;
FindNormalRandoms;
if (FindNormalRandoms) then
DidRandomHappen := true;
end;
do I need in there if(FindFight)then run away....etc. and stuff like that? When I looked in a few scripts like fakawi's and wizzup?'s, they didn't have that so I assumed it wasn't needed. As for ent color text, if anybody gets an ent, could you pick the color of the ent text for me? that'd be GREAT :)
Edit: sorry if I didn't clarify, but the problem I'm having is with fighting randoms..