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

local item_id = 2404

local count = 1

EditToggle("Fast Drop \"/setcount\"", true)


Sleep(1000)

block = 2292 --- Id block (bukan seed)


sign = FindItemID("Sign") ---Patokan Drop Block

delaydrop = 700

Sleep(1000)
SendPacket(2, "action|input\n|text|/warp Saharadc")
function tele(id)
for k,v in pairs(GetTiles()) do
if v.fg == id or v.bg == id then
FindPath(v.x, v.y)
Sleep(700)
end
end
end

SendPacket(2, "action|input\n|text|`2DONE")

function drop(id)
SendPacket(2, "action|drop\n|itemID|"..id)
Sleep(delaydrop)
end

function pos(id)
return {x = math.floor(GetLocal().posX//32), y = math.floor(GetLocal().posY//32)}
end

local queue = false


local queueCount = 0
AddHook(function(var)
if var.v1 == "OnTextOverlay" then
if var.v2:find("You'd be sorry") or var.v2:find("You can't") then
queue = false
queueCount = 0
end
elseif var.v1 == "OnDialogRequest" then
if queueCount > 0 and var.v2:find("embed_data|itemID|") then
SendPacket(2, string.format([[action|dialog_return
dialog_name|drop_item
itemID|%d|
count|%d|]],
var.v2:match("embed_data|itemID|(%d+)"),
queueCount))
queue = false
queueCount = 0
return true
end
end
end, "OnVariant")
local inventory = GetInventory()
for iterator, item in pairs(inventory) do
SendPacket(2, "action|drop\n|itemID|" .. item.id)
queueCount = item.amount
queue = true
while queue do Sleep(500) end
end

You might also like