1local ITEM_ID = 7777 -- Clickable item ID to add aura
2local AURA_ID = 3 -- ID of the aura you want to add
3
4local addAuraSystem = Action()
5
6function addAuraSystem.onUse(player, item, fromPosition, target, toPosition, isHotkey)
7 if item.itemid ~= ITEM_ID then
8 return true
9 end
10
11 local defaultOutfit = player:getOutfit()
12 if defaultOutfit.lookAura ~= 0 then
13 player:sendTextMessage(MESSAGE_INFO_DESCR, "You already have this aura!")
14 return true
15 end
16
17 player:addAura(AURA_ID)
18 player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
19 player:sendTextMessage(MESSAGE_INFO_DESCR, 'You have received a new aura!')
20 item:remove(1)
21 return true
22end
23
24addAuraSystem:id(ITEM_ID)
25addAuraSystem:register()
26