Pocket Emporium v1
777
lvl: 20
ID:
248
Author:
ShyGnome
Rarity:
unique
Status:
Approved

Description:

Purchase an Item
Spend a charge to buy a random item for 500 gold. The item will be of level 14-25 and uncommon or higher rarity.

Gains a charge every 5th wave, up to a maximum of 5 charges.
This ability is not affected by item quality.

AC_TYPE_NOAC_IMMEDIATE
1s cooldown
Download

Toggle Triggers

Autocast

AUTOCAST_cooldown: 1 AUTOCAST_autoRange: 0 AUTOCAST_manacost: 0 goldcost: 777 AUTOCAST_range: 0 AUTOCAST_targetType: 0 AUTOCAST_numBuffsBeforeIdle: 0 caster_art: target_art: AUTOCAST_autocastType: AC_TYPE_NOAC_IMMEDIATE AUTOCAST_buffType: 0 AUTOCAST_isExtended: false AUTOCAST_targetSelf: true
    local integer i = itm.getCharges()
    local Tower tower = itm.getCarrier()
    local Playor p = itm.getOwner()
    local Item new
    local real rnd = GetRandomInt(0,24) //25 cases total
    local integer rarity = 1            //0-1 unique, 2-5 rare, 6-24 uncommon
    if rnd < 2 then
        set rarity = 3
    elseif rnd < 6 then
        set rarity = 2
    endif
    if i > 0 and GetPlayerState(p.getThePlayer(), PLAYER_STATE_RESOURCE_GOLD) >= 500 then
        set itm.userInt2 = itm.userInt2-1
        call p.giveGold(-500,tower.getUnit(),false,true)
        set new = Item.create(p,RandomItemSet.permanent.getRandomItemAtRarityBounded(rarity,14,25),tower.getX(),tower.getY())
        call new.flyToStash(0.0)
    endif
    call checkLevel(itm)

Header

goldcost: 0
    globals
    endglobals
    
    function checkLevel takes Item itm returns nothing
        local integer curLevel = itm.getOwner().getTeam().getLevel()
        if curLevel > itm.userInt3 then 
            set itm.userInt = itm.userInt + (curLevel-itm.userInt3) 
            set itm.userInt3 = curLevel 
        endif
        loop
            exitwhen itm.userInt < 5 or itm.userInt2 >= 5
            set itm.userInt = itm.userInt - 5
            set itm.userInt2 = itm.userInt2 + 1
        endloop
        call itm.setCharges(itm.userInt2)
    endfunction
    //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
    endfunction

On Item Creation

goldcost: 0
function onCreate takes Item itm returns nothing
    call itm.setCharges(1)
    set itm.userInt = 0
    set itm.userInt2 = 1
    set itm.userInt3 = itm.getOwner().getTeam().getLevel()
endfunction

On Item Drop

goldcost: 0
function onDrop takes Item itm returns nothing
    call checkLevel(itm)
endfunction

On Item Pickup

goldcost: 0
function onPickup  takes Item itm returns nothing
    call checkLevel(itm)
endfunction

Periodic

goldcost: 0 PERIODIC_period: 10
function periodic takes Item itm returns nothing
    call checkLevel(itm)
endfunction
Archer's Hood v1
779
lvl: 43
ID:
5
Author:
Boekie
Rarity:
uncommon
Status:
Approved

Description:

This archer equipment boosts agility and speed but decreases pure damage.
Specials:
+15% attackspeed
-10% damage
+10% trigger chances
Download
Secret Tome of Magic v1
790
lvl: 31
ID:
238
Author:
hokkei
Rarity:
rare
Status:
Approved

Description:

This magical tome greatly magnifies the strength of one's spells, at the expense of the loss of accuracy.
Specials:
-15% spell crit chance (-1%/lvl)
+x2 spell crit damage (+x0.2/lvl)
Download
Cursed Claw v1
800
lvl: 31
ID:
10
Author:
Boekie
Rarity:
rare
Status:
Approved

Description:

This cursed artifact slows attacked creeps.
Cripple
This artifact slows the attacked creep by 10% for 5 seconds.

Level Bonus:
+0.4% slow
Download

Toggle Triggers

Header

goldcost: 0
    globals
    BuffType boekie_claw_slow 
    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
    local Modifier m = Modifier.create() 
    
    call m.addModification(MOD_MOVESPEED,0,-0.001) 
    set boekie_claw_slow = BuffType.create(0,0,false) // apply custom timed  
    call boekie_claw_slow.setBuffIcon('@@0@@') 
    call boekie_claw_slow.setBuffModifier(m) 
    call boekie_claw_slow.setStackingGroup("boekieClawSlow") 
    endfunction

On Attack

goldcost: 800 ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
local Tower tower = itm.getCarrier()

call boekie_claw_slow.applyCustomTimed(tower,Event.getTarget(),100+tower.getLevel()*4,5) 
endfunction
Bonk's Face v1
800
lvl: 21
ID:
35
Author:
drol
Rarity:
unique
Status:
Approved

Description:

So heavy it is nearly impossible to move this giant rock.
Specials:
+25% dmg to masses
Crush
Whenever the carrier damages a stunned creep it deals 20% of its current attack damage as spelldamage in 250 AoE around its target.
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 goldcost: 733 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local Unit creep = Event.getTarget()
    local unit creepUnit = creep.getUnit()
    local Unit twr = itm.getCarrier()
    local Effect targetEffect    

    if creep.getBuffOfGroup( "stun" ) > 0 then 
        call twr.doSpellDamageAoEUnit(creep,250,(twr.getCurrentAttackDamageWithBonus())*0.2,twr.calcSpellCritNoBonus(),0)
        set targetEffect = Effect.createScaled("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl", GetUnitX(creepUnit), GetUnitY(creepUnit), 0.0, 0, 2.0) 
        call targetEffect.setLifetime(3.0) 
    endif
    set creepUnit = null
endfunction
Flag of the Alliance v1
800
lvl: 21
ID:
60
Author:
Boekie
Rarity:
unique
Status:
Approved

Description:

This flag inspires the fighters of the alliance, they will attack faster.
Motivation - Aura
Increases attackspeed of towers in 1000 range by 5%. 

Level Bonus:
+0.1% attackspeed
Download

Toggle Triggers

Header

goldcost: 0
    globals
    
    BuffType boekie_alliance_aura
    
    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
    
    local Modifier m = Modifier.create()  
    set boekie_alliance_aura = BuffType.createAuraEffectType(true)  
    call m.addModification(MOD_ATTACKSPEED,0.05,0.001)  
    call boekie_alliance_aura.setBuffModifier(m)  
    call boekie_alliance_aura.setStackingGroup("boekie_alliance_aura")  
    call boekie_alliance_aura.setBuffIcon('@@0@@') 
    
    
    
    endfunction

Tower Aura

AURA_levelAdd: 1 AURA_targetType: TARGET_TYPE_TOWERS AURA_auraRange: 1000 AURA_powerAdd: 1 AURA_targetSelf: true goldcost: 800 AURA_auraEffect: boekie_alliance_aura AURA_power: 0 AURA_level: 0
Mana Stone v1
800
lvl: 31
ID:
131
Author:
F12ight
Rarity:
rare
Status:
Approved

Description:

The stone radiates with energy.
Mana Charge
On every 3rd attack the carrier regenerates 1% of its maximum mana.
Absorb
Whenever the carrier kills a creep it regenerates 3% of its maximum mana.
Mana Aura - Aura
Increases mana regeneration of all towers in 200 range of the carrier by 7.5%.
Download

Toggle Triggers

Header

goldcost: 0
    globals
        BuffType fright_mana_aura
    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
        local Modifier m = Modifier.create()  
        set fright_mana_aura = BuffType.createAuraEffectType(true)  
        call m.addModification(MOD_MANA_REGEN_PERC,0.075,0)  
        call fright_mana_aura.setBuffModifier(m)
        call fright_mana_aura.setBuffIcon('@@0@@')
    endfunction

On Attack

goldcost: 0 ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
    set itm.userInt = itm.userInt +1
    if itm.userInt == 3 then
        call itm.getCarrier().addManaPerc(0.01)
        set itm.userInt = 0
    endif
endfunction

On Item Pickup

goldcost: 0
function onPickup  takes Item itm returns nothing
    set itm.userInt = 0
endfunction

On Kill

goldcost: 200
function onKill takes Item itm returns nothing
    local Tower tower = itm.getCarrier()
    call tower.addManaPerc(0.03)
    call Effect.createScaled("Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl", tower.getX(), tower.getY(), 10.0, 0, 1.2).destroy()
endfunction

Tower Aura

AURA_levelAdd: 1 AURA_targetType: TARGET_TYPE_TOWERS AURA_auraRange: 200 AURA_powerAdd: 1 AURA_targetSelf: true goldcost: 600 AURA_auraEffect: fright_mana_aura AURA_power: 0 AURA_level: 0