Professional Documents
Culture Documents
Auto Find PoG - Lua
Auto Find PoG - Lua
Auto Find PoG - Lua
id = 13902
x = GetLocal().posX//32
y = GetLocal().posY//32 + 1 -- mag down(+1) mag up(-1)
function wrench(x, y)
pkt = {}
pkt.type = 3
pkt.value = 32
pkt.px = x
pkt.py = y
pkt.x = GetLocal().posX
pkt.y = GetLocal().posY
SendPacketRaw(false, pkt)
end
function var(var)
if var.v1:find("OnDialogRequest") and var.v2:find("item_finder") then
return true
end
AddHook(var, "OnVariant")
function find()
SendPacket(2, "action|dialog_return\ndialog_name|item_search\n-274|1\n")
Sleep(5100)
end
function add()
wrench(x, y)
SendPacket(2, "action|dialog_return\ndialog_name|magplant_edit\nx|"..x.."|\
ny|"..y.."|\nbuttonClicked|additems\n")
Sleep(100)
end
while true do
find()
end