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