Enchanted Knives v1 2500
lvl: 76
|
ID: 18
Author: Boekie
Rarity: unique
Status: Approved
|
Multishot
Attacks up to 3 targets at the same time.
Specials:
Specials: -50% attackspeed |
Download
Toggle Triggers Header
goldcost: 0
globals
integer array multishots
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 multishots[0] = '@@16@@' //750
set multishots[1] = '@@9@@'
set multishots[2] = '@@7@@'
set multishots[3] = '@@8@@'
set multishots[4] = '@@5@@'
set multishots[5] = '@@6@@'
set multishots[6] = '@@3@@'
set multishots[7] = '@@4@@'
set multishots[8] = '@@1@@'
set multishots[9] = '@@2@@'
set multishots[10] = '@@0@@'
set multishots[11] = '@@17@@'
set multishots[12] = '@@18@@'
set multishots[13] = '@@15@@'
set multishots[14] = '@@13@@'
set multishots[15] = '@@14@@'
set multishots[16] = '@@11@@'
set multishots[17] = '@@12@@'
set multishots[18] = '@@10@@' //2550
endfunction
On Item Drop
goldcost: 0
function onDrop takes Item itm returns nothing
call UnitRemoveAbility(itm.getCarrier().getUnit(),itm.userInt)
endfunction
On Item Pickup
goldcost: 2500
function onPickup takes Item itm returns nothing
local integer i = (Tower(itm.getCarrier()).getRange()-700)/100
if i < 0 then
set i = 0
elseif i > 18 then
set i = 18
endif
call UnitAddAbility(itm.getCarrier().getUnit(),multishots[i])
set itm.userInt = multishots[i]
endfunction
|
Description:
Latest Upload Comment: