Page 1 of 1

How do I add a new command to MQ?

Posted: Thu May 08, 2003 11:21 am
by gameboy
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

Posted: Thu May 08, 2003 1:05 pm
by dont_know_at_all
extern "C" EQLIB_API VOID myCmd (PSPAWNINFO, PCHAR);

in mq.h