Michalekk
Senior User
- Joined
- Aug 3, 2008
- Messages
- 752
- Reaction score
- 163
- Age
- 30
Expienie
Strzelanie z runy:
PHP:
Const
RuneID = 3155 // tutaj id runy
MinHP = 1100 // ponizej xx hp nie strzeli z runy
function GetAttackedCreature:TCreature;
begin
UpdateWorld;
result := nil;
for i := 0 to Creatures.Count -1 do
begin
if i >= Creatures.Count then break;
if Creatures.Creature[i].ID = Self.Attacking then
Begin
result := Creatures.Creature[i];
exit;
end;
end;
end;
while not terminated do
begin
UpdateWorld;
Creature := GetAttackedCreature;
if Creature <> nil then
if Self.Health >= MinHP then
Self.Containers.UseItemWithCreature(RuneID,Creature);
sleep(3000);
end;
PHP:
const
Hp='666' // przy jakiej ilosci hp ma sie uleczyc
Mana='20' // ilosc mana, mozna zmienic na exure gran/vite
ManaPotionId='000' //ID manapotiony, ktory chcemy uzyc
HealSpell='Exura'
while not terminated do
begin
if Self.Mana < Mana then
Self.Containers.UseItemWithSelf(ManaPotionId);
Sleep(200);
if Self.Health <= Hp then
Self.Say(HealSpell);
Sleep(2000);
end;
PHP:
Const
Exp = 4200
while not terminated do
begin
UpdateWorld;
if Self.Experience >= Exp
then Self.Logout(True);
Sleep(1000);
end;
Zmiana but?w z bohy na softboots i na odwr?t w zale?no?ci od HP. Np, je?eli ustawimy w const HPsoft = 1000 i HPboh = 1500 (tak jak jest teraz), to gdy HP nam spadnie poni?ej 1000 to za?o?y soft buty, a gdy b?dzie powy?ej 1500 to za?o?y bohy.
PHP:
const
BohID = 3079;
SoftID = 6529;
HPsoft = 1000;
HPboh = 1500;
procedure changeBoots(id : integer);
var
x,i:integer;
begin
for x:=0 to self.containers.count-1 do
begin
for i:=0 to self.containers.container[x].count -1 do
begin
if self.containers.container[x].item[i].id = id then
begin
self.containers.container[x].item[i].movetobody(self.feet,1);
exit;
end;
end;
end;
end;
begin
updateworld;
if self.health > HPboh then
if self.feet.ID = bohID then exit
else changeBoots(BohID);
else if self.health < HPsoft then
if self.feet.ID = SoftID then exit
else changeboots(softID);
end;
PHP:
Const
MonsterToCheck = 'Stalker'
MinHealth = 300
MinMana = 200
function CountMonstersBesideYou:Integer;
begin
Result := 0;
UpdateWorld;
for i := 0 to creatures.Count -1 do
begin
if i >= Creatures.Count then break
for x := -1 to 1 do
begin
if x >= 2 then break
for y := -1 to 1 do
begin
if y > 1 then break;
if Creatures.Creature[i].NPC then
if (Creatures.Creature[i].x = Self.X +x) and (Creatures.Creature[i].y = Self.y + y) then
if Creatures.Creature[i].Name = MonsterToCheck then
Result := Result + 1;
end;
end;
end;
end;
while not terminated do
begin
UpdateWorld;
if CountMonstersBesideYou >= 1 then
if Self.Mana >= MinMana then
if Self.Health > MinHealth then
Self.Say('exori');
sleep(200);
end;
Skillowanie
Rozbudowany Slime trainer:
PHP:
const Food_Id = 3606; // zmie? na inne id jedzenia
MinMana = 30; // do ile many ma je??
StrongWeaponID = 3320; l// ID "normalne" broni
HealAtHp =400; // ulecz gdy masz x hp
UhAtHp=300; // uh gdy max x hp
KillAtHp=320; // zabij matke gdy max x hp
var
StrongWeapon:TItem;
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;
function Attacking: boolean;
begin
UpdateWorld;
for x := 0 to Creatures.Count - 1 do
begin
UpdateWorld;
if Creatures.Creature[x].Attacking then
begin
Result := True;
Exit;
end;
end;
Result := False;
Exit;
end;
function GetFollowedCreatureID: integer;
begin
UpdateWorld;
for x := 0 to Creatures.Count - 1 do
begin
UpdateWorld;
if Creatures.Creature[x].Following then
begin
Result := Creatures.Creature[x].ID;
Exit;
end;
end;
end;
var
MotherSlime, X1, Y1: integer;
begin
updateworld;
updateworld;
MotherSlime := GetFollowedCreatureID;
while not Terminated do
begin
UpdateWorld;
if self.LogoutBlock=false then self.Logout(false)
begin
UpdateWorld;
if ((Self.Health) <(HealAtHp)) and ((Self.Mana)>(25)) then
Self.Say('exura')
UpdateWorld;
//if ((Self.Health) <(UhAtHp)) then Self.Containers.UseItemWithSelf(ITEM_RUNE_UH);
Sleep(1000);
end;
if not Attacking then
begin
UpdateWorld;
for x := 0 to Creatures.Count - 1 do
begin
UpdateWorld;
if Creatures.Creature[x].ID <> MotherSlime then
begin
if (Creatures.Creature[x].Name <> Self.Name) and Creatures.Creature[x].NPC then
begin
UpdateWorld;
X1 := Creatures.Creature[x].X;
Y1 := Creatures.Creature[x].Y;
if (X1 - Self.X = 1) or (X1 - Self.X = 0) or (X1 - Self.X = -1) then
begin
UpdateWorld;
if (Y1 - Self.Y = 1) or (Y1 - Self.Y = 0) or (Y1 - Self.Y = -1) then
begin
if Creatures.Creature[x].Health>70 then
Begin
Creatures.Creature[x].Attacking := true;
Break;
end;
end;
end;
end;
end;
end;
end;
else
begin
if self.Health < KillAtHp then
Begin
PlaySound('d:\ouch.wav');
UpdateWorld;
for x := 0 to Creatures.Count - 1 do
begin
UpdateWorld;
if Creatures.Creature[x].ID = MotherSlime then
begin
if (Creatures.Creature[x].Name <> Self.Name) and Creatures.Creature[x].NPC then
Creatures.Creature[x].Attacking := true;
StrongWeapon:= GetItemFromOpenBackpack(StrongWeaponID);
if StrongWeapon <> nil then
StrongWeapon.MoveToBody(Self.RightHand, 0);
Break;
end;
end;
end;
if Self.Mana < MinMana then
begin
UpdateWorld;
for container := 0 to Self.Containers.Count - 1 do
begin
UpdateWorld;
for item := 0 to Self.Containers.Container[container].Count - 1 do
begin
UpdateWorld;
if Self.Containers.Container[container].Item[item].ID = Food_Id then
Self.Containers.Container[container].Item[item].Use;
end;
end;
end;
end;
Sleep(1000);
end;
end;
PHP:
Const
SmallID = 1781
SmallAmount = 5
Function GetItemFromOpenBackpack(ID, Index: 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;
if x = Index then Continue;
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;
function CountItemAmountFromOpenBackpack(ID: integer): integer;
var
x: integer;
y: integer;
begin
Result := 0;
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 := Result + Self.Containers.Container[x].Item[y].Amount;
end;
end;
end;
end;
while not terminated do
begin
UpdateWorld;
SmallStone := GetItemFromOpenBackpack(SmallID, Self.Containers.Count);
if SmallStone <> nil then SmallStone.MoveToContainer(Self.Containers.Container[0], 0, 0);
if (Self.LeftHand.ID = SmallID) then
begin
if (Self.LeftHand.Amount < 90) then
begin
SmallStone := GetItemFromOpenBackpack(SmallID, Self.Containers.Count);
if SmallStone <> nil then SmallStone.MoveToBody(Self.LeftHand, 0);
end;
end else begin
SmallCount := CountItemAmountFromOpenBackpack(SmallID);
if SmallCount >= SmallAmount then
begin
Self.LeftHand.MoveToBody(Self.Arrow, 0);
Sleep(500);
SmallStone := GetItemFromOpenBackpack(SmallID, Self.Containers.Count);
if SmallStone <> nil then SmallStone.MoveToBody(Self.LeftHand, 0);
end else if Self.LeftHand.ID = 0 then Self.Arrow.MoveToBody(Self.LeftHand, 0);
end;
Sleep(500);
end;
PHP:
while not terminated do
begin
UpdateWorld;
if Self.RightHand.ID = 0 then
Self.Logout(true);
sleep(500);
end;
PHP:
Const
FriendName = 'Mateusz Dragon Wielki'
begin
UpdateWorld;
X := Self.Skills.Sword.Percentage;
Y := Self.Skills.Shielding.Percentage;
X1 := Self.Skills.Axe.Percentage;
Y1 := Self.Skills.Club.Percentage;
Z := Self.Skills.Fist.Percentage;
Z1 := Self.Skills.Distance.Percentage
XX := Self.Skills.Magic.Percentage;
while not terminated do
begin
UpdateWorld;
if X <> Self.Skills.Sword.Percentage then
begin
Self.PrivateMessage(FriendName,intToStr(100 - Self.Skills.Sword.Percentage) + '% to Sword level ' + IntToStr(Self.Skills.Sword.Level + 1));
X := Self.Skills.Sword.Percentage;
sleep(1500);
end;
if Y <> Self.Skills.Shielding.Percentage then
begin
Self.PrivateMessage(FriendName, IntToStr(100 - Self.Skills.Shielding.Percentage) + '% to Shield level ' + IntToStr(Self.Skills.Shielding.Level + 1));
Y := Self.Skills.Shielding.Percentage;
Sleep(1500);
end;
if X1 <> Self.Skills.Axe.Percentage then
begin
Self.PrivateMessage(FriendName,intToStr(100 - Self.Skills.Axe.Percentage) + '% to Axe level ' + IntToStr(Self.Skills.Axe.Level + 1));
X1 := Self.Skills.Axe.Percentage;
sleep(1500);
end;
if Y1 <> Self.Skills.Club.Percentage then
begin
Self.PrivateMessage(FriendName,intToStr(100 - Self.Skills.Club.Percentage) + '% to Club level ' + IntToStr(Self.Skills.Club.Level + 1));
Y1 := Self.Skills.Club.Percentage;
sleep(1500);
end;
if Z <> Self.Skills.Fist.Percentage then
begin
Self.PrivateMessage(FriendName,intToStr(100 - Self.Skills.Fist.Percentage) + '% to Fist level ' + IntToStr(Self.Skills.Fist.Level + 1));
Z := Self.Skills.Fist.Percentage;
sleep(1500);
end;
if Z1 <> Self.Skills.Distance.Percentage then
begin
Self.PrivateMessage(FriendName,intToStr(100 - Self.Skills.distance.Percentage) + '% to Distance level ' + IntToStr(Self.Skills.Distance.Level + 1));
Z1 := Self.Skills.Distance.Percentage;
sleep(1500);
end;
if XX <> Self.Skills.Magic.Percentage then
begin
Self.PrivateMessage(Self.Name,intToStr(100 - Self.Skills.Magic.Percentage) + '% to Magic level ' + IntToStr(Self.Skills.Magic.Level + 1));
XX := Self.Skills.Magic.Percentage;
sleep(1500);
end;
sleep(100);
end;
end;
Notka moderatorska: |
plagiat |
Last edited by a moderator: