How do I add a new command to MQ?

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

gameboy
a lesser mummy
a lesser mummy
Posts: 64
Joined: Fri Nov 08, 2002 12:28 pm

How do I add a new command to MQ?

Post by gameboy » Thu May 08, 2003 11:21 am

I want to add a new command. In TakeControlOfCommandList, I add

{"/mycmd", "myCmd"},

to the szNewCommands array.

I then define my function later down below:

VOID myCmd (PSPAWNINFO pChar, PCHAR szLine)
{
// do stuff
}


What else am I missing? Its doesn't recognize /mycmd when I try it in game. I tried following the example of /beep but there must be more to it.

thanks

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Thu May 08, 2003 1:05 pm

extern "C" EQLIB_API VOID myCmd (PSPAWNINFO, PCHAR);

in mq.h