NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG


#1 2009-05-02 12:01:49

Admin

Administrator

Zarejestrowany: 2009-04-02
Posty: 24
Punktów :   

Metoda UP/Down

Skrypt który powoduje ze potwor/człowiek jest cały czas zaznaczony nawet po zniknięciu z ekranu oraz po zmianie piętra.

[Musisz być zalogowany, aby przeczytać ukrytą wiadomość]

Kod:

var
LockID:integer;

function GetCreatureByID(ID: integer): TCreature;
var
x: integer;
begin
Result := nil;
for x := 0 to Creatures.Count - 1 do
begin
if x >= Creatures.Count then Break;
if Creatures.Creature[x].ID = ID then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;

begin
updateworld;
while self.attacking=0 do
begin
sleep(200);
updateworld;
end;
LockID:=self.attacking;
while not terminated do
begin
updateworld;
ProcessEvents;
if ((self.attacking)<>(LockID)) and ((self.attacking)<>(0)) then
LockID:=Self.Attacking;
If Self.Attacking=0 then
begin
Creature:=GetCreatureByID(LockID);
If Creature<>nil then Creature.Attacking:=true;
end;

sleep(100);
end;
end;

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.nutriolandia.pun.pl www.gossip-girl.pun.pl www.zawada.pun.pl www.microrc.pun.pl www.cll.pun.pl