Maniucza
~Lua~ Noob
Hi all I decided to do quests that by click on the box to add our addon in this case it will be Second Demon Hunter Addon.
Getting started :
Data/actions/scripts/addon.lua
Data/actions/actions.xml
Image : Imageshack - beztytuuedited
Rep++ I think someone helped.
Getting started :
Data/actions/scripts/addon.lua
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1740 then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 28)
doPlayerAddOutfit(cid,288,2)
doPlayerAddOutfit(cid,289,2)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you got addon!")
end
return TRUE
end
Data/actions/actions.xml
PHP:
<action uniqueid="2610" event="script" value="addon.lua"/>
Image : Imageshack - beztytuuedited
Rep++ I think someone helped.
Last edited: