NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG


#1 2009-05-02 12:08:58

Admin

Administrator

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

Leczenie dwoma Czarami

[hide]

Kod:

const
////////// Strong Healing //////////
 
  S_Minimum_Health = 400
  S_Healing_Spell = 'Exura Gran'
  S_Mana_Needed = 60
 
  S_Use_Spell = 1
  S_Use_UH_Rune = 0
 
////////////////////////////////////

//////////  Weak Healing  //////////

  W_Minimum_Health = 500
  W_Healing_Spell = 'Exura'
  W_Mana_Needed = 20
 
  W_Restore_Mana_At = 0
 
  W_Use_Spell = 1
  W_Use_IH_Rune = 0
 
////////////////////////////////////





while not Terminated do
begin
  UpdateWorld;
  if (Self.Health < S_Minimum_Health) then
  begin                          // Start of Strong Healing //
    if (Self.Mana >= S_Mana_Needed) and S_Use_Spell then
    begin
      Self.Say(S_Healing_Spell);
      Sleep(1000);
    end;
    else if S_Use_UH_Rune then
    begin
      Self.Containers.UseItemWithSelf(3160);
      Sleep(1000);
    end;
  end;                          // End of Strong Healing //
  else
  begin                         // Start of Weak Healing //
    if (Self.Health < W_Minimum_Health) and (Self.Mana >= W_Mana_Needed) and W_Use_Spell then
    begin
      Self.Say(W_Healing_Spell);
      Sleep(1000);
    end;
    else if (Self.Mana < W_Restore_Mana_At) then
    begin
      Self.Containers.UseItemWithSelf(238);
      Sleep(1000);
    end;
    else if W_Use_IH_Rune then
    begin
      Self.Containers.UseItemWithSelf(3152);
      Sleep(1000);
    end;
  end;                          // End of Weak Healing //
  Sleep(100);
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.bulletsofpain.pun.pl www.zawada.pun.pl www.gossip-girl.pun.pl www.cll.pun.pl