What's new

- TibiaBot NG Kto mi przerobi skrypt???

Status
Not open for further replies.

Tomurka

Active User
Joined
Mar 20, 2009
Messages
122
Reaction score
1
Const
Pot=3159; //
MiniHealth=50;// enter the minimum hp valuse so if your hp is lower then that,
//it wont shoot hmm so you wont get exusted and will be able to auto uh.
var
Creature:TCreature;
LOCKID:integer;

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;



begin
while not Terminated do
begin
updateworld;
Creature:=GetCreatureByName('Chansey');
if Creature<>nil then
begin
LOCKID:=Creature.ID;
While Creature <> nil do
begin
If self.Health>MiniHealth then
Self.Containers.UseItemWithCreature(Hmm, Creature);
Sleep(2000);
updateworld;
Creature:=GetCreatureByID(LOCKID);
end;
end;
Sleep(1000);
end;
end;

Bot ci?gle u?ywa potiona,niepatrzy ile ma hp...
 
Status
Not open for further replies.
Top