- TibiaBot NG [NG]

Status
Zamknięty.

cortex21

Active User
Zarejestrowany
Dołączył
Maj 29, 2009
Posty
62
Liczba reakcji
9
Witam, mam problem z Botem NG, a mianowicie, jak mo?na w Bocie NG ustawi?, ?eby Bot bra? Mana Potiony, gdy ma okre?lon? ilo?c many.
 
Odp: [NG]

Kod:
Const
MinMana = 100 // minimum many
NumberOfVialsToDrink = 1 // ile mam pic viali
IDPotion = 236 // ID pota
Delay = 0 // w sekunadch

while not terminated do
begin
UpdateWorld;
if Self.Health <= MinMana then // min Many
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;
 
Status
Zamknięty.
Back
Do góry