Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.88 KB | None | 0 0
  1. function SpawnCreeps()
  2.  
  3.  
  4.  
  5. --RADIANT MID CREEPS
  6. local point = Entities:FindByName( nil, "radiantmid"):GetAbsOrigin()
  7. local waypoint = Entities:FindByName(nil, "radiantmidloc1")
  8. local unit = CreateUnitByName("npc_dota_creep_custom3_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  9. unit:SetInitialGoalEntity( waypoint )
  10. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  11. unit:SetInitialGoalEntity( waypoint )
  12. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  13. unit:SetInitialGoalEntity( waypoint )
  14. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  15. unit:SetInitialGoalEntity( waypoint )
  16. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  17. unit:SetInitialGoalEntity( waypoint )
  18. print ("units were spawned in!")
  19.  
  20.  
  21. --RADIANT TOP CREEPS
  22.  
  23.  
  24.  
  25. local point = Entities:FindByName( nil, "radiantbot"):GetAbsOrigin()
  26.  
  27. local waypoint = Entities:FindByName(nil, "radiantbotloc1")
  28. local unit = CreateUnitByName("npc_dota_creep_custom3_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  29. unit:SetInitialGoalEntity( waypoint )
  30. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  31. unit:SetInitialGoalEntity( waypoint )
  32. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  33. unit:SetInitialGoalEntity( waypoint )
  34. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  35. unit:SetInitialGoalEntity( waypoint )
  36. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  37. unit:SetInitialGoalEntity( waypoint )
  38. print ("units were spawned in!")
  39.  
  40.  
  41. --RADIANT BOTTOM CREEPS
  42.  
  43.  
  44. local point = Entities:FindByName( nil, "radianttop"):GetAbsOrigin()
  45.  
  46. local waypoint = Entities:FindByName(nil, "radianttoploc1")
  47. local unit = CreateUnitByName("npc_dota_creep_custom3_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  48. unit:SetInitialGoalEntity( waypoint )
  49. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  50. unit:SetInitialGoalEntity( waypoint )
  51. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  52. unit:SetInitialGoalEntity( waypoint )
  53. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  54. unit:SetInitialGoalEntity( waypoint )
  55. local unit = CreateUnitByName("npc_dota_creep_custom3_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  56. unit:SetInitialGoalEntity( waypoint )
  57. print ("units were spawned in!")
  58. end
  59.  
  60. local repeat_interval = 30 -- Rerun this timer every *repeat_interval* game-time seconds
  61. local start_after = 0 -- Start this timer *start_after* game-time seconds later
  62. print ("Timer 2 is running")
  63.  
  64. Timers:CreateTimer(start_after, function()
  65. SpawnCreepsaltiar()
  66. return repeat_interval
  67. end)
  68.  
  69.  
  70. function SpawnCreepsaltiar()
  71.  
  72. --ALTIAR MID CREEPS
  73.  
  74. local point = Entities:FindByName( nil, "altiarmid"):GetAbsOrigin()
  75.  
  76. local waypoint = Entities:FindByName(nil, "snowmidcreep")
  77. local unit = CreateUnitByName("npc_dota_creep_custom2_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  78. unit:SetInitialGoalEntity( waypoint )
  79. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  80. unit:SetInitialGoalEntity( waypoint )
  81. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  82. unit:SetInitialGoalEntity( waypoint )
  83. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  84. unit:SetInitialGoalEntity( waypoint )
  85. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  86. unit:SetInitialGoalEntity( waypoint )
  87. print ("units were spawned in!")
  88.  
  89.  
  90.  
  91. -- ALTIAR BOT CREEPS
  92.  
  93. local point = Entities:FindByName( nil, "altiarbot"):GetAbsOrigin()
  94.  
  95. local waypoint = Entities:FindByName(nil, "altiarbotloc1")
  96. local unit = CreateUnitByName("npc_dota_creep_custom2_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  97. unit:SetInitialGoalEntity( waypoint )
  98. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  99. unit:SetInitialGoalEntity( waypoint )
  100. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  101. unit:SetInitialGoalEntity( waypoint )
  102. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  103. unit:SetInitialGoalEntity( waypoint )
  104. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  105. unit:SetInitialGoalEntity( waypoint )
  106. print ("units were spawned in!")
  107.  
  108. -- ALTIAR TOP CREEPS
  109.  
  110. local point = Entities:FindByName( nil, "altiartop"):GetAbsOrigin()
  111.  
  112. local waypoint = Entities:FindByName(nil, "altiartoploc1")
  113. local unit = CreateUnitByName("npc_dota_creep_custom2_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  114. unit:SetInitialGoalEntity( waypoint )
  115. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  116. unit:SetInitialGoalEntity( waypoint )
  117. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  118. unit:SetInitialGoalEntity( waypoint )
  119. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  120. unit:SetInitialGoalEntity( waypoint )
  121. local unit = CreateUnitByName("npc_dota_creep_custom2_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  122. unit:SetInitialGoalEntity( waypoint )
  123. print ("units were spawned in!")
  124. end
  125.  
  126. local repeat_interval = 30 -- Rerun this timer every *repeat_interval* game-time seconds
  127. local start_after = 0 -- Start this timer *start_after* game-time seconds later
  128. print ("Timer 2 is running")
  129.  
  130. Timers:CreateTimer(start_after, function()
  131. SpawnCreepsdire()
  132. return repeat_interval
  133. end)
  134.  
  135.  
  136. function SpawnCreepsdire()
  137.  
  138. -- DIRE MID CREEPS
  139.  
  140. local point = Entities:FindByName( nil, "diremid"):GetAbsOrigin()
  141.  
  142. local waypoint = Entities:FindByName(nil, "diremidloc1")
  143. local unit = CreateUnitByName("npc_dota_creep_custom4_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  144. unit:SetInitialGoalEntity( waypoint )
  145. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  146. unit:SetInitialGoalEntity( waypoint )
  147. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  148. unit:SetInitialGoalEntity( waypoint )
  149. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  150. unit:SetInitialGoalEntity( waypoint )
  151. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  152. unit:SetInitialGoalEntity( waypoint )
  153. print ("units were spawned in!")
  154.  
  155.  
  156.  
  157.  
  158. -- DIRE TOP CREEPS
  159.  
  160. local point = Entities:FindByName( nil, "diretop"):GetAbsOrigin()
  161.  
  162. local waypoint = Entities:FindByName(nil, "diretoploc1")
  163. local unit = CreateUnitByName("npc_dota_creep_custom4_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  164. unit:SetInitialGoalEntity( waypoint )
  165. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  166. unit:SetInitialGoalEntity( waypoint )
  167. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  168. unit:SetInitialGoalEntity( waypoint )
  169. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  170. unit:SetInitialGoalEntity( waypoint )
  171. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  172. unit:SetInitialGoalEntity( waypoint )
  173. print ("units were spawned in!")
  174.  
  175.  
  176. -- DIRE BOTTOM CREEPS
  177.  
  178. local point = Entities:FindByName( nil, "direbot"):GetAbsOrigin()
  179.  
  180. local waypoint = Entities:FindByName(nil, "direbotloc1")
  181. local unit = CreateUnitByName("npc_dota_creep_custom4_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  182. unit:SetInitialGoalEntity( waypoint )
  183. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  184. unit:SetInitialGoalEntity( waypoint )
  185. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  186. unit:SetInitialGoalEntity( waypoint )
  187. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  188. unit:SetInitialGoalEntity( waypoint )
  189. local unit = CreateUnitByName("npc_dota_creep_custom4_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  190. unit:SetInitialGoalEntity( waypoint )
  191. print ("units were spawned in!")
  192. end
  193.  
  194. local repeat_interval = 30 -- Rerun this timer every *repeat_interval* game-time seconds
  195. local start_after = 0 -- Start this timer *start_after* game-time seconds later
  196. print ("Timer 2 is running")
  197.  
  198. Timers:CreateTimer(start_after, function()
  199. SpawnCreepstempest()
  200. return repeat_interval
  201. end)
  202.  
  203.  
  204. function SpawnCreepstempest()
  205.  
  206. -- TEMPEST MID CREEPS
  207.  
  208. local point = Entities:FindByName( nil, "tempestmid"):GetAbsOrigin()
  209.  
  210. local waypoint = Entities:FindByName(nil, "tempestmidloc1")
  211. local unit = CreateUnitByName("npc_dota_creep_custom1_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  212. unit:SetInitialGoalEntity( waypoint )
  213. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  214. unit:SetInitialGoalEntity( waypoint )
  215. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  216. unit:SetInitialGoalEntity( waypoint )
  217. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  218. unit:SetInitialGoalEntity( waypoint )
  219. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  220. unit:SetInitialGoalEntity( waypoint )
  221. print ("units were spawned in!")
  222.  
  223.  
  224.  
  225. -- TEMPEST BOTTOM CREEPS
  226.  
  227. local point = Entities:FindByName( nil, "tempestbot"):GetAbsOrigin()
  228.  
  229. local waypoint = Entities:FindByName(nil, "tempestbotloc1")
  230. local unit = CreateUnitByName("npc_dota_creep_custom1_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  231. unit:SetInitialGoalEntity( waypoint )
  232. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  233. unit:SetInitialGoalEntity( waypoint )
  234. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  235. unit:SetInitialGoalEntity( waypoint )
  236. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  237. unit:SetInitialGoalEntity( waypoint )
  238. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  239. unit:SetInitialGoalEntity( waypoint )
  240. print ("units were spawned in!")
  241.  
  242. -- TEMPEST TOP CREEPS
  243.  
  244. local point = Entities:FindByName( nil, "tempesttop"):GetAbsOrigin()
  245.  
  246. local waypoint = Entities:FindByName(nil, "tempesttoploc1")
  247. local unit = CreateUnitByName("npc_dota_creep_custom1_ranged", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  248. unit:SetInitialGoalEntity( waypoint )
  249. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  250. unit:SetInitialGoalEntity( waypoint )
  251. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  252. unit:SetInitialGoalEntity( waypoint )
  253. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  254. unit:SetInitialGoalEntity( waypoint )
  255. local unit = CreateUnitByName("npc_dota_creep_custom1_melee", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  256. unit:SetInitialGoalEntity( waypoint )
  257. print ("units were spawned in!")
  258.  
  259. end
  260.  
  261. local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
  262. local start_after = 210 -- Start this timer *start_after* game-time seconds later
  263. print ("Timer 2 is running")
  264.  
  265. Timers:CreateTimer(start_after, function()
  266. SpawnCreepssiege()
  267. return repeat_interval
  268. end)
  269.  
  270.  
  271. function SpawnCreepssiege()
  272.  
  273. -- SIEGE CREEPS TEMPEST
  274.  
  275. local point = Entities:FindByName( nil, "tempesttop"):GetAbsOrigin()
  276. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  277. local waypoint = Entities:FindByName(nil, "tempesttoploc1")
  278. unit:SetInitialGoalEntity( waypoint )
  279. print ("siege spawned in")
  280. local point = Entities:FindByName( nil, "tempestbot"):GetAbsOrigin()
  281. local waypoint = Entities:FindByName(nil, "tempestbotloc1")
  282. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  283. unit:SetInitialGoalEntity( waypoint )
  284.  
  285. local point = Entities:FindByName( nil, "tempestmid"):GetAbsOrigin()
  286.  
  287. local waypoint = Entities:FindByName(nil, "tempestmidloc1")
  288. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_2)
  289. unit:SetInitialGoalEntity( waypoint )
  290. end
  291.  
  292. local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
  293. local start_after = 210 -- Start this timer *start_after* game-time seconds later
  294. print ("Timer 2 is running")
  295.  
  296. Timers:CreateTimer(start_after, function()
  297. SpawnCreepssiegedire()
  298. return repeat_interval
  299. end)
  300.  
  301.  
  302. function SpawnCreepssiegedire()
  303.  
  304. -- SIEGE CREEPS DIRE
  305.  
  306. local point = Entities:FindByName( nil, "direbot"):GetAbsOrigin()
  307. local waypoint = Entities:FindByName(nil, "direbotloc1")
  308. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  309. unit:SetInitialGoalEntity( waypoint )
  310. local point = Entities:FindByName( nil, "diretop"):GetAbsOrigin()
  311. local waypoint = Entities:FindByName(nil, "diretoploc1")
  312. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  313. unit:SetInitialGoalEntity( waypoint )
  314. local point = Entities:FindByName( nil, "diremid"):GetAbsOrigin()
  315. local waypoint = Entities:FindByName(nil, "diremidloc1")
  316. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_4)
  317. unit:SetInitialGoalEntity( waypoint )
  318.  
  319. end
  320.  
  321. local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
  322. local start_after = 210 -- Start this timer *start_after* game-time seconds later
  323. print ("Timer 2 is running")
  324.  
  325. Timers:CreateTimer(start_after, function()
  326. SpawnCreepssiegeradiant()
  327. return repeat_interval
  328. end)
  329.  
  330.  
  331. function SpawnCreepssiegeradiant()
  332.  
  333. -- SIEGE CREEPS RADIANT
  334.  
  335. local point = Entities:FindByName( nil, "radianttop"):GetAbsOrigin()
  336. local waypoint = Entities:FindByName(nil, "radianttoploc1")
  337. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  338. unit:SetInitialGoalEntity( waypoint )
  339. local point = Entities:FindByName( nil, "radiantbot"):GetAbsOrigin()
  340. local waypoint = Entities:FindByName(nil, "radiantbotloc1")
  341. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  342. unit:SetInitialGoalEntity( waypoint )
  343.  
  344. local point = Entities:FindByName( nil, "radiantmid"):GetAbsOrigin()
  345. local waypoint = Entities:FindByName(nil, "radiantmidloc1")
  346. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_3)
  347. unit:SetInitialGoalEntity( waypoint )
  348.  
  349. end
  350.  
  351. local repeat_interval = 210 -- Rerun this timer every *repeat_interval* game-time seconds
  352. local start_after = 210 -- Start this timer *start_after* game-time seconds later
  353. print ("Timer 2 is running")
  354.  
  355. Timers:CreateTimer(start_after, function()
  356. SpawnCreepssiegealtiar()
  357. return repeat_interval
  358. end)
  359.  
  360.  
  361. function SpawnCreepssiegealtiar()
  362.  
  363. -- SIEGE CREEPS ALTIAR
  364.  
  365. local point = Entities:FindByName( nil, "altiartop"):GetAbsOrigin()
  366. local waypoint = Entities:FindByName(nil, "altiartoploc1")
  367. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  368. unit:SetInitialGoalEntity( waypoint )
  369. local point = Entities:FindByName( nil, "altiarbot"):GetAbsOrigin()
  370. local waypoint = Entities:FindByName(nil, "altiarbotloc1")
  371. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  372. unit:SetInitialGoalEntity( waypoint )
  373.  
  374. local point = Entities:FindByName( nil, "altiarmid"):GetAbsOrigin()
  375. local waypoint = Entities:FindByName(nil, "altiarmidloc1")
  376. local unit = CreateUnitByName("npc_dota_custom1_siege", point, true, nil, nil, DOTA_TEAM_CUSTOM_1)
  377. unit:SetInitialGoalEntity( waypoint )
  378. end
  379.  
  380. local start_after = 1200 -- Start this timer *start_after* game-time seconds later
  381. print ("Timer 2 is running")
  382. Timers:CreateTimer(start_after, function()
  383. Spawndragon()
  384.  
  385. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement