Advertisement
sorvani

ae.mac

Sep 19th, 2011
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. Sub Main
  2.  
  3. /declare CLR0 string local Word of Pain
  4. /declare CLR1 string local Word of Shadow
  5. /declare CLR2 string local Word of Spirit
  6. /declare CLR3 string local Tremor
  7. /declare CLR4 string local Word of Souls
  8. /declare CLR5 string local Earthquake
  9. /declare CLR6 string local Word Divine
  10. /declare CLR7 string local Upheaval
  11. /declare CLR8 string local The Unspoken Word
  12. /declare CLR9 string local Catastrophe
  13.  
  14. /declare NEC0 string local Word of Spirit
  15. /declare NEC1 string local Word of Souls
  16.  
  17. /declare DRU1 string local Catastrophe
  18. /declare DRU2 string local Earthquake
  19. /declare DRU3 string local Upheaval
  20. /declare DRU4 string local Tremor
  21. | /declare DRU5 string local
  22. | /declare DRU6 string local
  23. | /declare DRU7 string local
  24. | /declare DRU8 string local
  25. | /declare DRU9 string local
  26.  
  27. /declare WIZ0 string local Numbing Cold
  28. /declare WIZ1 string local Fingers of Fire
  29. /declare WIZ2 string local Project Lightning
  30. /declare WIZ3 string local Cast Force
  31. /declare WIZ4 string local Supernova
  32. /declare WIZ5 string local Jyll's Zephyr of Ice
  33. /declare WIZ6 string local Jyll's Wave of Heat
  34. /declare WIZ7 string local Winds of Gelid
  35.  
  36. /declare MyClass string local ${Me.Class.ShortName}
  37. /declare AllowedClasses string local |CLR|DRU|WIZ|NEC|
  38. /declare MinNPC int local 3
  39.  
  40. /declare a int local -1
  41. /declare b int local -1
  42. /declare MaxGems int local 8
  43.  
  44. /if (${Me.AltAbility[Mnemonic Retention]}) /varset MaxGems 9
  45.  
  46. /if (!${AllowedClasses.Find[${Me.Class.ShortName}]}) {
  47. /echo Error, you must be one of the following classes to run this macro: ${AllowedClasses}
  48. /bc Error, I'm not a ${AllowedClasses}
  49. /endmacro
  50. }
  51.  
  52. :MemSpells
  53. /varset a 0
  54. /varset b 0
  55. /sit
  56. /for a 15 downto 0
  57. | check if the spell is defined ${MyClass}${a}
  58. /if (${Defined[${MyClass}${a}]}) {
  59. | check if i have the defined spell in my book. ${${MyClass}${a}}
  60. /if (${Me.Book[${${MyClass}${a}}]}) {
  61. /varcalc b ${b}+1
  62. | check if i alreadyhave it memorized where it should be
  63. /if (!${Me.Gem[${b}].Name.Find["${${MyClass}${a}}"]}) {
  64. | memorize the spell.
  65. /memorize "${${MyClass}${a}}|${b}"
  66. /delay 10s ${Cast.Status.Find[M]}
  67. /delay 10s !${Cast.Status.Find[M]}
  68. }
  69. }
  70. }
  71. /if (${b} >= ${MaxGems}) /goto :CastLoop
  72. /next a
  73. /stand
  74. :CastLoop
  75. /varset a 0
  76. /for a 1 to ${b}
  77. /if (${Cast.Ready[${a}]} && ${Me.CurrentMana} >= ${Spell["${Me.Gem[${a}]}"].Mana} && ${SpawnCount[radius 30 npc]} >= ${MinNPC}) {
  78. /casting "${Me.Gem[${a}]}"
  79. /delay 10s ${Cast.Status.Find[C]}
  80. /delay 10s !${Cast.Status.Find[C]}
  81. | delay for recast time
  82. /delay 1
  83. /varset a 0
  84. } else {
  85. /delay 10
  86. }
  87. /next a
  88. /goto :CastLoop
  89.  
  90. /return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement