ftsystem
Member
- Joined
- Feb 17, 2019
- Messages
- 19
- Reaction score
- 5
Can someone help me to put a magic effect when i click on the item?
Thanks
Thanks
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 39186) then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You've been promoted! Congratulations!")
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Congratulations! You are now promoted.")
player:sendTextMessage(MESSAGE_EVENT_ORANGE, "Congratulations! You are now promoted.")
player:getPosition():sendMagicEffect(CONST_ME_PURPLEENERGY)
return TRUE
end