Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1" ?>
- <cmud>
- <class name="SpellBotCore" copy="yes">
- <alias name="spellbotoff" autoappend="true" copy="yes">
- <value>#T- castingon
- #T- Regen
- #T- spellbot
- #VAR spellbotenabled 0
- #UNT casting</value>
- </alias>
- <alias name="spellboton" autoappend="true" copy="yes">
- <value>#T+ spellbot
- #VAR spellbotenabled 1
- #SAY Spellbot on. Alias BOTSPELL to 'CAST "spell name"' Use SpellbotStart to initiate.
- #SAY You can adjust the delay between casts by typing spelldelay #.
- #SAY E.g., SPELLDELAY 5 would have 5 seconds between casts.
- #SAY Set this number to be just slightly longer than the lag on the spell to avoid D/Cs.</value>
- </alias>
- <class name="spellbot" copy="yes">
- <class name="Regen" enabled="false" copy="yes">
- <trigger priority="5417300" copy="yes">
- <pattern>-0:01:00</pattern>
- <value>#IF (%eval((@MANA * 100)/@MANA_MAX) > 90) {
- #SUSPEND "spellsurge"
- wake
- #T- regen
- save
- #RESUME "spellbotcast"
- spellbotstart
- }</value>
- </trigger>
- </class>
- <alias name="spellbotstart" autoappend="true" copy="yes">
- <value>#T- regen
- #T+ castingon
- #RESUME "spellbotcast"
- </value>
- </alias>
- <class name="castingon" copy="yes">
- <trigger name="spellbotcast" type="Alarm" priority="10650" copy="yes">
- <pattern>@spelldelay</pattern>
- <value>#IF (@spellcount < 20) {
- #VAR spellcount (@spellcount + 1)
- #ALARM "casting" +1
- {
- botspell
- }
- } {
- practice
- #VAR spellcount 0
- }</value>
- </trigger>
- </class>
- <alias name="spellbotstop" autoappend="true" copy="yes">
- <value>#T- castingon</value>
- </alias>
- <trigger priority="4380" copy="yes">
- <pattern>You can't seem to concentrate enough.</pattern>
- <value>#T+ regen
- #SUSPEND "spellbotcast"
- SLEEPBAG</value>
- </trigger>
- <trigger type="Alarm" priority="3920" copy="yes">
- <pattern>-0:06:00</pattern>
- <value>#UNT casting
- #IF (@spellbotenabled ==1) {
- wake
- #RESUME "spellbotcast"
- spellbotstart
- }
- </value>
- </trigger>
- <trigger priority="4680" copy="yes">
- <pattern>You have become better at *! ~(100~)</pattern>
- <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
- #COLOR 644
- #CAP Chats
- #BEEP</value>
- </trigger>
- <trigger priority="4680" copy="yes">
- <pattern>You learn from your mistakes, and * improves.</pattern>
- <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
- #CAP Chats</value>
- </trigger>
- <trigger priority="4680" copy="yes">
- <pattern>You have become better at *!</pattern>
- <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
- #CAP Chats</value>
- </trigger>
- <trigger priority="4680" copy="yes">
- <pattern>You learn from your mistakes, and * improves *~(100~)</pattern>
- <value>:Chats:#SAYP ~[%time( h:m a/p)m~]
- #COLOR 644
- #CAP Chats
- #BEEP</value>
- </trigger>
- <trigger priority="4380" copy="yes">
- <pattern>You don't have enough mana.</pattern>
- <value>#T+ regen
- #SUSPEND "spellbotcast"
- #ALARM "spellbotregen" +2 {surge
- drink chal
- drink chal
- SLEEPBAG
- }</value>
- </trigger>
- </class>
- <var name="spellcount" type="Integer" usedef="true" copy="yes">
- <value>0</value>
- <default>0</default>
- </var>
- <var name="spellbotenabled" usedef="true" copy="yes">
- <value>1</value>
- <default>0</default>
- </var>
- <var name="spelldelay" usedef="true" copy="yes">
- <value>10</value>
- <default>0</default>
- </var>
- <alias name="spelldelay" copy="yes">
- <value>#VAR spelldelay %1</value>
- </alias>
- </class>
- </cmud>
Advertisement
Add Comment
Please, Sign In to add comment