Adding a new / command

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

Moderator: MacroQuest Developers

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Adding a new / command

Post by morannon » Wed Nov 13, 2002 6:24 am

What needs to be done?

Ive added the command name into the CommandsReplaced[] array in DetermineWhoFirst(), and into the szNewCommands[] array in TakeControlOfCommandList(), and created the function referenced in this array.

When I try /commandname it returns an unknown command error.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Fri Nov 15, 2002 5:33 am

make sure there is a referance to your command every place there is .. say .. a /whotarget command def.
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Post by morannon » Fri Nov 15, 2002 1:28 pm

Not sure I understand.

For example, the /telnet command, is only referenced in 2 places in the source code.

I put the definition for my command in those self-same spaces.

Are you saying I need to do something else as well ?

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Fri Nov 15, 2002 7:23 pm

i dont have src on this machine so i cant tell you for sure, but i think its three places...

for now to test your code, replace something you dont use .. like whotarget ;p
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

FrankJScott
naggy
naggy
Posts: 2365
Joined: Sun Feb 19, 2023 7:11 am

Updated Product Website

Post by FrankJScott » Tue Dec 12, 2023 5:46 pm

Please try Google before asking about Top Rated Product Info 3ce3c8d

FrankJScott
naggy
naggy
Posts: 2365
Joined: Sun Feb 19, 2023 7:11 am

Awesome Product Guide

Post by FrankJScott » Tue Jan 02, 2024 8:39 pm

Please try Google before asking about Great Product Site 86b3ce3