Stasis Trap v1
200
lvl: 2
ID:
13
Author:
Boekie
Rarity:
unique
Status:
Approved

Description:

This trap is used by the orcs to stun their enemies. It's not very reliable though.
Activate Trap
Every 8 seconds this trap stuns 3 creeps in 1000 range for 0.5 seconds.

Level Bonus:
+0.5 seconds stun at level 25
Download

Toggle Triggers

Header

goldcost: 0
    globals
    Unit array resultArray //Instead of numResults, use a resultArray so you only have to iterate once.
    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
    endfunction

Periodic

PERIODIC_period: 8 goldcost: 200
function periodic takes Item itm returns nothing
    local Tower tower = itm.getCarrier()
    local integer lvl = tower.getLevel()
    local Iterate inRange = Iterate.overUnitsInRangeOfCaster(tower,TARGET_TYPE_CREEPS,1000) //Can set this at the start.
    local Unit next //Used as next during the iterate and the unit to affect during the other loop.
    local integer indexCounter = 0
    local integer loopCounter = 3

      
    loop
        set next=inRange.next()
        exitwhen next==0
        set resultArray[indexCounter] = next
        set indexCounter = indexCounter+1
    endloop
   
    if(indexCounter > 0) then //Commented lines here are for setting the period to a low time when no creeps are around,
                              //remove them if you don't want this to happen. Also if these lines are used, the On Level
                              //Up code isn't needed.
        loop
            set loopCounter = loopCounter - 1
            set next = resultArray[GetRandomInt(0,indexCounter-1)]
            
            if tower.getLevel() == 25 then
                call cb_stun.applyOnlyTimed(tower, next, 1.0) 
            else
                call cb_stun.applyOnlyTimed(tower, next, 0.5) 
            endif
            
            call SFXAtUnit("Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl",next.getUnit())
            exitwhen loopCounter == 0
        endloop
    endif
        
endfunction
Arcane Script v1
200
lvl: 4
ID:
251
Author:
Finger of Destiny
Rarity:
rare
Status:
Approved

Description:

Oooh! What are these ancient scribings?
Script Reading
Whenever the carrier casts its own active ability it gains [0.2 x cooldown] experience and grants [0.5 x cooldown] gold.
Download

Toggle Triggers

On Spell Cast

goldcost: 200
function onSpellCast takes Item itm returns nothing
    local real cd = Event.getAutocastType().getCooldown()

    if not Event.getAutocastType().isItemAutocast() then
        call itm.getCarrier().addExp(0.2*cd)
        call itm.getCarrier().getOwner().giveGold(0.5*cd, itm.getCarrier().getUnit(), false, true)
    endif
endfunction
Spiked Club v1
207
lvl: 8
ID:
96
Author:
drol
Rarity:
uncommon
Status:
Unapproved

Description:

Sharp and spiked.
Specials:
+2.5% damage
+2.5% crit chance
Download
Pillage Tools v1
210
lvl: 8
ID:
81
Author:
drol
Rarity:
uncommon
Status:
Approved

Description:

Good for looting, but impractical for combat.
Specials:
+2% bounty collected/lvl
Download
Hunting Map v1
210
lvl: 8
ID:
90
Author:
drol
Rarity:
uncommon
Status:
Approved

Description:

Has some rough sketches of the distant land on it.
Specials:
+12% exp gain
+6% item chance
Download
Scarab Amulet v1
210
lvl: 12
ID:
168
Author:
drol
Rarity:
common
Status:
Approved

Description:

Energizes the spirit of the carrier.
Specials:
+12% damage
Download
Dowsing Rod v1
223
lvl: 9
ID:
199
Author:
YouJizzTD
Rarity:
uncommon
Status:
Approved

Description:

A device used to search for items by tapping into the land's magnetic fields.
Specials:
-10% damage
-10% spell damage
+25% item chance
Download