VagosClubTM
Active Member
hello friends, I hope you are well, I am looking for this script instead of charging in crystal coins, it charges you in smalldiamond (2145), to make it a vip store
thanks to those who take the time thanks
Lua:
local c = {
['item'] = 2565,
['cost'] = 200 * 10000,
[1945] = 1946, -- lever
[1946] = 1945 -- lever
}
function onUse(player, item, fromPosition, itemEx, toPosition)
local cid = player:getId()
if doPlayerRemoveMoney(cid, c.cost) then
doPlayerAddItem(cid, c.item, 1)
doPlayerSendTextMessage(cid, 25,"You bought an item for ".. c.cost .." gold")
else
doPlayerSendCancel(cid, "You do not have enough money!")
end
item:transform(c[item.itemid])
return true
end
thanks to those who take the time thanks