CoH Bot

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

murghkhor
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Jun 11, 2004 4:38 pm

CoH Bot

Post by murghkhor » Fri Jun 11, 2004 4:45 pm

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.

Onezero
a ghoul
a ghoul
Posts: 95
Joined: Thu Jan 01, 2004 1:19 pm
Location: Normal, IL
Contact:

Post by Onezero » Fri Jun 11, 2004 4:57 pm

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?
.[b].[/b]:[b]:[/b] Onezero
"[i]Health is merely the slowest rate at which you can die.[/i]"

desnts
RTFM, then ask again
Posts: 58
Joined: Wed Apr 30, 2003 4:40 pm

Post by desnts » Fri Jun 11, 2004 5:20 pm

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.

murghkhor
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Jun 11, 2004 4:38 pm

Post by murghkhor » Sat Jun 12, 2004 10:22 am

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.

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Sat Jun 12, 2004 6:58 pm

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.

murghkhor
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Jun 11, 2004 4:38 pm

Post by murghkhor » Tue Jun 15, 2004 5:35 am

Thanks!

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Tue Jun 15, 2004 5:59 am

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.