#Hylon Tris
Depositera mozesz zastapic skryptem do wysylania parceli np. ten:
Kod:
const
FISHID = 3578; ////////// id przedmiotu ktory ma byc wyslany
CAP = 1000; // daj jak najwiecej jak bedziesz moj sposob stosowal
mX = 1030; ////]
mY = 996; ////> wspolzedne obok mailboxa
mZ = 7; ////]
function GoToPos(x,y,z:integer):boolean;
var
i:integer;
begin
return:=false;
self.moveto(x,y,z);
for i:=0 to 10 do
begin
if (self.x=x) and (self.y=y) and (self.z=z) then
begin
return := true;
exit;
end;
sleep(500);
end;
end;
procedure isMailbox;
var
x,y,z:integer;
begin
updateworld;
result:=true;
for x:=0 to 14 do
begin
for y:=0 to 10 do
begin
for z:=0 to screen.tile[x][y].count-1 do
begin
if screen.tile[x][y].item[z].properties.mailbox=true then exit;
end;
end;
end;
result := false;
end;
function findparcel : integer;
var
i:integer;
begin
result := -1;
for i:=0 to self.Containers.Container[0].Count -1 do
if self.containers.container[0].item[i].id = 3503 then result := i;
end;
procedure sendparcel;
var
x,y,z:integer;
begin
for x:=0 to 14 do
begin
for y:=0 to 10 do
begin
for z:=0 to screen.tile[x][y].count-1 do
begin
if screen.tile[x][y].item[z].properties.mailbox=true then
begin
// self.say('X='+inttostr(x)+'; Y='+inttostr(y)+'; Z='+inttostr(z)+'; ID='+inttostr(screen.tile[x][y].item[z].ID));
if findparcel >=0 then
begin
self.containers.container[0].item[findparcel].movetoground(self.x+(x-7),self.y+(y-5),self.z,1);
exit;
end;
end;
end;
end;
end;
end;
var
x,i:integer;
begin
updateworld;
if self.capacity < CAP then
begin
for i:=0 to self.Containers.Container[0].Count -1 do
begin
updateworld;
if self.containers.container[0].item[i].id = FISHID then
begin
if findparcel >-1 then
begin
self.containers.container[0].item[i].movetocontainer(self.containers.container[0],findparcel,0);
sleep(1000);
i:=-1;
end
else begin
self.displaytext('Nie znaleziono parcela!');
exit;
end;
end;
if i >= self.Containers.Container[0].Count -1 then break;
end;
updateworld;
for i:=1 to 5 do
begin
if GoToPos(mX,mY,mZ) then break;
end;
if not isMailBox then
begin
self.displaytext('Nie znaleziono mail boxa!');
exit;
end;
sendparcel;
end;
end;
jak expisz np na trollach w ab to musisz mapke otworzyc przez notatnik, skopowac ja (dajesz tylko kopi w ile uzbiera np pelny bp kasy) potem zalaczasz bota otwierasz ta mapke i na samym koncu mapy dajesz wpt od expowiska do mailboxa potem add>script i ten wysylacz i spowrotem wpt na expowisko ;] [Jak nie bedzie dzialal to usun te depiski]
Ja mam prosbe o skrypt ze gdy 3 potwory na raz mnie bija to ubija jednego z mocniejszej broni zeby bily mnie tylko 2 i gdy sa 2 zaklada slaba bron
oraz takiego: gdy hp spadnie ponizej x% to zamienia bron na mocna i bije z niej az hp odrosnie do yX
Uzywam ng
TY :p
Zakładki