• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Ingame lever shop with server coin

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
well i made this in my server, i want to buy this items with this special coin ID9020, so the players can pull the lever and if you have x coins it gave you the items

any script there similar?
thanks!!!

2fft.png



vip9.png
 
Code:
local itemid = 9020 ---Coin Id
local itemcount = XX ---Coin count
local itemtobuy = XXXX ---Item you get
local itemtobuycount = XX ---How many items you get

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerItemCount(cid, itemid) => itemcount then
        doPlayerAddItem(cid, itemtobuy, itemtobuycount)
        doRemoveItem(cid, itemid, itemcount)
        else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You dont have enough coins.")
    return true
end

This may work, not shure thow :P
 
Back
Top