quinta-feira, 31 de julho de 2008

Logout if player on floor under + Safe List

Const
PlayerSafe = ['Player1','Player2','Player3'] // add players as many as you want.

while not terminated do
begin
UpdateWorld;
For G:= 0 to Creatures.Count -1 do
begin
for i:= Low(PlayerSafe) to High(PlayerSafe) do
begin
If Creatures.Creature[G].Z = Self.Z + 1 then
If Creatures.Creature[G].Name = PlayerSafe[i] then
Self.Logout(true);
Sleep(100);
end;
sleep(100);
end;
sleep(100);
end;

0 Comments: