Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.50 KB | None | 0 0
  1. function(event, timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellID, spellName, spellSchool)
  2.  
  3.  
  4.  
  5. for i=1,table.getn(aura_env.name) do
  6. if aura_env.name[i] ~= nil then
  7. local localizedClass, englishClass, classIndex = UnitClass(aura_env.name[i])
  8. -- Hunter
  9. if classIndex == 3 then
  10. if event == "SPELL_CAST_SUCCESS" and spellID == 109248 then
  11. if aura_env.name[i] == sourceName then
  12. aura_env.duration[i] = GetTime()+10
  13. aura_env.duration2[i] = GetTime()+45
  14. aura_env.activecheck[i] = 1
  15. end
  16. end
  17.  
  18. if event == "SPELL_AURA_APPLIED" and spellID == 117526 then
  19. if aura_env.name[i] == sourceName then
  20. aura_env.activecheck[i] = 2
  21. aura_env.duration[i] = GetTime()+5
  22. end
  23. end
  24.  
  25. if event == "SPELL_AURA_REMOVED" and spellID == 117526 then
  26. if aura_env.name[i] == sourceName then
  27. aura_env.activecheck[i] = 3
  28. end
  29. end
  30.  
  31.  
  32.  
  33. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  34. if aura_env.duration[i] - GetTime() <= 0 then
  35. aura_env.activecheck[i] = 3
  36. end
  37. end
  38. end
  39.  
  40. -- Deathknight
  41. if classIndex == 6 then
  42. if event == "SPELL_CAST_SUCCESS" and spellID == 108199 then
  43. if aura_env.name[i] == sourceName then
  44. aura_env.duration[i] = GetTime()+0
  45. if aura_env.talented[i] == true then
  46. aura_env.duration2[i] = GetTime()+120
  47. else
  48. aura_env.duration2[i] = GetTime()+180
  49. end
  50. aura_env.activecheck[i] = 1
  51. end
  52. end
  53.  
  54. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  55. if aura_env.duration[i] - GetTime() <= 0 then
  56. aura_env.activecheck[i] = 3
  57. end
  58. end
  59.  
  60. end
  61.  
  62. -- Demonhunter DPS
  63. if classIndex == 12 then
  64. if event == "SPELL_CAST_SUCCESS" and spellID == 179057 then
  65. if aura_env.name[i] == sourceName then
  66. aura_env.duration[i] = GetTime()+5
  67. if aura_env.talented[i] == true then
  68. aura_env.duration2[i] = GetTime()+40
  69. else
  70. aura_env.duration2[i] = GetTime()+60
  71. end
  72. aura_env.activecheck[i] = 3
  73. end
  74. end
  75. if event == "SPELL_AURA_APPLIED" and spellID == 179057 then
  76. if aura_env.name[i] == sourceName then
  77. aura_env.activecheck[i] = 2
  78. end
  79. end
  80.  
  81. if event == "SPELL_AURA_REMOVED" and spellID == 179057 then
  82. if aura_env.name[i] == sourceName then
  83. aura_env.activecheck[i] = 3
  84. end
  85. end
  86.  
  87.  
  88.  
  89. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  90. if aura_env.duration[i] - GetTime() <= 0 then
  91. aura_env.activecheck[i] = 3
  92. end
  93. end
  94.  
  95.  
  96. -- Demonhunter Silence Sigil
  97. if event == "SPELL_CAST_SUCCESS" and (spellID == 202137 or spellID == 207682) then
  98. if aura_env.name[i] == sourceName then
  99. if aura_env.talented[i] == true then
  100. aura_env.duration[i] = GetTime()+1
  101. aura_env.duration2[i] = GetTime()+48
  102. else
  103. aura_env.duration[i] = GetTime()+2
  104. aura_env.duration2[i] = GetTime()+60
  105. end
  106. aura_env.activecheck[i] = 1
  107. end
  108. end
  109. if event == "SPELL_AURA_APPLIED" and spellID == 204490 then
  110. aura_env.activecheck[i] = 2
  111. if aura_env.talented2[i] == true then
  112. aura_env.duration[i] = GetTime()+8
  113. else
  114. aura_env.duration[i] = GetTime()+6
  115. end
  116. end
  117.  
  118. if event == "SPELL_AURA_REMOVED" and spellID == 204490 then
  119. if aura_env.name[i] == sourceName then
  120. aura_env.activecheck[i] = 3
  121. end
  122. end
  123.  
  124.  
  125.  
  126. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  127. if aura_env.duration[i] - GetTime() <= 0 then
  128. aura_env.activecheck[i] = 3
  129. end
  130. end
  131.  
  132. end
  133.  
  134. -- Monk
  135. if classIndex == 10 then
  136. if event == "SPELL_CAST_SUCCESS" and spellID == 119381 then
  137. if aura_env.name[i] == sourceName then
  138. aura_env.duration[i] = GetTime()+5
  139. aura_env.duration2[i] = GetTime()+45
  140. aura_env.activecheck[i] = 3
  141. end
  142. end
  143. if event == "SPELL_AURA_APPLIED" and spellID == 119381 then
  144. if aura_env.name[i] == sourceName then
  145. aura_env.activecheck[i] = 2
  146. end
  147. end
  148.  
  149. if event == "SPELL_AURA_REMOVED" and spellID == 119381 then
  150. if aura_env.name[i] == sourceName then
  151. aura_env.activecheck[i] = 3
  152. end
  153. end
  154.  
  155.  
  156.  
  157. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  158. if aura_env.duration[i] - GetTime() <= 0 then
  159. aura_env.activecheck[i] = 3
  160. end
  161. end
  162.  
  163.  
  164. end
  165.  
  166. -- Warrior
  167. if classIndex == 1 then
  168. if event == "SPELL_CAST_SUCCESS" and spellID == 46968 then
  169. if aura_env.name[i] == sourceName then
  170. aura_env.duration[i] = GetTime()+4
  171. aura_env.duration2[i] = GetTime()+40
  172. aura_env.activecheck[i] = 3
  173. aura_env.hits[i] = 0
  174. end
  175. end
  176. if event == "SPELL_AURA_APPLIED" and spellID == 132168 then
  177. if aura_env.name[i] == sourceName then
  178. aura_env.activecheck[i] = 2
  179. end
  180. end
  181. if event == "SPELL_DAMAGE" and spellID == 46968 then
  182. if aura_env.name[i] == sourceName then
  183. aura_env.hits[i] = aura_env.hits[i]+1
  184. if aura_env.hits[i] == 3 then
  185. aura_env.duration2[i] = aura_env.duration2[i] - 20
  186. end
  187. aura_env.duration[i] = GetTime()+4
  188. end
  189. end
  190.  
  191. if event == "SPELL_AURA_REMOVED" and spellID == 132168 then
  192. if aura_env.name[i] == sourceName then
  193. aura_env.activecheck[i] = 3
  194. aura_env.hits[i] = 0
  195. end
  196. end
  197.  
  198.  
  199.  
  200. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  201. if aura_env.duration[i] - GetTime() <= 0 then
  202. aura_env.activecheck[i] = 3
  203. end
  204. end
  205.  
  206. end
  207.  
  208. -- Shaman
  209. if classIndex == 7 then
  210. if event == "SPELL_CAST_SUCCESS" and spellID == 192058 then
  211. if aura_env.name[i] == sourceName then
  212. aura_env.duration[i] = GetTime()+2
  213. aura_env.duration2[i] = GetTime()+45
  214. aura_env.activecheck[i] = 1
  215. end
  216. end
  217.  
  218. if event == "SPELL_AURA_APPLIED" and spellID == 118905 then
  219. if aura_env.activecheck[i] == 1 and GetTime() >= aura_env.duration[i]-1 then
  220. aura_env.activecheck[i] = 2
  221. aura_env.duration[i] = GetTime()+5
  222. end
  223. end
  224.  
  225. if event == "SPELL_AURA_REMOVED" and spellID == 118905 then
  226. if aura_env.name[i] == sourceName then
  227. aura_env.activecheck[i] = 3
  228. end
  229. end
  230.  
  231.  
  232.  
  233. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  234. if aura_env.duration[i] - GetTime() <= 0 then
  235. aura_env.activecheck[i] = 3
  236. end
  237. end
  238.  
  239.  
  240. end
  241.  
  242. -- Druid
  243. if classIndex == 11 then
  244. if event == "SPELL_CAST_SUCCESS" and spellID == 102793 then
  245. if aura_env.name[i] == sourceName then
  246. aura_env.duration[i] = GetTime()+10
  247. aura_env.duration2[i] = GetTime()+60
  248. aura_env.activecheck[i] = 1
  249. end
  250. end
  251.  
  252.  
  253.  
  254. if aura_env.activecheck[i] == 1 then
  255. if aura_env.duration[i] - GetTime() <= 0 then
  256. aura_env.activecheck[i] = 3
  257. end
  258. end
  259. end
  260.  
  261. -- Blood Elf
  262. if raceIndex == 6 then
  263. for i=1,table.getn(aura_env.activecheck)do
  264. if event == "SPELL_CAST_SCCUESS" then
  265. if(spellID = 28730) or (spellID == 25046 or (spellID) == 69179 or (spellID) == 50613 or (spellID) == 129597 or (spellID) == 155145 or (spellID) == 202719 or (spellID) == 80483 then
  266. if aura_env.name[i] == sourceName then
  267. aura_env.duratin2[i] = GetTime()+90
  268. aura_env.duration[i] = GetTime()+3
  269. aura_env.activecheck[i] = 2
  270. end
  271. end
  272. end
  273.  
  274.  
  275.  
  276. -- Priest
  277. if classIndex == 5 then
  278. if event == "SPELL_CAST_SUCCESS" and spellID == 205369 then
  279. if aura_env.name[i] == sourceName then
  280. aura_env.duration[i] = GetTime()+2
  281. aura_env.duration2[i] = GetTime()+30
  282. aura_env.activecheck[i] = 1
  283. end
  284. end
  285.  
  286. if event == "SPELL_AURA_APPLIED" and spellID == 226943 then
  287. if aura_env.name[i] == sourceName then
  288. if aura_env.activecheck[i] == 1 and GetTime() >= aura_env.duration[i]-1 then
  289. aura_env.activecheck[i] = 2
  290. aura_env.duration[i] = GetTime()+4
  291. end
  292. end
  293. end
  294.  
  295. if event == "SPELL_AURA_REMOVED" and spellID == 226943 then
  296. if aura_env.name[i] == sourceName then
  297. aura_env.activecheck[i] = 3
  298. end
  299. end
  300.  
  301.  
  302.  
  303. if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
  304. if aura_env.duration[i] - GetTime() <= 0 then
  305. aura_env.activecheck[i] = 3
  306. end
  307. end
  308.  
  309.  
  310. end
  311. end
  312.  
  313. end
  314. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement