Generic command event

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Maestro
orc pawn
orc pawn
Posts: 12
Joined: Fri Jan 16, 2004 12:53 am

Generic command event

Post by Maestro » Thu Jun 10, 2004 2:59 pm

I am trying to make a command for my bot that just has them do whatever command I tell them. I made an event, and it's triggering, but MQ2 won't parse the command.

Code: Select all

#event Generic "#*#I need you to #1#"

Sub Event_Generic(ignore,command)
${command}
/return

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Thu Jun 10, 2004 3:26 pm

#chat group/tell
Smokey the Lax says only you can prevent reproduction.

Maestro
orc pawn
orc pawn
Posts: 12
Joined: Fri Jan 16, 2004 12:53 am

Post by Maestro » Thu Jun 10, 2004 3:49 pm

Doesn't that just change what channels the event looks in? #chat isn't in either manual I have, except as part of the description of #event. (.chm and the online one)

The event triggers fine, but if doesn't like me having that ${Generic} all on its own.

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Thu Jun 10, 2004 4:17 pm

hmm cant recall if there is a /docommand
Smokey the Lax says only you can prevent reproduction.

Marze
a lesser mummy
a lesser mummy
Posts: 60
Joined: Wed Apr 14, 2004 12:08 pm

Re: Generic command event

Post by Marze » Thu Jun 10, 2004 7:13 pm

Code: Select all

#Event Generic "#1#I need you to #2#"

Sub Main
  :Loop
   /doevents
   /goto :Loop
   /return

Sub Event_Generic(string Ignore, string Command)
   /docommand ${Command}
  /return