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

Restore Soft Boots

StormRusher

New Member
Joined
Dec 23, 2009
Messages
138
Reaction score
0
Well i need a talkaction to restore soft boots, the player will have to pay 30k for it.

Thx,
 
PHP:
local config = {
softCost = 30000
}

function onSay(cid, words, param, channel)
    
    if param == "!soft" then
        if getPlayerItemCount(cid, 10021) >= 1 then
            if doPlayerRemoveMoney(cid, config.softCost) then
                doPlayerRemoveItem(cid, 10021, 1)
                doPlayerAddItem(cid, 6132, 1, FALSE)
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You recharged your soft boots for "..config.softCost.." coins.")
            else
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need "..config.fireCost.." coins to recharge your soft boots.")
            end
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a worn soft boots to recharge it.")
        end
    else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param!.")
    end
	
return TRUE
    
end
 
Back
Top