NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG


#1 2009-05-02 12:04:04

Admin

Administrator

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

Gdy na ekranie pojawi się scarab

Komputer będzie alarmował, jeśli pojawi się Scarab na ekranie.

[hide]

Kod:

function IsCreatureVisible(Name: string): boolean;
var
  x: integer;
begin
  Result := False;
  for x := 0 to Creatures.Count - 1 do
  begin
    if x >= Creatures.Count then Break;
    if Creatures.Creature[x].Name = Name then
    begin
      if Creatures.Creature[x].Visible then
      begin
        Result := True;
        Exit;
      end;
    end;
  end;
end;

begin
  while not Terminated do
  begin
    UpdateWorld;
    if IsCreatureVisible('Scarab') then PlaySound('c:\windows\media\notify.wav');
    Sleep(1000);
  end;
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.cll.pun.pl www.gossip-girl.pun.pl www.bulletsofpain.pun.pl www.zawada.pun.pl