NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG


#1 2009-05-02 11:46:41

Admin

Administrator

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

Strzelanie z run

Przydatny skrypt np. na OTSach lub dla ludzi chcących zrobić combo.

[hide]

Kod:

Const
  RuneID = 3155 // tutaj id runy
  MinHP = 1100 // ponizej xx hp nie strzeli z runy
   
function GetAttackedCreature:TCreature;   
begin   
  UpdateWorld;   
  result := nil;   
  for i := 0 to Creatures.Count -1 do   
  begin   
    if i >= Creatures.Count then break;   
    if Creatures.Creature[i].ID = Self.Attacking then   
    Begin   
      result := Creatures.Creature[i];   
      exit;   
    end;   
  end;   
end;   

while not terminated do
begin   
  UpdateWorld;
  Creature := GetAttackedCreature;   
  if Creature <> nil then   
  if Self.Health >= MinHP then
  Self.Containers.UseItemWithCreature(RuneID,Creature);   
  sleep(3000);
end;[/hide]

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.zawada.pun.pl www.microrc.pun.pl www.bulletsofpain.pun.pl www.gossip-girl.pun.pl