Advertisement
DavidJSGardner

Codex Companion (UO Pangaea Necromancer Hotkeys)

Nov 19th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. ;==================================
  2. ; Script Name: Codex Companion
  3. ; Author: Callum O'Lyre
  4. ; ICQ: 625-658-845
  5. ; Version: 1.0
  6. ; Shard: Pangaea
  7. ; Public Release: 15.10.2012
  8. ; Purpose: To be able to cast Necro Chants by name instead of having
  9. ; to remember their power words. Very similar to my Basic
  10. ; Cleric Hotkey Macro
  11. ;=================
  12. ; Now enjoy some documentation regarding onhotkey and the many different ways you can
  13. ; Hotkey buttons.
  14. ;
  15. ; The onHotKey command performs the following line of code (brackets do NOT work) when a certain key is pressed.
  16. ; The key-specifier can either be A-Z, 0-9, F1-F12 and ESC, BACK, TAB, ENTER, PAUSE, CAPSLOCK, SPACE, PGDN, PGUP,
  17. ; END, HOME, LEFT, RIGHT, UP, DOWN, PRNSCR, INSERT, DELETE, NUMLOCK or SCROLLLOCK.
  18. ;
  19. ; onHotKey {key-specifier} {[alt] | [ctrl] | [shift]}
  20. ;
  21. ; Ex: onhotkey t alt
  22. ;==================================
  23. While #true
  24. {
  25. onhotkey F1
  26. {
  27. GoSub CastNecroChant Darkness
  28. }
  29. onhotkey F1 SHIFT
  30. {
  31. GoSub CastNecroChant Commune
  32. }
  33. onhotkey F2
  34. {
  35. GoSub CastNecroChant Spectre'sTouch
  36. }
  37. onhotkey F3
  38. {
  39. GoSub Meditate
  40. }
  41. }
  42.  
  43. ;GoSub CastNecroChant <ChantName>
  44. ;ChantNames:
  45. ;Darkness, Commune, AnimateDead, ControlUndead, Sacrifice
  46. ;Spectre'sTouch, Wraith'sBreath, FrostRing, Kill, RaiseDead
  47. ;Wraithform, Release, Transfusion, SummonSpirit, Lich, Plague
  48. Sub CastNecroChant
  49. set !lpc #lpc
  50. set #lpc 1000
  51.  
  52. if %1 = Darkness
  53. msg Nox $
  54.  
  55. if %1 = Commune
  56. msg Dice $
  57.  
  58. if %1 = AnimateDead
  59. msg Corpus Sine Nomine Expergefaceret $
  60.  
  61. if %1 = ControlUndead
  62. msg Nutu Magistri Supplicare $
  63.  
  64. if %1 = Sacrifice
  65. msg Animus Ex Corporis Resolveretur $
  66.  
  67. if %1 = Spectre'sTouch
  68. msg Enervare $
  69.  
  70. if %1 = Wraith'sBreath
  71. msg Manes Sollicti Mi Compellere $
  72.  
  73. if %1 = FrostRing
  74. msg Umbrae Tenebrae Venarent $
  75.  
  76. if %1 = Kill
  77. msg Ulties Manum Necarent $
  78.  
  79. if %1 = RaiseDead
  80. msg Manes Turbidi Sollictique Vocam $
  81.  
  82. if %1 = Wraithform
  83. msg Manes Sollicti Mihi Infundite $
  84.  
  85. if %1 = Release
  86. msg Nutu Magistri Se Resolvere $
  87.  
  88. if %1 = Transfusion
  89. msg Nutu Magistri Se Compellere $
  90.  
  91. if %1 = SummonSpirit
  92. msg Manes Turbidi Sollictique Resolverent $
  93.  
  94. if %1 = Lich
  95. msg Umbrae Tenebrae Miserere Animi Non Digna Ferentis $
  96.  
  97. if %1 = Plague
  98. msg Fluctus Puter Se Aresceret $
  99.  
  100. set #lpc !lpc
  101. return
  102.  
  103. ;GoSub Meditate
  104. ;Optional param to send, FMC will return from sub only when you are full mana, useful for if you
  105. ;are using in a macro where you need to be done with meditation before proceeding onto another
  106. ;action, inscription comes to mind, casting spells also would be another reason.
  107. Sub Meditate
  108. set !lpc #lpc
  109. set #lpc 1000
  110. event Macro 13 46
  111.  
  112. set %jrnl #jindex
  113. while #true
  114. {
  115. if #jindex > %jrnl
  116. {
  117. set %jrnl %jrnl + 1
  118. scanjournal %jrnl
  119. if #charname , :_I_am_already_performing in #journal
  120. {
  121. wait 2s
  122. event Macro 13 46
  123. }
  124. if You_are_at_peace. in #journal
  125. {
  126. Event Sysmessage Silly Mana User! You are at full mana
  127. return
  128. }
  129. if to_concentrate in #journal
  130. {
  131. wait 30s
  132. event Macro 13 46
  133. }
  134. if Meditating in #journal
  135. {
  136. Set #lpc !lpc
  137. if %1 = FMC
  138. {
  139. While #MANA <> #MAXMANA
  140. {
  141. onhotkey ESC
  142. {
  143. Event Sysmessage Stopping Mana Monitoring.
  144. return MMStop
  145. }
  146. }
  147. return
  148. }
  149. return
  150. }
  151. }
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement