Zobacz koniecznie!
Navigation » Botting.pl - Botowanie to przecież nie przestępstwo > TibiaBot NG > Problemy » Poprawa skryptu - Zobacz !

Odpowiedz
 
Narzędzia tematu Wygląd tematu
Stary 18-06-09, 08:25   #1
Allegro
Newbie
 
Data dołączenia: May 2009
Posty: 20
Podziękowań: 0
Podziękowano mu 6 razy w jednym poście.
Allegro jeszcze nie znają
Standardowy Poprawa skryptu - Zobacz !

Boce kumplowi hara na ultra ots i mam skrypt na strzelanie z sd :

Cytat:
Const
Hmm=3155; // enter the ID of HMM rune.
MiniHealth=400/ 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('Warlock');
if Creature<>nil then
begin
LOCKID:=Creature.ID;
While Creature <> nil do
begin
If self.Health>MiniHealth then
Self.Containers.UseItemWithCreature(Hmm, Creature);
Sleep(100);
updateworld;
Creature:=GetCreatureByID(LOCKID);
end;
end;
Sleep(100);
end;
end;
Ale on nie dziala [ syntax error ]. wiecie co moze jest zle w nim ?
Allegro jest offline   Reply With Quote
Stary 18-06-09, 14:05   #2
muttley
PWJ Na 200%
 
muttley's Avatar
 
Data dołączenia: Sep 2008
Skąd: Tczew
Posty: 1,384
Podziękowań: 35
Podziękowano mu 152 razy w 74 postach.
muttley jest znany i lubianymuttley jest znany i lubianymuttley jest znany i lubianymuttley jest znany i lubianymuttley jest znany i lubianymuttley jest znany i lubiany
Standardowy

A jaki nr linii?
__________________
muttley jest offline   Reply With Quote
Stary 20-06-09, 19:56   #3
Faraonek
Newbie
 
Data dołączenia: Dec 2008
Posty: 16
Podziękowań: 2
Podziękowano mu 0 razy w 0 postach.
Faraonek jeszcze nie znają
Standardowy

Kod:
Const
Hmm=3155; // enter the ID of HMM rune.
MiniHealth=400; // 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('Warlock');
if Creature<>nil then
begin
LOCKID:=Creature.ID;
While Creature <> nil do
begin
If self.Health>MiniHealth then
Self.Containers.UseItemWithCreature(Hmm, Creature);
Sleep(100);
updateworld;
Creature:=GetCreatureByID(LOCKID);
end;
end;
Sleep(100);
end;
end;
Wystarczyło dodać ; oraz zrobić prawidłowy komentarz w trzeciej linii.

pozdro
Faraonek jest offline   Reply With Quote
Odpowiedz

Tagi
poprawa, skryptu, zobacz

Narzędzia tematu
Wygląd tematu

Zasady Postowania
Nie możesz tworzyć nowych tematów
Nie możesz pisać odpowiedzi.
Nie możesz dodawać załączników
Nie możesz edytować swoich postów

BB code jest włączone
Emotikonywłączone
Kod [IMG] jest włączone
Kod HTML jest wyłączony

Skocz do


no new posts