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

systemlog = "`7[`9FreeProxy`7]`o "

systemcmd = "`7[`9FreeProxy`7]`9 "


----------------------------------------
-- End of Define Section
----------------------------------------

LogToConsole("`9Proxy Started")

----------------------------------------
-- Start The Proxy
----------------------------------------
function on_sendpacket(type, packet) -- send packet hook
-- Func Daw
function dl()
for _, v in pairs(GetInventory()) do
if v.id == 1796 then
SendPacket(2, "action|drop\n|itemID|1796");
log("`2Succes Dropped `0"..v.amount.." `2Diamond Lock")
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|1796|\
ncount|"..v.amount);
end
end
end

function wl()
for _, v in pairs(GetInventory()) do
if v.id == 242 then
SendPacket(2, "action|drop\n|itemID|242");
log("`2Succes Dropped `0"..v.amount.." `2World Lock")
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|242|\
ncount|"..v.amount);
end
end
end

function bgl()
for _, v in pairs(GetInventory()) do
if v.id == 7188 then
SendPacket(2, "action|drop\n|itemID|7188");
log("`2Succes Dropped `0"..v.amount.." `2Blue Gem Lock")
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|7188|\
ncount|"..v.amount);
end
end
end

-- Dh ampe sini Doang

inputt = "action|input\n|text|"
function log(str)
LogToConsole(systemcmd .. str)
end

function command(str)
if packet:find(inputt .. str) then
LogToConsole("`6" .. str)
return true
end
end
----------------------------------------
-- Proxy Commands Nya
----------------------------------------
if command("/proxy") then
log("`9COMMAND : /wd, /dd, /bd, /daw, /lock")
return true
end

if command("/dd") then
txt = packet:gsub("action|input\n|text|/dd", "")
if txt == "" then
log("`2Write Amount")
else
SendPacket(2, "action|drop\n|itemID|1796")
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|1796|\
ncount|"..txt)
log("`2Succes Drop`0"..txt.." `2Diamond Lock")
return true
end
end

if command("/wd") then
txt = packet:gsub("action|input\n|text|/wd", "")
if txt == "" then
log("`2Write Amount")
else
SendPacket(2, "action|drop\n|itemID|242")
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|242|\
ncount|"..txt)
log("`2Succes Drop`0"..txt.." `2World Lock")
return true
end
end

if command("/bd") then
txt = packet:gsub("action|input\n|text|/bd", "")
if txt == "" then
log("`2Write Amount")
else
SendPacket(2, "action|drop\n|itemID|7188")
SendPacket(2, "action|dialog_return\ndialog_name|drop_item\nitemID|7188|\
ncount|"..txt)
log("`2Succes Drop`0"..txt.." `2Blue Gem Lock")
return true
end
end

if command("/daw") then
wl()
dl()
bgl()
return true
end
if command("/lock") then
function checkamount(id)
for _, inv in pairs(GetInventory()) do
if inv.id == id then
return inv.amount
end
end
return 0
end
log("Show ur Lock")
LogToConsole("`0Your World Locks`0 : " .. checkamount(FindItemID("World Lock")) ..
" `9World Lock`0,`1 " .. checkamount(FindItemID("Diamond Lock")) .. " `1Diamond
Lock`0, `c" .. checkamount(FindItemID("Blue Gem Lock")) .. " `cBGL")
end
----------------------------------------
-- End Of Proxy Commands Jangan Banyak Banyak
----------------------------------------
return false
end

----------------------------------------
-- Variant List
----------------------------------------
function variantlist(var)

if var.v1 == "OnDialogRequest" then


return true
end

if var.v2 == "drop_item" then


return true
end

return false
end
----------------------------------------
-- End of Variant List
----------------------------------------

----------------------------------------
-- Add Hook for variant list, packet raw, and packet
----------------------------------------
AddHook (on_sendpacket, "OnSendPacket")
AddHook (variantlist, "OnVariant")
SendPacket(2, [=[
action|input
|text|`4FREE SCRIPT BY @bongggrowtopia]=])

You might also like