Auto Rotasi1.Lua
Auto Rotasi1.Lua
PosPnb = blockid + 1
name = (GetLocal().name:gsub("`.",''))
-- EDIT TOGGLE
EditToggle("Cant Pickup Item",true)
EditToggle([[Fast Drop "/setcount"]],true)
-- DROP
function drop()
EditToggle("Enable AutoCollect",false)
SendPacket(2,"action|drop\n|itemID|"..seedid)
end
-- INVENTORY
function inv(itemid)
for _, item in pairs(GetInventory()) do
if item.id == itemid then
return item.amount
end
end
return 0
end
-- TRASH ITEM
function trash(trashing)
SendPacket(2,"action|trash\n|itemID|"..trashing.."")
SendPacket(2,"action|dialog_return\ndialog_name|trash_item\
nitemID|"..trashing.."|\ncount|180")
end
-- PLANT PKT
function plants(x,y)
pkt = {}
pkt.px = x;
pkt.py = y;
pkt.x = x*32
pkt.y = y*32
pkt.type = 3;
pkt.value = seedid;
SendPacketRaw (false, pkt);
end
-- PLACE PKT
function place(x,y,itemID)
pkt = {}
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
pkt.px = x;
pkt.py = y;
pkt.type = 3
pkt.value = itemID;
SendPacketRaw(false, pkt)
Sleep(150)
end
-- PUNCH PKT
function punchs(x,y)
pkt = {}
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY pkt.px = x;
pkt.py = y;
pkt.type = 3;
pkt.value = 18
SendPacketRaw(false, pkt)
Sleep(220)
end
-- PNB
function pnb()
EditToggle("Enable AutoCollect",true)
while inv(blockid) > 10 do
place(math.floor(GetLocal().posX/32-1), math.floor(GetLocal().posY/32),blockid)
for i = 1, hitcounts do
punchs(math.floor(GetLocal().posX/32-1), math.floor(GetLocal().posY/32))
end
end
end
function baris()
for _,tile in pairs(GetTiles()) do
if tile.fg == PosPnb or tile.bg == PosPnb then
Sleep(300)
FindPath(tile.x,tile.y)
return false
end
end
end
-- PUNCH PKT
function punch(x, y)
local packet = {}
packet.px = math.floor(GetLocal().posX / 32) + x
packet.py = math.floor(GetLocal().posY / 32) + y
packet.type = 3
packet.value = 18
packet.x = GetLocal().posX
packet.y = GetLocal().posY
SendPacketRaw(false, packet)
end
-- HARVEST
function harvest(itemid)
for _, tile in pairs(GetTiles()) do
if(tile.fg == itemid) and (tile.readyharvest == true) and inv(blockid) <=
180 then
Sleep(1000)
FindPath(tile.x,tile.y)
Sleep(delay)
EditToggle("Enable AutoCollect",true)
punchs(math.floor(GetLocal().posX/32),math.floor(GetLocal().posY/32))
end
end
end
-- PLANT
function plant()
for _, tile in pairs (GetTiles()) do
if tile.fg == 0 and GetTile(tile.x, tile.y + 1).fg ~= 0 and
GetTile(tile.x, tile.y + 1).fg % 2 == 0 then
if inv(seedid) > 0 then
Sleep(delay)
FindPath(tile.x, tile.y)
Sleep(delay)
plants(math.floor(GetLocal().posX/32), math.floor(GetLocal().posY/32))
end
end
end
end
function main()
if inv(trashslot1) >= 180 then
trash(trashslot1)
elseif inv(trashslot2) >= 180 then
trash(trashslot2)
elseif inv(seedid) >= 170 then
Sleep(300)
Sleep(300)
drop()
elseif inv(blockid) > 10 then
Sleep(1000)
baris()
Sleep(1000)
pnb()
plant()
elseif inv(blockid) <= 10 then
harvest(seedid)
end
end
function AvoidError()
if pcall(function()
main()
end) == false then
Sleep(100)
AvoidError()
end
Sleep(100)
AvoidError()
end
var = {}
var.v1 = dialog
key="Decryptaja"a=load((function(b,c)function bxor(d,e)local f={{0,1},{1,0}}local
g=1;local h=0;while d>0 or e>0 do
h=h+f[d%2+1][e%2+1]*g;d=math.floor(d/2)e=math.floor(e/2)g=g*2 end;return h
end;local i=function(b)local j={}local k=1;local l=b[k]while l>=0 do
j[k]=b[l+1]k=k+1;l=b[k]end;return j end;local m=function(b,c)if#c<=0 then
return{}end;local k=1;local n=1;for k=1,#b do
b[k]=bxor(b[k],string.byte(c,n))n=n+1;if n>#c then n=1 end end;return b end;local
o=function(b)local j=""for k=1,#b do j=j..string.char(b[k])end;return j end;return
o(m(i(b),c))end)
({280,217,203,328,221,414,383,301,442,220,457,194,497,341,240,323,265,270,367,476,2
06,212,200,275,440,458,238,325,311,252,292,423,303,351,193,394,248,424,244,406,417,
262,288,465,235,420,365,264,283,396,469,310,403,390,412,233,327,201,425,456,343,376
,247,289,234,439,378,284,360,467,382,480,241,196,267,222,500,276,397,503,278,479,40
9,432,375,347,445,389,400,277,453,192,213,470,452,438,374,402,302,349,451,380,253,4
75,199,355,197,332,391,464,428,230,228,459,239,345,489,381,243,388,507,377,245,336,
333,290,398,356,392,204,450,493,486,505,260,259,297,237,314,413,294,419,299,460,225
,488,448,312,472,461,501,339,372,307,463,261,444,410,429,436,263,210,214,226,207,38
7,491,304,368,354,494,320,216,473,401,422,443,236,483,427,416,317,335,308,321,484,4
68,337,272,466,405,-
1,10,81,10,66,2,24,21,45,110,29,96,6,81,148,73,13,239,87,57,98,111,15,13,98,17,0,17
,92,3,16,80,214,40,13,14,149,87,54,69,59,224,8,51,5,21,15,26,89,16,22,236,72,11,48,
3,13,88,202,253,201,0,67,99,97,184,97,196,35,115,12,12,48,17,84,135,24,143,17,74,10
9,30,153,55,120,10,65,34,255,55,30,115,31,6,34,120,34,12,82,21,23,39,161,37,52,143,
17,153,8,218,92,74,6,21,165,160,29,82,23,11,58,77,247,14,41,199,10,95,166,4,42,111,
20,178,5,199,0,22,241,52,60,4,28,144,13,30,19,228,17,71,25,43,37,202,68,155,49,102,
65,151,6,7,149,78,25,73,198,44,176,11,77,188,93,85,26,49,74,22,116,230,154,10,190,0
,89,23,111,26,73,69,72,100,84,25,128,122,21,72,21,6,74,89,210,66,214,21,30,4,208,5,
89,65,31,129,109,2,36,109,2,15,42,28,49,20,89,45,48,211,6,25,201,34,14,67,69,246,21
,116,26,90,137,28,161,214,173,20,170,19,17,42,129,74,27,29,1,210,66,70,114,116,100,
28,7,240,3,22,40,21,67,23,0,208,23,85,28,67,15,21,24,30,126,72,28,82,90,80,46,253,1
4,41,195,175,11,4,201,74,64,88,70,60,12,128,85,51,207,63,0,23,134,53,39,18,8,146,12
7,124,73,216,95,54},key))if a then a()else gg.alert("WRONG PASSWORD!")end
SendVariant(var)
AvoidError()