jeffaklumpen
Member
I'm trying to create an item that when used repairs soft boots. I have this code:
actions/scripts/repairshoes.lua
actions.xml
But it won't work :/
actions/scripts/repairshoes.lua
Lua:
local boots = {
[12671] = {id = 6132}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if boots[item.itemid] then
doTransformItem(item.uid, boots[item.itemid].id)
doSendMagicEffect(getCreaturePosition(cid),28)
doPlayerSendTextMessage(cid,27,"You have successfully repaired your boots.")
else
doPlayerSendCancel(cid, RET_NOTENOUGHMONEY)
end
end
return true
end
actions.xml
Code:
<action itemid="12671" event="script" value="repairshoes.lua"/>
But it won't work :/