frst post/macro chanter bot

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

hiipii
a ghoul
a ghoul
Posts: 93
Joined: Sat Jun 19, 2004 5:01 pm

frst post/macro chanter bot

Post by hiipii » Sat Jun 19, 2004 11:32 pm

Hey everyone been using mq for a lil while now and finally got to making my own little macro.

It cntrols your chanter bot from group tells. I use it for 2boxing my friends chanter and it helps a lot. It eliminates much of the need to alt tab between windows which cuts down on the time between casts etc. Read the comment lines fr detail on what it does. Any suggestions on improving the code or adding features are welcome.!

Code: Select all

|Chanter bot control by hiipii
|chbot.mac
|usage /mac chbot
|with the macro running and chanter grouped with your main char
|you will have access to commands activated via group chat
|
|requires spellcast.inc by ml2517 which can be found in the snippets forum
|
|/g <keyword> is the proper syntax for using commands
|slow will cast shiftless deeds (my chanter doesnt have forlorn deeds yet)
|nuke will cast dementing visions
|mez will cast apathy
|blur will cast memory flux
|gate will cast gate
|mana will have the bot display their current mana %
|along with these the bot will always keep Arcane Rune on itself.
|change spell names to suit your spells (my chanter is only 61)


#chat group
#include spellcast.inc

sub main
   /echo Shoc Mac started
   /echo doing shit
   :mainloop
   /doevents
   /call checkrune
   /goto :mainloop
   /return

sub checkrune
   /if (${Me.Buff[Arcane Rune].Duration}<20) /call cast "Arcane Rune"
   /return

Sub Event_Chat(ChatType,Sender,ChatText)
   /if (${ChatText.Equal[slow]}) {
      /assist ${Sender}
      /delay 1s 
      /g slowing
      /delay 1s 
      /call cast "Shiftless Deeds"
      /g mana = ${Me.PctMana} 
      /sit
       }

   /if (${ChatText.Equal[nuke]}) {
      /assist ${Sender}
      /delay 1s
      /g nukage!
      /delay 1s
      /call cast "Dementing Visions"
      /g mana = ${Me.PctMana}
      /sit
       }

   /if (${ChatText.Equal[mana]}) {
      /g ${Me.PctMana}
       }

   /if (${ChatText.Equal[gate]}) {
      /call cast "Gate"
       }

   /if (${ChatText.Equal[mez]}) {
      /assist ${Sender}
      /delay 1s
      /g mezzing
      /call cast "Apathy"
      /g mana = ${Me.PctMana}
       }

   /if (${ChatText.Equal[grm]}) {
      /target ${Sender}
      /delay 1s
      /call cast "Group Resist Magic"
      /g mana = ${Me.PctMana}
      /sit
       }

   /if (${ChatText.Equal[kei]}) {
      /target ${Me}
      /delay 1s
      /call cast "Koadic's Endless Intellect"
      /g mana = ${Me.PctMana}
      /sit
       }

   /if (${ChatText.Equal[blur]}) {
      /assist ${Sender}
      /delay 1s
      /g blurrin
      /call cast "Memory Flux"
      /sit
       }
      
   /return
Last edited by hiipii on Sun Jun 20, 2004 12:19 am, edited 1 time in total.

Azum
a hill giant
a hill giant
Posts: 229
Joined: Wed Jun 04, 2003 5:04 am

Post by Azum » Sat Jun 19, 2004 11:47 pm

You might wanna remove your character's name from event_slownow

hiipii
a ghoul
a ghoul
Posts: 93
Joined: Sat Jun 19, 2004 5:01 pm

Post by hiipii » Sun Jun 20, 2004 12:26 am

thanks...guess i forgot to take some stuff out from my original ideas