nethaxion

Spell Bot

May 9th, 2024 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | Gaming | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <cmud>
  3. <class name="SpellBotCore" copy="yes">
  4. <alias name="spellbotoff" autoappend="true" copy="yes">
  5. <value>#T- castingon
  6. #T- Regen
  7. #T- spellbot
  8. #VAR spellbotenabled 0
  9. #UNT casting</value>
  10. </alias>
  11. <alias name="spellboton" autoappend="true" copy="yes">
  12. <value>#T+ spellbot
  13. #VAR spellbotenabled 1
  14. #SAY Spellbot on. Alias BOTSPELL to 'CAST "spell name"' Use SpellbotStart to initiate.
  15. #SAY You can adjust the delay between casts by typing spelldelay #.
  16. #SAY E.g., SPELLDELAY 5 would have 5 seconds between casts.
  17. #SAY Set this number to be just slightly longer than the lag on the spell to avoid D/Cs.</value>
  18. </alias>
  19. <class name="spellbot" copy="yes">
  20. <class name="Regen" enabled="false" copy="yes">
  21. <trigger priority="5417300" copy="yes">
  22. <pattern>-0:01:00</pattern>
  23. <value>#IF (%eval((@MANA * 100)/@MANA_MAX) &gt; 90) {
  24. #SUSPEND "spellsurge"
  25. wake
  26. #T- regen
  27. save
  28. #RESUME "spellbotcast"
  29. spellbotstart
  30. }</value>
  31. </trigger>
  32. </class>
  33. <alias name="spellbotstart" autoappend="true" copy="yes">
  34. <value>#T- regen
  35. #T+ castingon
  36. #RESUME "spellbotcast"
  37. </value>
  38. </alias>
  39. <class name="castingon" copy="yes">
  40. <trigger name="spellbotcast" type="Alarm" priority="10650" copy="yes">
  41. <pattern>@spelldelay</pattern>
  42. <value>#IF (@spellcount &lt; 20) {
  43. #VAR spellcount (@spellcount + 1)
  44. #ALARM "casting" +1
  45. {
  46. botspell
  47. }
  48. } {
  49. practice
  50. #VAR spellcount 0
  51. }</value>
  52. </trigger>
  53. </class>
  54. <alias name="spellbotstop" autoappend="true" copy="yes">
  55. <value>#T- castingon</value>
  56. </alias>
  57. <trigger priority="4380" copy="yes">
  58. <pattern>You can't seem to concentrate enough.</pattern>
  59. <value>#T+ regen
  60. #SUSPEND "spellbotcast"
  61. SLEEPBAG</value>
  62. </trigger>
  63. <trigger type="Alarm" priority="3920" copy="yes">
  64. <pattern>-0:06:00</pattern>
  65. <value>#UNT casting
  66. #IF (@spellbotenabled ==1) {
  67. wake
  68. #RESUME "spellbotcast"
  69. spellbotstart
  70. }
  71. </value>
  72. </trigger>
  73. <trigger priority="4680" copy="yes">
  74. <pattern>You have become better at *! ~(100~)</pattern>
  75. <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
  76. #COLOR 644
  77. #CAP Chats
  78. #BEEP</value>
  79. </trigger>
  80. <trigger priority="4680" copy="yes">
  81. <pattern>You learn from your mistakes, and * improves.</pattern>
  82. <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
  83. #CAP Chats</value>
  84. </trigger>
  85. <trigger priority="4680" copy="yes">
  86. <pattern>You have become better at *!</pattern>
  87. <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
  88. #CAP Chats</value>
  89. </trigger>
  90. <trigger priority="4680" copy="yes">
  91. <pattern>You learn from your mistakes, and * improves *~(100~)</pattern>
  92. <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
  93. #COLOR 644
  94. #CAP Chats
  95. #BEEP</value>
  96. </trigger>
  97. <trigger priority="4380" copy="yes">
  98. <pattern>You don't have enough mana.</pattern>
  99. <value>#T+ regen
  100. #SUSPEND "spellbotcast"
  101. #ALARM "spellbotregen" +2 {surge
  102. drink chal
  103. drink chal
  104. SLEEPBAG
  105. }</value>
  106. </trigger>
  107. </class>
  108. <var name="spellcount" type="Integer" usedef="true" copy="yes">
  109. <value>0</value>
  110. <default>0</default>
  111. </var>
  112. <var name="spellbotenabled" usedef="true" copy="yes">
  113. <value>1</value>
  114. <default>0</default>
  115. </var>
  116. <var name="spelldelay" usedef="true" copy="yes">
  117. <value>10</value>
  118. <default>0</default>
  119. </var>
  120. <alias name="spelldelay" copy="yes">
  121. <value>#VAR spelldelay %1</value>
  122. </alias>
  123. </class>
  124. </cmud>
  125.  
Tags: mud cmud ANSALON
Advertisement
Add Comment
Please, Sign In to add comment