Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [Ubertip] => He can get rid of your illegal arms.
            [Art] => ReplaceableTextures\CommandButtons\BTNMedivh.blp
            [abilList] => Array
                (
                )

            [Name] => Arms Dealer
        )

    [settings] => Array
        (
            [balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00-20% |rdamage|n|cffFFFF00-20% |rspell damage|n|cffFFFF00+50% |rbounty collected
            [goldcost] => 80
            [author] => limfa
            [authorDisplay] => |c007EBFF1Limfa|r
            [version] => 6.0
            [rarity] => rare
        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DAMAGE_ADD_PERC
                    [base] => -0.2
                    [add] => 0
                )

            [1] => Array
                (
                    [id] => MOD_SPELL_DAMAGE_DEALT
                    [base] => -0.2
                    [add] => 0
                )

            [2] => Array
                (
                    [id] => MOD_BOUNTY_RECEIVED
                    [base] => 0.5
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Item Creation
                    [code] => set itm.userInt = 0
     set itm.userInt2 = 0
                    [values] => Array
                        (
                            [explain] => So it cannot happen twice to get gold  for same boss creep entering range second time.
                            [visible] => false
                            [goldcost] => 0
                            [name] => Double Gold
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
		MultiboardValues limfa_dealerboard
    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 limfa_dealerboard = MultiboardValues.create(1)
	    call limfa_dealerboard.setKey(0,"Arms Sold $")
	endfunction
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Details
                    [code] => call limfa_dealerboard.setValue(0,I2S(itm.userInt2))
    return limfa_dealerboard
                    [values] => Array
                        (
                            [0] => Array
                                (
                                    [_value] => 80
                                    [typ] => string
                                )

                        )

                )

            [3] => Array
                (
                    [name] => On Unit Comes In Range
                    [code] => local Tower t = itm.getCarrier()
    local Creep c = Event.getTarget()
    local Playor p = t.getOwner()
    local integer bossLevel = c.getSpawnLevel()
    local integer rewardValue
    
    if itm.userInt < bossLevel and t.calcChance(0.25) then
        set rewardValue = t.getLevel() + bossLevel + 25
        call p.giveGold(rewardValue, t.getUnit(), true, false)
        call p.displayFloatingText("Arms Sold $" +  I2S(rewardValue), t, 0, 255, 0)
        set itm.userInt = bossLevel
        set itm.userInt2 = itm.userInt2 + rewardValue
    endif
                    [values] => Array
                        (
                            [explain] => Bosses coming within |cffFFFF80600|r range of the carrier have a |cffFFFF8025%|r chance to grant |cffFFFF80[25 + current wave]|r gold. Cannot trigger on the same boss twice.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1|r gold
                            [UNITINRANGE_targetType] => TARGET_TYPE_CREEPS + TARGET_TYPE_SIZE_BOSS
                            [visible] => true
                            [goldcost] => 0
                            [name] => The Customer Is Boss
                            [UNITINRANGE_range] => 600
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)