Zysen
=)
Hello.I scripted an Outfiter.
How it works?
Pull the lever and change outfit!
data/actions/scripts/outfiter.lua
actions.xml
Regards,
Zysen
How it works?
Pull the lever and change outfit!
data/actions/scripts/outfiter.lua
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 5888 then
doPlayerSendTextMessage(cid,21,"Your outfit has been changed!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
doCreatureChangeOutfit(cid, {lookType = math.random(2, 333))
end
return true
end
actions.xml
XML:
<action itemid="5888" script="outfiter.lua"/>
Regards,
Zysen
Last edited: