Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SpawnCreeps()
- --RADIANT MID CREEPS
- local point = Entities:FindByName( nil, "radiantmid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "radiantmidloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom3_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- --RADIANT TOP CREEPS
- local point = Entities:FindByName( nil, "radiantbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "radiantbotloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom3_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- --RADIANT BOTTOM CREEPS
- local point = Entities:FindByName( nil, "radianttop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "radianttoploc1")
- local unit = CreateUnitByName("npc_dota_creep_custom3_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- end
- local repeat_interval = 30 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 0 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepsaltiar()
- return repeat_interval
- end)
- function SpawnCreepsaltiar()
- --ALTIAR MID CREEPS
- local point = Entities:FindByName( nil, "altiarmid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "snowmidcreep")
- local unit = CreateUnitByName("npc_dota_creep_custom2_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- -- ALTIAR BOT CREEPS
- local point = Entities:FindByName( nil, "altiarbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "altiarbotloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom2_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- -- ALTIAR TOP CREEPS
- local point = Entities:FindByName( nil, "altiartop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "altiartoploc1")
- local unit = CreateUnitByName("npc_dota_creep_custom2_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- end
- local repeat_interval = 30 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 0 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepsdire()
- return repeat_interval
- end)
- function SpawnCreepsdire()
- -- DIRE MID CREEPS
- local point = Entities:FindByName( nil, "diremid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "diremidloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom4_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- -- DIRE TOP CREEPS
- local point = Entities:FindByName( nil, "diretop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "diretoploc1")
- local unit = CreateUnitByName("npc_dota_creep_custom4_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- -- DIRE BOTTOM CREEPS
- local point = Entities:FindByName( nil, "direbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "direbotloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom4_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- end
- local repeat_interval = 30 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 0 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepstempest()
- return repeat_interval
- end)
- function SpawnCreepstempest()
- -- TEMPEST MID CREEPS
- local point = Entities:FindByName( nil, "tempestmid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "tempestmidloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom1_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- -- TEMPEST BOTTOM CREEPS
- local point = Entities:FindByName( nil, "tempestbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "tempestbotloc1")
- local unit = CreateUnitByName("npc_dota_creep_custom1_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- -- TEMPEST TOP CREEPS
- local point = Entities:FindByName( nil, "tempesttop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "tempesttoploc1")
- local unit = CreateUnitByName("npc_dota_creep_custom1_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- print ("units were spawned in!")
- end
- local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 210 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepssiege()
- return repeat_interval
- end)
- function SpawnCreepssiege()
- -- SIEGE CREEPS TEMPEST
- local point = Entities:FindByName( nil, "tempesttop"):GetAbsOrigin()
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- local waypoint = Entities:FindByName(nil, "tempesttoploc1")
- unit:SetInitialGoalEntity( waypoint )
- print ("siege spawned in")
- local point = Entities:FindByName( nil, "tempestbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "tempestbotloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "tempestmid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "tempestmidloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
- unit:SetInitialGoalEntity( waypoint )
- end
- local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 210 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepssiegedire()
- return repeat_interval
- end)
- function SpawnCreepssiegedire()
- -- SIEGE CREEPS DIRE
- local point = Entities:FindByName( nil, "direbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "direbotloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "diretop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "diretoploc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "diremid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "diremidloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
- unit:SetInitialGoalEntity( waypoint )
- end
- local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 210 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepssiegeradiant()
- return repeat_interval
- end)
- function SpawnCreepssiegeradiant()
- -- SIEGE CREEPS RADIANT
- local point = Entities:FindByName( nil, "radianttop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "radianttoploc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "radiantbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "radiantbotloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "radiantmid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "radiantmidloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
- unit:SetInitialGoalEntity( waypoint )
- end
- local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
- local start_after = 210 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- SpawnCreepssiegealtiar()
- return repeat_interval
- end)
- function SpawnCreepssiegealtiar()
- -- SIEGE CREEPS ALTIAR
- local point = Entities:FindByName( nil, "altiartop"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "altiartoploc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "altiarbot"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "altiarbotloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- local point = Entities:FindByName( nil, "altiarmid"):GetAbsOrigin()
- local waypoint = Entities:FindByName(nil, "altiarmidloc1")
- local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
- unit:SetInitialGoalEntity( waypoint )
- end
- local start_after = 1200 -- Start this timer *start_after* game-time seconds later
- print ("Timer 2 is running")
- Timers:CreateTimer(start_after, function()
- Spawndragon()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement