Auto Find PoG - Lua

You might also like

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

SendPacket(2, [[action|input

|text|/warn `cScript `2Active]])

SendPacket(2, "action|input\n|text|Script Made by `cUbreammm")

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

if var.v1:find("OnDialogRequest") and var.v2:find("magplant_edit") then


return true
end

if var.v1:find("OnConsoleMessage") and var.v2:find("Collected") then


add()
return true
end
return false
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

You might also like