Orb of Souls v2
180
lvl: 7

ID:

210

Author:

Sunken

Rarity:

uncommon

Status:

Approved

Description:

Inside the orb you can see the swirling, tormented souls of countless victims.

Latest Upload Comment:

tooltip improvement
Ethereal Knowledge
Grants 50 flat experience to the holder. The experience is bound to the item and lost on drop. If the tower has less than 50 experience when the item is dropped, the item will drain experience from the next tower it is placed in, up to 50 experience.
Download

Toggle Triggers

On Item Creation

goldcost: -0
function onCreate takes Item itm returns nothing
            
set itm.userReal = 50
        
endfunction

On Item Drop

goldcost: 0
function onDrop takes Item itm returns nothing
            
local Unit tower = itm.getCarrier()
    set itm.userReal = tower.removeExpFlat(50)
        
endfunction

On Item Pickup

goldcost: 180
function onPickup  takes Item itm returns nothing
            
local Unit tower = itm.getCarrier()
    local real r = itm.userReal
    if r > 0 then
        call tower.addExpFlat(r)
    endif
        
endfunction