Ponownie prosze o skrypt do NG o stanie na ukos od potwora...
Jesli ktos pomoze reput dla niego
const
MonsterName = ['Enlightened Of The Cult','Nightmare']// lista potworow
Attack_Spell = 'Exori Hur'
Min_Mana = 250 // poziom many - jesli ponizej tej liczby nie bot przestaje uzywac czaru
Min_Monster_HP = 25 // poziom zyciaa w % monstera kiedy bot ma przestac bic z e-hura
Range = 5 //zasieg - jesli jest dalej postac nie uzywa czaru
var
x: Integer;
Creature:TCreature;
function GetCreatureByID(ID: integer): 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].ID = ID then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;
function GetCreatureByName(Name: string): 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].Name = Name then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;
function IsCreatureAttackable(c: TCreature): boolean;
begin
UpdateWorld;
Result := False;
if (c.Z = self.Z) and (abs(c.X-self.X) <= Range) and (abs(c.Y-self.Y) <= Range) and (c.outfit<>0) and (c.Health >= Min_Monster_HP) and (c.Health <= Max_Monster_HP) then
begin
Result := True;
end;
end;
while not Terminated do
begin
UpdateWorld;
Creature := GetCreatureByID(Self.Attacking);
if (Self.Mana >= Min_Mana) and (Creature <> nil) then
for i := low(monstername) to high(monstername) do
begin
if (MonsterName[i] = Creature.Name) and (IsCreatureAttackable(Creature)) then
begin
Self.Say(Attack_Spell);
sleep(2000);
end;
end;
sleep(100);
end;
Ostatnio zmieniony przez kertossik : 04-08-2009, 09:46
Pozdrawiam notorycznych nabijaczy bezsensownych postów.
Const
Spell = 'Utani Tempo Hur'
MinMana = 300
while not terminated do
begin
UpdateWorld;
if not self.hasting then
if self.mana >= MinMana then
Self.Say(Spell);
sleep(1000);
end;
Ostatnio zmieniony przez Gophol : 04-08-2009, 11:51
Pozdrawiam notorycznych nabijaczy bezsensownych postów.
$hpofhex-id:{$hex-lastattackedid$}$
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki