Page 1 of 1

CoH Bot

Posted: Fri Jun 11, 2004 4:45 pm
by murghkhor
Can someone help write a macro for a CoH bot.

Mage is placed somewhere in the zone. When someone sends him a tell with a certain word in it <password> the mage targets the person, sends him a grp invite, if someone joins the grp the mage cohs him and disbands him after CoH.

Posted: Fri Jun 11, 2004 4:57 pm
by Onezero
This is a good idea, but cross-zone targeting is bad, and what the fuck are the people gonna think when the mage invites them from 5000 feet away?

Posted: Fri Jun 11, 2004 5:20 pm
by desnts
if people dont already know that cross zone targeting is out there and people use it then they are neive (sp?), it seems to me since he wants to use a password protected macro it would be for him and his friends only.

Posted: Sat Jun 12, 2004 10:22 am
by murghkhor
Obviously only people in the know would be aware of the mage as a CoH bot and the BoT would only respond to a password.

Haven't written any customized stuff yet. I just installed MQ2 a few days ago. Going to start dabbling and see what I come up with. Was hoping this was already done somewhere and someone would just link me to it.

Posted: Sat Jun 12, 2004 6:58 pm
by s16z

Code: Select all

#event CotHTell "#1# tells you, '#2#'"
#event Join "#1# has joined your group."

Sub Main
  :loop
    /doevents
    /delay 1s
    /goto :loop
/return

Sub Event_CotHTell(string line, string who, string what)
    /if (${what.Equal[[color=blue]MySecretPassword[/color]]}) {
        /target ${who}
        /delay 1s
        /if (${Target.Name.Equal[${who}]}) {
            /invite
        }
    }
/return

Sub Event_Join(string line, string who)
    /target ${who}
    /delay 1s
    /if (${Target.Name.Equal[${who}]) {
        /cast [color=blue]1[/color]
        /delay 12s
        /disband
    }
/return
Untested and the trigger strings could be wrong, but should give you the general idea. Make sure you change the blue text to whatever you need/want.

Posted: Tue Jun 15, 2004 5:35 am
by murghkhor
Thanks!

Posted: Tue Jun 15, 2004 5:59 am
by Goofmester1
You might want to consider getting spellcast.inc or one of the others like it and making that /cast 1 a /call cast "Call of the Hero" , and add #include spellcast.ini at top. That way any fizzle, intterupt, oom or anything else will be taken care of.