0% found this document useful (0 votes)
5 views4 pages

SCRPT Lua

The document outlines a user interface for a proxy application created by Aizen, featuring various commands for dropping items and collecting bets. It includes menus for user interaction, displaying user IDs, and providing instructions for using commands. Additionally, it contains functions for handling inventory checks, item drops, and logging actions to the console.

Uploaded by

Ale XD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

SCRPT Lua

The document outlines a user interface for a proxy application created by Aizen, featuring various commands for dropping items and collecting bets. It includes menus for user interaction, displaying user IDs, and providing instructions for using commands. Additionally, it contains functions for handling inventory checks, item drops, and logging actions to the console.

Uploaded by

Ale XD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

dialog = [[

set_border_color|0,191,255,100
set_bg_color|0,0,0,255
add_label_with_icon|big|`cProxy By Aizen``|left|14788|
add_spacer|small|
add_label|small|``Hello `c]]..getLocal().name..[[ |left|
add_label|small|``if you have any question, feel free to ask me!!``|left|
add_spacer|small|
add_label|small|`c----------------------------------------------------``|left|
add_label_with_icon|small|``Your UID `c[`0]]..getLocal().userId..[[`c]``|left|482|
add_label_with_icon|small|``Your Dicord Id `c[`0]]..getDiscordID()..[[`c]``|left|
482|
add_label_with_icon|small|``Your Position `c[`0]]..(getLocal().pos.x // 32)..[[`0 -
]]..(getLocal().pos.y // 32)..[[`c]``|left|482|
add_label|small|`c----------------------------------------------------``|left|
add_label_with_icon|big|`cBe Careful! |left|3102|
add_spacer|small|
add_spacer|small|
add_label_with_icon|small|``Do `c/Menu ``For Commands|left|482|
add_label_with_icon|small|``Press Friend Button ``For Several Features|left|482|
add_label_with_icon|small|``If You Use `cPos1 ``It Will Drop Left|left|482|
add_label_with_icon|small|``If You Use `cPos2 ``It Will Drop Right|left|482|
add_spacer|small|
add_spacer|small|
add_custom_button|kapa1|textLabel:`c Next
;middle_colour:200;border_colour:1000000000000;display:block;|
]]
sendVariant({[0] = "OnDialogRequest", [1] = dialog})

menu = [[
set_border_color|0,191,255,100
set_bg_color|0,0,0,255
add_label_with_icon|big|`cProxy By Aizen``|left|14788|
add_spacer|big|
add_label_with_icon|big|`cDrop Commands``|left|7188|
add_spacer|small|
add_label_with_icon|small|``[`c/wd``] Drop World Lock|left|482|
add_label_with_icon|small|``[`c/dd``] Drop Diamond Lock|left|482|
add_label_with_icon|small|``[`c/bd``] Drop Blue Gem Lock|left|482|
add_label_with_icon|small|``[`c/daw``] Drop All Locks|left|482|
add_spacer|small|
add_label_with_icon|big|`cWin/Pos Commands``|left|7188|
add_spacer|small|
add_label_with_icon|small|``[`c/w1``] Drop Lock To Winner 1[`4Soon``]|left|482|
add_label_with_icon|small|``[`c/w2``] Drop Lock To Winner 2[`4Soon``]|left|482|
add_label_with_icon|small|``[`c/p1``] Player 1's Positon [`cLeft Room``]|left|482|
add_label_with_icon|small|``[`c/p2``] Player 2's Positon [`cRight Room``]|left|482|
add_label_with_icon|small|``[`c/take``] Take Bets [`c/p1`` , `c/p2``]|left|482|
add_spacer|small|
add_spacer|small|
add_custom_button|kapa3|textLabel:`c Next
;middle_colour:200;border_colour:1000000000000;display:block;|
]]

AdvMenu = [[
set_border_color|0,191,255,100
set_bg_color|0,0,0,255
add_label_with_icon|big|`cAdvanced Menu|left|14788|
add_spacer|small|
text_scaling_string|asdasdasdsaas|
add_button_with_icon|Take|`cTake Bet|staticBlueFrame|6140||
add_button_with_icon|w1|`4Soon|staticBlueFrame|7188||
add_button_with_icon|w2|`4Soon|staticBlueFrame|7188||
add_button_with_icon|wrench|`4Soon|staticBlueFrame|32||
add_button_with_icon||END_LIST|noflags|0||
add_button_with_icon|slog|`4Soon|staticBlueFrame|758||
add_button_with_icon|p1|`cPos1|staticBlueFrame|1422||
add_button_with_icon|p2|`cPos2|staticBlueFrame|1422||
add_button_with_icon|menu|`cMenu|staticBlueFrame|3524||
add_button_with_icon||END_LIST|noflags|0||
add_spacer|small|
add_custom_button|wh|textLabel:`c
Next ;middle_colour:200;border_colour:1000000000000;display:b
lock;|
]]

pdelay = 100

function checkitm(id)
for _, inv in pairs(getInventory()) do
if inv.id == id then
return inv.amount
end
end
return 0
end

function console(str)
logToConsole("``[`cAizen``] "..str)
end

function DropItem(id, count)


sendPacket(2,"action|drop\n|itemID|"..id.."\n")
sendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|"..id.."|\
ncount|"..count.."\n")
end

function collect()
tiles = {
{p1x, p1y},
{p2x, p2y}
}
for _, obj in pairs(getWorldObject()) do
for _, tiles in pairs(tiles) do
if (obj.pos.x)//32 == tiles[1] and (obj.pos.y)//32 == tiles[2] then
sendPacketRaw(false, {type=11,value=obj.oid,x=obj.pos.x,y=obj.pos.y})
end
end
end
end

AddHook("onTextPacket", "packet",
function(type,packet)

if packet:find("action|friends") then
sendVariant({[0] = "OnDialogRequest", [1] = AdvMenu})
end

if packet:find("buttonClicked|p1") or packet:find("/p1") then


p1x = getLocal().pos.x // 32
p1y = getLocal().pos.y // 32
console("`cPos1 ["..p1x.."], ["..p1y.."]")
return true
end

if packet:find("buttonClicked|p2") or packet:find("/p2") then


p2x = getLocal().pos.x // 32
p2y = getLocal().pos.y // 32
console("`cPos1 ["..p2x.."], ["..p2y.."]")
return true
end

if packet:find("buttonClicked|Take") or packet:find("/take") then


collect()
console("`cCollecting Bets")
end

if packet:find("/menu") or packet:find("buttonClicked|menu") then


sendVariant({[0] = "OnDialogRequest", [1] = menu})
console("`cMenu")
end

if packet:find("/daw") then
DropItem(7188, checkitm(7188))
DropItem(1796, checkitm(1796))
DropItem(242, checkitm(242))
return true
end

if packet:find("/dd (%d+)") or packet:find("/Dd (%d+)") then


txt = packet:match("action|input\n|text|/dd (%d+)")
DropItem(1796, txt)
console("Succes Drop `0"..txt.." `2Diamond Lock")
return true
end

if packet:find("/wd (%d+)") or packet:find("/Wd (%d+)") then


txt = packet:match("action|input\n|text|/wd (%d+)")
DropItem(242, txt)
console("Succes Drop `0"..txt.." `2World Lock")
return true
end
if packet:find("/bg (%d+)") or packet:find("/Bg (%d+)") then
txt = packet:match("action|input\n|text|/bg (%d+)")
DropItem(7188, txt)
console("`2Succes Drop `0"..txt.." `2Blue Gem Lock")
return true
end
end)

AddHook("OnVarlist", "Hook",
function(var)
if var[0] == "OnDialogRequest" then
if var[1]:find("Drop World Lock") or var[1]:find("Drop Diamond Lock") or
var[1]:find("Drop Blue Gem Lock")
then return true
end
end
end)

You might also like