Buy Valentine Goodies

You might also like

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

delay = 100 -- change delay if crash

function Tolay(x)
local var = {}
var.v0 = "OnTextOverlay"
var.v1 = x
var.netid = -1
SendVariant(var)
end

function Notif(x)
local var = {}
var.v0 = "OnAddNotification"
var.v2 = x
var.v3 = "audio/gauntlet_spawn.wav"
var.netid = -1
SendVariant(var)
end

Notif("`#Free Script Made by `8Buraa community")


Sleep(3000)
Tolay("`#Tunggu ya!!")
Sleep(2000)

shop = { 3402 }
AddHook("onvariant", "hook", function(var)
if var[0] == "OnStoreRequest" then
return true
end
return false
end)

function findItem(id)
for _, itm in pairs(GetInventory()) do
if itm.id == id then
return itm.amount
end
end
return 0
end

function drop(id)
SendPacket(2, "action|dialog_return\ndialog_name|drop\nitem_drop|" .. id .. "|\
nitem_count|" .. findItem(id))
end

while true do
SendPacket(2, "action|buy\nitem|buy_valengoodies")
Sleep(500)
for s, K in pairs(shop) do
if findItem(K) >= 100 then
drop(K)
Sleep(delay)
end
end
end

You might also like