Zysen
=)
Hello.I will release some of my scripts here.I learned LUA before 1 month maybe,so I'm training;Lets start!
Regards,
Zysen
Outfiter
(pull the lever and change your outfit)
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
XML:
<action itemid="5888" script="outfiter.lua"/>
Broadcasting Message
(broadcasting message-text you have written)
Lua:
function onThink(interval)
doBroadcastMessage("Text...")
return true
end
XML:
<globalevent name="message" interval="6000" event="script" value="message.lua"/>
Regards,
Zysen
Last edited: