ignas1415
Senior Member
I welcome you today to present the coupon which replaces worn soft boots with new ones. Just click on the coupon and now we have new soft boots. Voucher single-use
data/actions/scripts add soft.lua and paste it
and in actions/actions.xml add:
data/actions/scripts add soft.lua and paste it
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerItemCount(cid, 6530) >= 1 then
if doPlayerTakeItem(cid,6527,1) == 0 then
local item = getPlayerItemById(cid, TRUE, 6530)
doTransformItem(item.uid, 2640)
doPlayerSendTextMessage(cid, 20, 'Congratulations, you have already renewed shoes.')
else
doPlayerSendTextMessage(cid, 20, 'You do not have worn soft boot so not allowed to renew their')
end
end
end
<action itemid="6527" script="soft.lua"/>
Last edited by a moderator: