|   Currency Converter v1 0  lvl: 0 | ID:     231 Author: Finger of Destiny Rarity: rare Status: Approved |  Exchange Every 15 seconds the wielder converts a flat 2 experience into 7 gold. Level Bonus: -0.3 seconds cooldown. | Download Toggle Triggers Periodic 
                            
                                goldcost: 0
                            
                                PERIODIC_period: 1
                            
                             function periodic takes Item itm returns nothing
   local Tower tower = itm.getCarrier()
   local integer lvl = tower.getLevel()
   call Event.getCurrentPeriodicEvent().enableAdvanced(15 - lvl*0.3, false)
 if tower.getExp() >= 2.0 then
  call SFXOnUnit("UI\\Feedback\\GoldCredit\\GoldCredit.mdl", tower.getUnit(), "head")
  call tower.removeExpFlat(2)
  call tower.getOwner().giveGold(7,tower.getUnit(), true, true)
 else
  call tower.getOwner().displayFloatingText("Not enough credits!",tower,255, 0, 0)
 endif
endfunction | 
|   Claws of Wisdom v1 14  lvl: 0 | ID:     77 Author: drol Rarity: uncommon Status: Approved | Description: Enables the wielder to carry out mystic rituals, but is impractical in combat.  Specials: -16% attackspeed +80% exp gain | Download | 
|   Mining Tools v1 20  lvl: 0 | ID:     158 Author: drol Rarity: uncommon Status: Approved | Description: The basic equipment every miner needs to do his job.  Mining Every 15 seconds there is a 40% chance to find 3 gold. Level Bonus: +2% chance +1 gold at lvl 25 | Download Toggle Triggers Header 
                            
                                goldcost: 0
                            
                                 globals
    MultiboardValues drol_digItemMulti
    endglobals
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
    
    set drol_digItemMulti = MultiboardValues.create(1)
    call drol_digItemMulti.setKey(0,"Gold found") 
    
    endfunctionOn Item Creation 
                            
                                goldcost: 0
                            
                             function onCreate takes Item itm returns nothing
    set itm.userInt = 0
endfunctionOn Tower Details 
                            
                                goldcost: 0
                            
                             function onTowerDetails takes Item itm returns MultiboardValues
    // Show total gold digged up
    call   drol_digItemMulti.setValue(0,I2S(itm.userInt))
    return drol_digItemMulti
endfunctionPeriodic 
                            
                                PERIODIC_period: 15
                            
                                goldcost: 20
                            
                             function periodic takes Item itm returns nothing
    
    local Tower tower = itm.getCarrier()
    local Effect targetEffect 
    set targetEffect = Effect.createScaled("Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl", GetUnitX(tower.getUnit()), GetUnitY(tower.getUnit()), 0, 0, 0.8)
    call targetEffect.setLifetime(0.1) 
        
    if tower.calcChance(0.40 + tower.getLevel() * 0.02) then
        
        if(tower.getLevel() < 25) then
            call tower.getOwner().giveGold(3, tower.getUnit(), false, true)
            set itm.userInt = itm.userInt + 3
        else
            call tower.getOwner().giveGold(4, tower.getUnit(), false, true)
            set itm.userInt = itm.userInt + 4
        endif
    
    endif
endfunction | 
|   Inscribed Bark v1 36  lvl: 0 | ID:     78 Author: drol Rarity: common Status: Approved | Description: Some words are vaguely written on this piece of bark.  Specials: 
+15% dmg to magical | Download | 
|   Rusted Rifle v1 36  lvl: 0 | ID:     79 Author: drol Rarity: common Status: Approved | Description: Not a very reliable weapon.  Specials: 
+15% dmg to humanoids | Download | 
|   Rusty Mining Pick v2 36  lvl: 0 | ID:     99 Author: Boekie Rarity: common Status: Approved | Description: This mining pick helps with digging for items but it's not shiny anymore.  Specials: +12% item chance -12% item quality | Download | 
|   Holy Axe v1 36  lvl: 0 | ID:     155 Author: Boekie Rarity: common Status: Approved | Description: Increases the tower ' s damage against undead.  Specials: 
+15% dmg to undead | Download | 
Description: