poszukuje skrypta na napis jaki mam loot na h tak jak z expem mialem kiedyś ten skrypt ale miałem formata i nie moge go teraz znaleść
Const
Name=['The Horned Fox'];
SwitchAt=30;// the % of the current attacked monster
//that if the monster has lass % hp than this, we Will NOt change to the stronger monster.
function GetPlace(st:string):integer;
var
x:integer;
begin
Result:=1000;
for x:=Low(Name) To High(Name) do
begin
if Name[x]=st then
Result:=x;
end;
end;
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 IsCreatureBesideYou(c: TCreature): boolean;
begin
UpdateWorld;
Result := False;
if (abs(c.X-self.X) <= 1) and (abs(c.Y-self.Y) <= 1) then begin
if c.Z = self.Z then begin
Result := True;
end;
end;
end;
var
x:integer;
b:boolean;
begin
while not terminated do
begin
b:=false;
updateworld;
If (Self.Attacking<>0) then
begin
Creature:=GetCreatureByID(Self.Attacking);
if Creature<>nil then
if SwitchAt<Creature.Health then
begin
for x := 0 to Creatures.Count - 1 do
begin
updateworld;
if b then break;
if x >= Creatures.Count then Break;
if Creatures.Creature[x].NPC then
if Creatures.Creature[x].z=self.z then
if Creatures.Creature[x].Name<>self.name then
if Creatures.Creature[x].Attacking = false then
if IsCreatureBesideYou(Creatures.Creature[x]) then
if GetPlace(Creature.Name)>GetPlace(Creatures.Creature[x].Name) then
begin
sleep(100);
updateworld;
Creatures.Creature[x].attacking:=true;
B:=true;
end;
end;
end;
end;
Sleep(100);
end;
end;
Ostatnio zmieniony przez Gray : 21-12-2008, 15:30
Ostatnio zmieniony przez felek159 : 23-12-2008, 20:02
Ostatnio zmieniony przez :::...Kielek...::: : 23-12-2008, 23:15
Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
const
minMana = 50 // Tutaj ustawiamy przy jakiej ilości many bot ma użyć manaruny.
while not terminated do
begin
UpdateWorld;
if Self.Mana < minMana then
Self.Containers.UseItemWithSelf(3157); // Numerek "3157" oznacza ID manaruny. ID można sprawdzić klikając prawym przyciskiem myszki na manarune i wybierając "Show Item Number"
Sleep(1000);// Oznacza ile czasu ma odczekać przed kolejnym użyciem. (1000 = 1 sekunda)
end;
Ostatnio zmieniony przez artix1234 : 24-12-2008, 18:45
ghetto vet
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki