NG Phorum

Forum o bocie TibiaNG oraz ElfBotNG


#1 2009-05-02 12:14:48

Admin

Administrator

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

Kill Sumonner First

Dzięki temu skryptowi nasza postać będzie atakować pierwsze Sumonera w tym wypadku mino maga.

[hide]

Kod:

Const
  MonsterList = ['Minotaur Mage']

function GetCreatureByName: TCreature;
var
  x: integer;
begin
  Result := nil;
  for x := 0 to Creatures.Count - 1 do
  begin
    if x >= Creatures.Count then Break;
    if Creatures.Creature[x].Z = Self.Z then
    for i := low(MonsterList) to high(monsterlist) do
    if Creatures.Creature[x].Name = MonsterList[i] then
    begin
      Result := Creatures.Creature[x];
      Exit;
    end;
  end;
end;

While not terminated do
begin
  UpdateWorld;
  C := GetCreatureByName;
  if C <> nil then
  if not self.attacking then
  C.Attacking := true;
  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.cll.pun.pl www.bulletsofpain.pun.pl www.microrc.pun.pl www.zawada.pun.pl www.nutriolandia.pun.pl