NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG

  • Nie jesteś zalogowany.
  • Polecamy: Moda

  • Index
  •  » Skrypty
  •  » Używa 'exana pox' gdy jesteśmy zatruci więcej niż 'x'

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

Admin

Administrator

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

Używa 'exana pox' gdy jesteśmy zatruci więcej niż 'x'

[hide]

Kod:

var
  MaxPoison: integer;

procedure Event_Notice(Text: string);
var
  PoisonAmount: string;
begin
  UpdateWorld;
  if Self.Mana < 30 then Exit;
  if not Self.Poisoned then Exit;
  if Pos('You lose ', Text) = 0 then Exit;
  if Pos(' hitpoints.', Text) = 0 then Exit;
  PoisonAmount := Text;
  Delete(PoisonAmount, 1, 9);
  PoisonAmount := Copy(PoisonAmount, 1, Pos(' ', PoisonAmount) - 1);
  if IntToStr(PoisonAmount) >= MaxPoison then Self.Say('exana pox');
end;

begin
MaxPoison := 4; // tutaj dajemy od ile ma wypowiedzieć exana pox
  while not Terminated do
  begin
    ProcessEvents;
    Sleep(100);
  end;
end; [/hide]

Offline

 
  • Index
  •  » Skrypty
  •  » Używa 'exana pox' gdy jesteśmy zatruci więcej niż 'x'

Stopka forum

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


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