Backpack v1 150
lvl: 0
|
ID: 9
Author: Boekie
Rarity: unique
Status: Approved
|
Search For Item
Every 150 seconds the next kill will drop an item for sure.
|
Download
Toggle Triggers Autocast
caster_art:
AUTOCAST_cooldown: 150
AUTOCAST_numBuffsBeforeIdle: 0
goldcost: 150
AUTOCAST_isExtended: false
AUTOCAST_autocastType: AC_TYPE_ALWAYS_IMMEDIATE
AUTOCAST_manacost: 0
AUTOCAST_range: 0
AUTOCAST_buffType: 0
AUTOCAST_targetSelf: true
AUTOCAST_targetType: 0
target_art:
AUTOCAST_autoRange: 0
local Unit tower = itm.getCarrier()
set boekie_backpackBuff.applyOnlyTimed(tower, tower, 1000).userInt = itm
Header
goldcost: 0
globals
BuffType boekie_backpackBuff
MultiboardValues boekie_backpackMB
endglobals
function backpackKill takes Buff B returns nothing
local Tower tower = B.getBuffedUnit()
local Creep creep = Event.getTarget()
local Item itm = B.userInt
call creep.dropItem(tower,false)
call tower.getOwner().displaySmallFloatingText("Backpacked!",tower,255, 165, 0,30)
set itm.userInt = itm.userInt + 1
call B.removeBuff()
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
set boekie_backpackBuff = BuffType.create(0, 0, true)
call boekie_backpackBuff.setBuffIcon('@@0@@')
call boekie_backpackBuff.addEventOnKill(backpackKill)
set boekie_backpackMB = MultiboardValues.create(1)
call boekie_backpackMB.setKey(0,"Items Backpacked")
endfunction
On Item Creation
goldcost: 0
function onCreate takes Item itm returns nothing
set itm.userInt = 0 //Total items found
endfunction
On Tower Details
goldcost: 0
function onTowerDetails takes Item itm returns MultiboardValues
call boekie_backpackMB.setValue(0, I2S(itm.userInt))
return boekie_backpackMB
endfunction
|
Description:
Latest Upload Comment: