PNB - No - Gaut - Untuk - Kita - Semua Ges

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

itemid = 5666

seedid = itemid+1
posX = 0
posY = -2
delayplace = 180
delaypunch = 200
worldpnb = " "
worldidpnb = " "
worldtake = " "
worldidtake = " "
worlddrop = " "
worldiddrop = " "
pack_name = "ssp_10_pack"
pack_price = 2000
id_pack_item = 5706

function warptake(worldtake,worldidtake)
while getBot().world ~= worldtake:upper() do
sendPacket("action|join_request\nname|"..worldtake:upper().."\ninvitedWorld|
0",3)
sleep(5000)
end
while getTile(math.floor(getBot().x/32),math.floor(getBot().y/32)).fg == 6 do
sendPacket("action|join_request\
nname|"..worldtake:upper().."|"..worldidtake:upper().."\ninvitedWorld|0",3)
sleep(4000)
end
end

function warpdrop(worlddrop,worldiddrop)
while getBot().world ~= worlddrop:upper() do
sendPacket("action|join_request\nname|"..worlddrop:upper().."\ninvitedWorld|
0",3)
sleep(5000)
end
while getTile(math.floor(getBot().x/32),math.floor(getBot().y/32)).fg == 6 do
sendPacket("action|join_request\
nname|"..worlddrop:upper().."|"..worldiddrop:upper().."\ninvitedWorld|0",3)
sleep(4000)
end
end

function warppnb(worldpnb,worldidpnb)
while getBot().world ~= worldpnb:upper() do
sendPacket("action|join_request\nname|"..worldpnb:upper().."\ninvitedWorld|
0",3)
sleep(5000)
end
while getTile(math.floor(getBot().x/32),math.floor(getBot().y/32)).fg == 6 do
sendPacket("action|join_request\
nname|"..worldpnb:upper().."|"..worldidpnb:upper().."\ninvitedWorld|0",3)
sleep(4000)
end
end

function pnb()
collectSet(true, 3)
if findItem(itemid) > 0 then
place(itemid, posX, posY)
sleep(delayplace)
while getTile(math.floor(getBot().x / 32) + posX, math.floor(getBot().y /
32) + posY).fg ~= 0 do
punch(posX, posY)
sleep(delaypunch)
end
end
end

function buypack()
while findItem(112) > pack_price do
sendPacket("action|buy\nitem|"..pack_name,2)
sleep(2000)
end
end

while getBot().status == "online" do


if findItem(seedid) == 200 then
collectSet(false)
warpdrop(worlddrop,worldiddrop)
drop(seedid)
sleep(2000)
buypack()
sleep(2000)
drop(5706)
sleep(2000)
warppnb(worldpnb,worldidpnb)
elseif findItem(itemid) < 1 then
warptake(worldtake,worldidtake)
collectSet(true, 3)
sleep(3000)
warppnb(worldpnb,worldidpnb)
if findItem(itemid) == 0 then
drop(seedid)
sleep(2000)
removeBot(getBot().name)
end
elseif findItem(itemid) > 0 then
pnb()
end
end

You might also like