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

CountSB, FS = 0, 0

050000500005000050000500005000050000500005000
3z7kf5u3t

STDIN
Input for the program ( Optional )

Output:

---Possition Vend
x = GetLocal().posX / 32
y= GetLocal().posY / 32

EditToggle("Fast Drop", true)

id = -274
ids = -273

delay = 500

function dialogs(dialog)
LogToConsole("`bScript Started In : `05 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `04 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `03 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `02 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `01 Second")
Sleep(1000)
LogToConsole("`4Script Is Running")
Sleep(500)

ter= {}
ter.v0 = "OnDialogRequest"
ter.v1 = dialog
SendVariant(ter)
end

dialog = [[add_label_with_icon|big|`bCreative PS Multimode|left|]] .. 7074 .. [[|


add_smalltext|`4Yam Community|
add_spacer|small|
add_smalltext|`7Script By:|
add_label_with_icon|small|`@Terry.#0007|left|13708|
add_label_with_icon|small|`@Kuryam#7165|left|13706|
add_textbox|-----------------------------------------------------------------------
-|
add_textbox|`4[+] `7if you want to see the features, you can Wrench your name!|
left||
add_textbox|`4[+]`7 if you want to turn off the mode, just type /stop|left|
add_url_button|ter|`eDiscord|noflags|https://discord.gg/Kuryam|would you like to
join Yam Community?|0|0|
end_dialog|itro| Cancel | `9OKAY |
]]
dialogs(dialog)
function hook(type, str)
if str:find("action|wrench") then
dialog1 = [[add_label_with_icon|big|`9Multimode POG|left|]] .. 9474 .. [[|
add_spacer|small|
add_label_with_icon|small|`bHello:`0 ]]..GetLocal().name..[[|right|7684|
add_label_with_icon|small|`bWorld:`0 ]]..GetWorldName()..[[|right|7684|
add_label_with_icon|small|`bYour Position:`0 []]..(GetLocal().posX//32)..[[,]]..
(GetLocal().posY//32)..[[]|left|12854|
add_spacer|medium|
add_button_with_icon|playerinfo|`7 Player Info |staticBlueFrame|1366||
add_button_with_icon|block|`7 Function Block |staticBlueFrame|13592||
add_button_with_icon|seed|`7 Function Seed |staticBlueFrame|13593||
add_button_with_icon|discord|`7 My Community |staticBlueFrame|9474||
add_button_with_icon|owner|`7 Founder |staticBlueFrame|12436||
add_button_with_icon||END_LIST|noflags|0||
add_spacer|small||
end_dialog|friend|Close||
]]
pi= {}
pi.v0 = "OnDialogRequest"
pi.v1 = dialog1
SendVariant(pi)
end

if str:find("buttonClicked|playerinfo") then
SendPacket(2, "action|dialog_return\ndialog_name|alist")
return true
end

if str:find("buttonClicked|block") then
dialog = [[
add_label_with_icon|big|`bFor Pot O' Gems Block |left|13592|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag|`7Empety Vend and Add To Magplant|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pri= {}
pri.v0 = "OnDialogRequest"
pri.v1 = dialog
SendVariant(pri)
end

if str:find("buttonClicked|seed") then
dialog = [[add_label_with_icon|big|`bFor Pot O' Gems Seed|left|]] .. 13593 .. [[|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend1|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop1|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop1|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag1|`7Empety Vend and Add To Mag|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pro= {}
pro.v0 = "OnDialogRequest"
pro.v1 = dialog
SendVariant(pro)
end

if type == 2 and str:find("/stop") then


retvend = false
retdrop = false
venddrop = false
vendmag = false
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end

if str:find("buttonClicked|owner") then
owner = [[add_label_with_icon|big|`bFounder Script |left|]].. 12436 ..[[|
add_spacer|medium|
add_textbox|`7Script By:|left|
add_spacer|small|
add_label_with_icon|small|`1Terry.#0007|left|13708|
add_label_with_icon|small|`1Kuryam#7165|left|13706
add_textbox|`7----------------------------------------------|
add_textbox|`4Yam Community|
add_smalltext|`0https://t.me/KuryamMarket|
add_smalltext|`0https://discord.gg/Kuryam|
add_button|backcommand|Back|left|
]]
pra= {}
pra.v0 = "OnDialogRequest"
pra.v1 = owner
SendVariant(pra)
end

if str:find("buttonClicked|discord") then
community = [[add_label_with_icon|big|`bJoin My Community|left|]].. 9222 ..[[|
add_smalltext|join my community to get more free scripts, and `4follow the rules!|
add_spacer|medium|
add_url_button|terry|`8Discord|noflags|https://discord.gg/Kuryam|would you like to
join `1Yam Comunity Discord ?|0|0|
add_url_button|terry|`8Telegram|noflags|https://t.me/KuryamMarket|would you like to
join `1Kuryam Community Telegram?|0|0|
add_spacer|medium|
add_button|backcommand|Back|left|
]]
puh= {}
puh.v0 = "OnDialogRequest"
puh.v1 = community
SendVariant(puh)
end

if str:find("buttonClicked|backcommand") then
SendPacket (2, "action|wrench")
return true
end

if str:find("check_retvend|1") then
retvend = true
retdrop = false
venddrop = false
vendmag = false
return true
end
if str:find("check_retdrop|1") then
retvend = false
retdrop = true
venddrop = false
vendmag = false
return true
end
if str:find("check_tvdrop|1") then
retvend = false
retdrop = false
venddrop = true
vendmag = false
return true
end
if str:find("check_vtmag|1") then
retvend = false
retdrop = false
venddrop = false
vendmag = true
return true
end
if str:find("check_retvend1|1") then
retvend1 = true
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_retdrop1|1") then
retvend1 = false
retdrop1 = true
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_tvdrop1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = true
vendmag1 = false
return true
end
if str:find("check_vtmag1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = true
return true
end
return false
end

function magtovend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function magtovend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped1()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function mag()
Sleep(60)
if retvend then
magtovend()
end
if retdrop then
dropped()
end
if venddrop then
vend()
end
if vendmag then
vendtomag()
end
if retvend1 then
magtovend1()
end
if retdrop1 then
dropped1()
end
if venddrop1 then
vend1()
end
if vendmag1 then
vendtomag1()
end
end

AddHook(pkt,"OnSendPacketRaw")
AddHook(hook,"OnSendPacket")
AddHook(var,"OnVariant")

while true do
mag()
end
lua5.3: Main.lua:4: attempt to call a nil value
stack traceback:
Main.lua:4: in main chunk
[C]: in ?
3z7kf5u3t

STDIN
Input for the program ( Optional )

Output:

---Possition Vend
x = GetLocal().posX / 32
y= GetLocal().posY / 32

EditToggle("Fast Drop", true)

id = -274
ids = -273

delay = 500

function dialogs(dialog)
LogToConsole("`bScript Started In : `05 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `04 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `03 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `02 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `01 Second")
Sleep(1000)
LogToConsole("`4Script Is Running")
Sleep(500)

ter= {}
ter.v0 = "OnDialogRequest"
ter.v1 = dialog
SendVariant(ter)
end

dialog = [[add_label_with_icon|big|`bCreative PS Multimode|left|]] .. 7074 .. [[|


add_smalltext|`4Yam Community|
add_spacer|small|
add_smalltext|`7Script By:|
add_label_with_icon|small|`@Terry.#0007|left|13708|
add_label_with_icon|small|`@Kuryam#7165|left|13706|
add_textbox|-----------------------------------------------------------------------
-|
add_textbox|`4[+] `7if you want to see the features, you can Wrench your name!|
left||
add_textbox|`4[+]`7 if you want to turn off the mode, just type /stop|left|
add_url_button|ter|`eDiscord|noflags|https://discord.gg/Kuryam|would you like to
join Yam Community?|0|0|
end_dialog|itro| Cancel | `9OKAY |
]]
dialogs(dialog)

function hook(type, str)


if str:find("action|wrench") then
dialog1 = [[add_label_with_icon|big|`9Multimode POG|left|]] .. 9474 .. [[|
add_spacer|small|
add_label_with_icon|small|`bHello:`0 ]]..GetLocal().name..[[|right|7684|
add_label_with_icon|small|`bWorld:`0 ]]..GetWorldName()..[[|right|7684|
add_label_with_icon|small|`bYour Position:`0 []]..(GetLocal().posX//32)..[[,]]..
(GetLocal().posY//32)..[[]|left|12854|
add_spacer|medium|
add_button_with_icon|playerinfo|`7 Player Info |staticBlueFrame|1366||
add_button_with_icon|block|`7 Function Block |staticBlueFrame|13592||
add_button_with_icon|seed|`7 Function Seed |staticBlueFrame|13593||
add_button_with_icon|discord|`7 My Community |staticBlueFrame|9474||
add_button_with_icon|owner|`7 Founder |staticBlueFrame|12436||
add_button_with_icon||END_LIST|noflags|0||
add_spacer|small||
end_dialog|friend|Close||
]]
pi= {}
pi.v0 = "OnDialogRequest"
pi.v1 = dialog1
SendVariant(pi)
end

if str:find("buttonClicked|playerinfo") then
SendPacket(2, "action|dialog_return\ndialog_name|alist")
return true
end

if str:find("buttonClicked|block") then
dialog = [[
add_label_with_icon|big|`bFor Pot O' Gems Block |left|13592|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag|`7Empety Vend and Add To Magplant|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pri= {}
pri.v0 = "OnDialogRequest"
pri.v1 = dialog
SendVariant(pri)
end

if str:find("buttonClicked|seed") then
dialog = [[add_label_with_icon|big|`bFor Pot O' Gems Seed|left|]] .. 13593 .. [[|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend1|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop1|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop1|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag1|`7Empety Vend and Add To Mag|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pro= {}
pro.v0 = "OnDialogRequest"
pro.v1 = dialog
SendVariant(pro)
end

if type == 2 and str:find("/stop") then


retvend = false
retdrop = false
venddrop = false
vendmag = false
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end

if str:find("buttonClicked|owner") then
owner = [[add_label_with_icon|big|`bFounder Script |left|]].. 12436 ..[[|
add_spacer|medium|
add_textbox|`7Script By:|left|
add_spacer|small|
add_label_with_icon|small|`1Terry.#0007|left|13708|
add_label_with_icon|small|`1Kuryam#7165|left|13706
add_textbox|`7----------------------------------------------|
add_textbox|`4Yam Community|
add_smalltext|`0https://t.me/KuryamMarket|
add_smalltext|`0https://discord.gg/Kuryam|
add_button|backcommand|Back|left|
]]
pra= {}
pra.v0 = "OnDialogRequest"
pra.v1 = owner
SendVariant(pra)
end

if str:find("buttonClicked|discord") then
community = [[add_label_with_icon|big|`bJoin My Community|left|]].. 9222 ..[[|
add_smalltext|join my community to get more free scripts, and `4follow the rules!|
add_spacer|medium|
add_url_button|terry|`8Discord|noflags|https://discord.gg/Kuryam|would you like to
join `1Yam Comunity Discord ?|0|0|
add_url_button|terry|`8Telegram|noflags|https://t.me/KuryamMarket|would you like to
join `1Kuryam Community Telegram?|0|0|
add_spacer|medium|
add_button|backcommand|Back|left|
]]
puh= {}
puh.v0 = "OnDialogRequest"
puh.v1 = community
SendVariant(puh)
end
if str:find("buttonClicked|backcommand") then
SendPacket (2, "action|wrench")
return true
end

if str:find("check_retvend|1") then
retvend = true
retdrop = false
venddrop = false
vendmag = false
return true
end
if str:find("check_retdrop|1") then
retvend = false
retdrop = true
venddrop = false
vendmag = false
return true
end
if str:find("check_tvdrop|1") then
retvend = false
retdrop = false
venddrop = true
vendmag = false
return true
end
if str:find("check_vtmag|1") then
retvend = false
retdrop = false
venddrop = false
vendmag = true
return true
end
if str:find("check_retvend1|1") then
retvend1 = true
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_retdrop1|1") then
retvend1 = false
retdrop1 = true
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_tvdrop1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = true
vendmag1 = false
return true
end
if str:find("check_vtmag1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = true
return true
end
return false
end

function magtovend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function magtovend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped1()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function mag()
Sleep(60)
if retvend then
magtovend()
end
if retdrop then
dropped()
end
if venddrop then
vend()
end
if vendmag then
vendtomag()
end
if retvend1 then
magtovend1()
end
if retdrop1 then
dropped1()
end
if venddrop1 then
vend1()
end
if vendmag1 then
vendtomag1()
end
end

AddHook(pkt,"OnSendPacketRaw")
AddHook(hook,"OnSendPacket")
AddHook(var,"OnVariant")
while true do
mag()
end

lua5.3: Main.lua:4: attempt to call a nil value


stack traceback:
Main.lua:4: in main chunk
[C]: in ?
3z7kf5u3t

STDIN
Input for the program ( Optional )

Output:

---Possition Vend
x = GetLocal().posX / 32
y= GetLocal().posY / 32

EditToggle("Fast Drop", true)

id = -274
ids = -273

delay = 500

function dialogs(dialog)
LogToConsole("`bScript Started In : `05 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `04 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `03 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `02 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `01 Second")
Sleep(1000)
LogToConsole("`4Script Is Running")
Sleep(500)

ter= {}
ter.v0 = "OnDialogRequest"
ter.v1 = dialog
SendVariant(ter)
end

dialog = [[add_label_with_icon|big|`bCreative PS Multimode|left|]] .. 7074 .. [[|


add_smalltext|`4Yam Community|
add_spacer|small|
add_smalltext|`7Script By:|
add_label_with_icon|small|`@Terry.#0007|left|13708|
add_label_with_icon|small|`@Kuryam#7165|left|13706|
add_textbox|-----------------------------------------------------------------------
-|
add_textbox|`4[+] `7if you want to see the features, you can Wrench your name!|
left||
add_textbox|`4[+]`7 if you want to turn off the mode, just type /stop|left|
add_url_button|ter|`eDiscord|noflags|https://discord.gg/Kuryam|would you like to
join Yam Community?|0|0|
end_dialog|itro| Cancel | `9OKAY |
]]
dialogs(dialog)

function hook(type, str)


if str:find("action|wrench") then
dialog1 = [[add_label_with_icon|big|`9Multimode POG|left|]] .. 9474 .. [[|
add_spacer|small|
add_label_with_icon|small|`bHello:`0 ]]..GetLocal().name..[[|right|7684|
add_label_with_icon|small|`bWorld:`0 ]]..GetWorldName()..[[|right|7684|
add_label_with_icon|small|`bYour Position:`0 []]..(GetLocal().posX//32)..[[,]]..
(GetLocal().posY//32)..[[]|left|12854|
add_spacer|medium|
add_button_with_icon|playerinfo|`7 Player Info |staticBlueFrame|1366||
add_button_with_icon|block|`7 Function Block |staticBlueFrame|13592||
add_button_with_icon|seed|`7 Function Seed |staticBlueFrame|13593||
add_button_with_icon|discord|`7 My Community |staticBlueFrame|9474||
add_button_with_icon|owner|`7 Founder |staticBlueFrame|12436||
add_button_with_icon||END_LIST|noflags|0||
add_spacer|small||
end_dialog|friend|Close||
]]
pi= {}
pi.v0 = "OnDialogRequest"
pi.v1 = dialog1
SendVariant(pi)
end

if str:find("buttonClicked|playerinfo") then
SendPacket(2, "action|dialog_return\ndialog_name|alist")
return true
end

if str:find("buttonClicked|block") then
dialog = [[
add_label_with_icon|big|`bFor Pot O' Gems Block |left|13592|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag|`7Empety Vend and Add To Magplant|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pri= {}
pri.v0 = "OnDialogRequest"
pri.v1 = dialog
SendVariant(pri)
end

if str:find("buttonClicked|seed") then
dialog = [[add_label_with_icon|big|`bFor Pot O' Gems Seed|left|]] .. 13593 .. [[|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend1|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop1|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop1|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag1|`7Empety Vend and Add To Mag|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pro= {}
pro.v0 = "OnDialogRequest"
pro.v1 = dialog
SendVariant(pro)
end

if type == 2 and str:find("/stop") then


retvend = false
retdrop = false
venddrop = false
vendmag = false
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end

if str:find("buttonClicked|owner") then
owner = [[add_label_with_icon|big|`bFounder Script |left|]].. 12436 ..[[|
add_spacer|medium|
add_textbox|`7Script By:|left|
add_spacer|small|
add_label_with_icon|small|`1Terry.#0007|left|13708|
add_label_with_icon|small|`1Kuryam#7165|left|13706
add_textbox|`7----------------------------------------------|
add_textbox|`4Yam Community|
add_smalltext|`0https://t.me/KuryamMarket|
add_smalltext|`0https://discord.gg/Kuryam|
add_button|backcommand|Back|left|
]]
pra= {}
pra.v0 = "OnDialogRequest"
pra.v1 = owner
SendVariant(pra)
end

if str:find("buttonClicked|discord") then
community = [[add_label_with_icon|big|`bJoin My Community|left|]].. 9222 ..[[|
add_smalltext|join my community to get more free scripts, and `4follow the rules!|
add_spacer|medium|
add_url_button|terry|`8Discord|noflags|https://discord.gg/Kuryam|would you like to
join `1Yam Comunity Discord ?|0|0|
add_url_button|terry|`8Telegram|noflags|https://t.me/KuryamMarket|would you like to
join `1Kuryam Community Telegram?|0|0|
add_spacer|medium|
add_button|backcommand|Back|left|
]]
puh= {}
puh.v0 = "OnDialogRequest"
puh.v1 = community
SendVariant(puh)
end

if str:find("buttonClicked|backcommand") then
SendPacket (2, "action|wrench")
return true
end

if str:find("check_retvend|1") then
retvend = true
retdrop = false
venddrop = false
vendmag = false
return true
end
if str:find("check_retdrop|1") then
retvend = false
retdrop = true
venddrop = false
vendmag = false
return true
end
if str:find("check_tvdrop|1") then
retvend = false
retdrop = false
venddrop = true
vendmag = false
return true
end
if str:find("check_vtmag|1") then
retvend = false
retdrop = false
venddrop = false
vendmag = true
return true
end
if str:find("check_retvend1|1") then
retvend1 = true
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_retdrop1|1") then
retvend1 = false
retdrop1 = true
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_tvdrop1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = true
vendmag1 = false
return true
end
if str:find("check_vtmag1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = true
return true
end
return false
end

function magtovend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function magtovend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end
function dropped1()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function mag()
Sleep(60)
if retvend then
magtovend()
end
if retdrop then
dropped()
end
if venddrop then
vend()
end
if vendmag then
vendtomag()
end
if retvend1 then
magtovend1()
end
if retdrop1 then
dropped1()
end
if venddrop1 then
vend1()
end
if vendmag1 then
vendtomag1()
end
end

AddHook(pkt,"OnSendPacketRaw")
AddHook(hook,"OnSendPacket")
AddHook(var,"OnVariant")

while true do
mag()
end

lua5.3: Main.lua:4: attempt to call a nil value


stack traceback:
Main.lua:4: in main chunk
[C]: in ?
3z7kf5u3t

STDIN
Input for the program ( Optional )

Output:

---Possition Vend
x = GetLocal().posX / 32
y= GetLocal().posY / 32

EditToggle("Fast Drop", true)

id = -274
ids = -273

delay = 500

function dialogs(dialog)
LogToConsole("`bScript Started In : `05 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `04 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `03 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `02 Second")
Sleep(1000)
LogToConsole("`bScript Started In : `01 Second")
Sleep(1000)
LogToConsole("`4Script Is Running")
Sleep(500)

ter= {}
ter.v0 = "OnDialogRequest"
ter.v1 = dialog
SendVariant(ter)
end

dialog = [[add_label_with_icon|big|`bCreative PS Multimode|left|]] .. 7074 .. [[|


add_smalltext|`4Yam Community|
add_spacer|small|
add_smalltext|`7Script By:|
add_label_with_icon|small|`@Terry.#0007|left|13708|
add_label_with_icon|small|`@Kuryam#7165|left|13706|
add_textbox|-----------------------------------------------------------------------
-|
add_textbox|`4[+] `7if you want to see the features, you can Wrench your name!|
left||
add_textbox|`4[+]`7 if you want to turn off the mode, just type /stop|left|
add_url_button|ter|`eDiscord|noflags|https://discord.gg/Kuryam|would you like to
join Yam Community?|0|0|
end_dialog|itro| Cancel | `9OKAY |
]]
dialogs(dialog)

function hook(type, str)


if str:find("action|wrench") then
dialog1 = [[add_label_with_icon|big|`9Multimode POG|left|]] .. 9474 .. [[|
add_spacer|small|
add_label_with_icon|small|`bHello:`0 ]]..GetLocal().name..[[|right|7684|
add_label_with_icon|small|`bWorld:`0 ]]..GetWorldName()..[[|right|7684|
add_label_with_icon|small|`bYour Position:`0 []]..(GetLocal().posX//32)..[[,]]..
(GetLocal().posY//32)..[[]|left|12854|
add_spacer|medium|
add_button_with_icon|playerinfo|`7 Player Info |staticBlueFrame|1366||
add_button_with_icon|block|`7 Function Block |staticBlueFrame|13592||
add_button_with_icon|seed|`7 Function Seed |staticBlueFrame|13593||
add_button_with_icon|discord|`7 My Community |staticBlueFrame|9474||
add_button_with_icon|owner|`7 Founder |staticBlueFrame|12436||
add_button_with_icon||END_LIST|noflags|0||
add_spacer|small||
end_dialog|friend|Close||
]]
pi= {}
pi.v0 = "OnDialogRequest"
pi.v1 = dialog1
SendVariant(pi)
end

if str:find("buttonClicked|playerinfo") then
SendPacket(2, "action|dialog_return\ndialog_name|alist")
return true
end

if str:find("buttonClicked|block") then
dialog = [[
add_label_with_icon|big|`bFor Pot O' Gems Block |left|13592|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag|`7Empety Vend and Add To Magplant|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pri= {}
pri.v0 = "OnDialogRequest"
pri.v1 = dialog
SendVariant(pri)
end
if str:find("buttonClicked|seed") then
dialog = [[add_label_with_icon|big|`bFor Pot O' Gems Seed|left|]] .. 13593 .. [[|
add_smalltext|Select the features you want to use and checklist just one. `4Do Not
Checklist All Features , this can make the script not work properly.|
add_spacer|small|
add_checkbox|check_retvend1|`7Retrive Magplant and Add To Vend|0|
add_checkbox|check_retdrop1|`7Retrive Magplant and Drop The Items|0|
add_checkbox|check_tvdrop1|`7Empety Vend and Drop The Items|0|
add_checkbox|check_vtmag1|`7Empety Vend and Add To Mag|0|
add_button|apply|Apply Mode!|
add_button|backcommand|Back|left|
]]
pro= {}
pro.v0 = "OnDialogRequest"
pro.v1 = dialog
SendVariant(pro)
end

if type == 2 and str:find("/stop") then


retvend = false
retdrop = false
venddrop = false
vendmag = false
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end

if str:find("buttonClicked|owner") then
owner = [[add_label_with_icon|big|`bFounder Script |left|]].. 12436 ..[[|
add_spacer|medium|
add_textbox|`7Script By:|left|
add_spacer|small|
add_label_with_icon|small|`1Terry.#0007|left|13708|
add_label_with_icon|small|`1Kuryam#7165|left|13706
add_textbox|`7----------------------------------------------|
add_textbox|`4Yam Community|
add_smalltext|`0https://t.me/KuryamMarket|
add_smalltext|`0https://discord.gg/Kuryam|
add_button|backcommand|Back|left|
]]
pra= {}
pra.v0 = "OnDialogRequest"
pra.v1 = owner
SendVariant(pra)
end

if str:find("buttonClicked|discord") then
community = [[add_label_with_icon|big|`bJoin My Community|left|]].. 9222 ..[[|
add_smalltext|join my community to get more free scripts, and `4follow the rules!|
add_spacer|medium|
add_url_button|terry|`8Discord|noflags|https://discord.gg/Kuryam|would you like to
join `1Yam Comunity Discord ?|0|0|
add_url_button|terry|`8Telegram|noflags|https://t.me/KuryamMarket|would you like to
join `1Kuryam Community Telegram?|0|0|
add_spacer|medium|
add_button|backcommand|Back|left|
]]
puh= {}
puh.v0 = "OnDialogRequest"
puh.v1 = community
SendVariant(puh)
end

if str:find("buttonClicked|backcommand") then
SendPacket (2, "action|wrench")
return true
end

if str:find("check_retvend|1") then
retvend = true
retdrop = false
venddrop = false
vendmag = false
return true
end
if str:find("check_retdrop|1") then
retvend = false
retdrop = true
venddrop = false
vendmag = false
return true
end
if str:find("check_tvdrop|1") then
retvend = false
retdrop = false
venddrop = true
vendmag = false
return true
end
if str:find("check_vtmag|1") then
retvend = false
retdrop = false
venddrop = false
vendmag = true
return true
end
if str:find("check_retvend1|1") then
retvend1 = true
retdrop1 = false
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_retdrop1|1") then
retvend1 = false
retdrop1 = true
venddrop1 = false
vendmag1 = false
return true
end
if str:find("check_tvdrop1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = true
vendmag1 = false
return true
end
if str:find("check_vtmag1|1") then
retvend1 = false
retdrop1 = false
venddrop1 = false
vendmag1 = true
return true
end
return false
end

function magtovend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vend()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..id.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function magtovend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|addstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
end

function dropped1()
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|withdraw")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vend1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket (2, "action|dialog_return\ndialog_name|drop\nitem_drop|"..ids.."|\
nitem_count|250")
Sleep(150)
end

function vendtomag1()
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|vend_edit\nx|"..x.."|\ny|"..y.."|\
nbuttonClicked|pullstock")
Sleep(delay)
SendPacket(2,"action|dialog_return\ndialog_name|magplant_edit\nx|"..xmag.."|\
ny|"..ymag.."|\nbuttonClicked|additems")
Sleep(delay)
end

function mag()
Sleep(60)
if retvend then
magtovend()
end
if retdrop then
dropped()
end
if venddrop then
vend()
end
if vendmag then
vendtomag()
end
if retvend1 then
magtovend1()
end
if retdrop1 then
dropped1()
end
if venddrop1 then
vend1()
end
if vendmag1 then
vendtomag1()
end
end

AddHook(pkt,"OnSendPacketRaw")
AddHook(hook,"OnSendPacket")
AddHook(var,"OnVariant")

while true do
mag()
end

lua5.3: Main.lua:4: attempt to call a nil value


stack traceback:
Main.lua:4: in main chunk
[C]: in ?

You might also like