Odp: [Zam?wienia]Skrypty do TibiaBotNG
Odp: [Zam?wienia]Skrypty do TibiaBotNG
@up
Zdaj? mi si?, ?e chodzi Ci o ten skrypt:
@scarp
Zobacz ten:
Odp: [Zam?wienia]Skrypty do TibiaBotNG
@up
Zdaj? mi si?, ?e chodzi Ci o ten skrypt:
Kod:
const
MonsterName = ['Dragon Lord']// Nazwa potwora
Attack_Spell = 'Exori hur' // Jakim czarem
Min_Mana = 250 // Je?eli mana jest mniejsza ni? tu to nie b?dzie uderza?
Min_Monster_HP = 0
Max_Monster_HP = 100
Range = 5
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;
@scarp
Zobacz ten:
const
SpearID=3277;
function GetItemFromOpenBackpack(ID: integer): TItem;
var
x: integer;
y: integer;
begin
Result := nil;
for x := 0 to Self.Containers.Count - 1 do
begin
if x >= Self.Containers.Count then Break;
for y := 0 to Self.Containers.Container[x].Count - 1 do
begin
if y >= Self.Containers.Container[x].Count then Break;
if Self.Containers.Container[x].Item[y].ID = ID then
begin
Result := Self.Containers.Container[x].Item[y];
Exit;
end;
end;
end;
end;
while not terminated do
begin
updateworld;
if Self.RightHand.Amount<=3 then
begin
Item:=GetItemFromOpenBackpack(SpearID);
if Item<>nil then
Item.MoveToBody(Self.RIghtHand,0);
end;
sleep(1000);
end;
Ostatnia edycja: