• 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!

Actions: Slotmachine

Status
Not open for further replies.

YugiNao

Banned User
Joined
Nov 22, 2008
Messages
211
Reaction score
3
When pull lever, takes your money and exchange it with a higher or lower money percentage. :p Anyways the description is poor explained make your idea better than mine if. Could make it i rly appreciate it :peace: REPP++
 
mmm is this?
LUA:
--[[
   Script by Cronox
]]--

function getPlayerMoney(cid)
    gold = getPlayerItemCount(cid,2148)
    plat = getPlayerItemCount(cid,2152)*100
    crys = getPlayerItemCount(cid,2160)*10000
    money = gold + plat + crys
    return money
    end

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if getPlayerMoney(cid) >= 250 then 
        doPlayerRemoveMoney(cid,250)
        doPlayerAddItem(cid,2160,100)
	doSendMagicEffect(getPlayerPosition(cid), 13)
        else
           doPlayerSendTextMessage(cid,19,"description say.")
doSendMagicEffect(getPlayerPosition(cid), 2)
        end
	return TRUE
end
 
how the script works (explain please)?
and how do i add it, to actions?

Post the actions.xml to please.
 
Status
Not open for further replies.
Back
Top