Forum www.elfngboot.fora.pl Strona Główna
 Strona glówna  •  FAQ  •  Szukaj  •  Użytkownicy  •  Grupy  •  Galerie  •  Rejestracja  •   Profil  •  Zaloguj się, by sprawdzić wiadomości  •  Zaloguj 
Alarm gdy brak UH, MF 
Napisz nowy temat   Odpowiedz do tematu    Forum www.elfngboot.fora.pl Strona Główna -> Bot NG / Skrypty
Zobacz poprzedni temat :: Zobacz następny temat  
Autor
Wiadomość
jabol123
Administrator



Dołączył: 05 Mar 2009
Posty: 26
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Czw 21:18, 05 Mar 2009  

Alarm właczy się gdy zostanie nam określona ilość uhów oraz mfów. Musi być otwarty BP

Kod:

Const
  UH_ID = 3160 // Enter the UH ID.
  MF_ID = 2874 // Enter here manafluid ID.
  UH_Alert = 5 // when UH_Alert UH's left then it alets...
  MF_Alert = 10 // when this number of MF left then it alerts....

While not terminated do
begin
  UpdateWorld;
  A:=0;
  B:=0;
  for i:= 0 to Self.Containers.Count -1 do
  begin
    for G:= 0 to Self.Containers.Container[i].Count -1 do
    begin
      if Self.Containers.Container[i].Item[G].ID = UH_ID
      then A:= A +1;
      if Self.Containers.Container[i].Item[G].ID = MF_ID then
      if Self.Containers.Container[i].Item[G].amount = 10
      then B:= B + 1;
      Sleep(100);
    end;
    Sleep(100);
  end;
  if (A <= UH_Alert) or ( B <= MF_Alert ) then
  PlaySound('C:\Windows\Media\Notify.wav');
  sleep(100);
end;


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum www.elfngboot.fora.pl Strona Główna -> Bot NG / Skrypty Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1
   
 
Opcje 
Zezwolenia Opcje
Kto jest na Forum Możesz pisać nowe tematy
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Kto jest na Forum
 
Jumpbox
Kto jest na Forum
Skocz do:  


fora.pl - załóż własne forum dyskusyjne za darmo
Theme FrayCan created by spleen & Download
Powered by phpBB © 2001, 2005 phpBB Group
Regulamin