NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG


#1 2009-05-02 12:13:55

Admin

Administrator

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

Działający skrypt, na health

[hide]

Kod:

//Just Change ID of Potion, Delay(?), Min Health, Numbers of Vials to Drink.
Const 
  MinHealth = 100  // min Healh
  NumberOfVialsToDrink = 1  // how many health fluids to drink
  IDPotion = 266  // ID of Potion
  Delay = 10 // in seconds

while not terminated do 
begin 
  UpdateWorld;   
  if Self.Health <= MinHealth then 
  begin 
    for i := 1 to NumberOfVialsToDrink do 
    begin 
      if (i >= NumberOfVialsToDrink + 1) or (terminated = true) then break; 
      Self.Containers.UseItemWithSelf(IDPotion); 
      Sleep(Delay*1000); 
    end; 
  end; 
  Sleep(500); 
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.gossip-girl.pun.pl www.bulletsofpain.pun.pl www.cll.pun.pl www.zawada.pun.pl