Potrzebuje skryptu do ELFA by wywalal pod siebie puste bp
const
playermsg = 'Player to msg' // Put name of player you msg when someone attack You
var
Finished:boolean;
function GetCreatureByID(ID: integer): TCreature;
begin
UpdateWorld;
Result := nil
for x := 0 to Creatures.Count - 1 do
begin
if Creatures.Creature[x].ID = ID then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;
procedure Event_Attacked(ID: integer);
var
AttackingCreature: TCreature;
begin
UpdateWorld;
AttackingCreature := GetCreatureByID(ID);
if not AttackingCreature.NPC then
begin
for i := 0 to VipList.Count - 1 do
begin
if VipList.Vip[i].Online then
Self.PrivateMessage(playermsg.Name,'help, ' + AttackingCreature.Name + ' is attacking me!');
Sleep(2000);
end;
Finished := true;
end;
end;
begin
Finished := false;
while (not Terminated) and (not finished) do
begin
UpdateWorld;
ProcessEvents;
Sleep(100);
end;
end;
Ostatnio zmieniony przez Noru$ : 17-05-2009, 14:05
Ostatnio zmieniony przez Evó : 18-05-2009, 20:22
Ostatnio zmieniony przez Klamer : 20-05-2009, 18:26
Ostatnio zmieniony przez Poducha : 20-05-2009, 22:46
auto 100 ifnot $connected { reconnect | wait 6000 }
Ostatnio zmieniony przez Mr. Duel : 21-05-2009, 14:57
Ostatnio zmieniony przez danon17 : 26-05-2009, 20:55
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki