Nubaza
LUA Scripter
I've made a simple script for repair instantly your boots with a simple click!
First go to data/actions/scripts/...
create a repair.lua and remplace with this:
Add this tag to actions.xml
Done.
A simple script, with a simple function.
Credits:
otland.net (Nubaza)
First go to data/actions/scripts/...
create a repair.lua and remplace with this:
Lua:
-- Script by Nubaza (chavoz) otland.net
local boots = {
[10021] = {id = 6132, money = 0},
[10022] = {id = 9933, money = 0}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if boots[item.itemid] then
if doPlayerRemoveMoney(cid, boots[item.itemid].money) 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
Add this tag to actions.xml
Code:
<action itemid="10021;10022" event="script" value="repair.lua"/>
Done.
A simple script, with a simple function.
Credits:
otland.net (Nubaza)
Last edited: