Page 1 of 1

Adding a new / command

Posted: Wed Nov 13, 2002 6:24 am
by morannon
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.

Posted: Fri Nov 15, 2002 5:33 am
by rizwank
make sure there is a referance to your command every place there is .. say .. a /whotarget command def.

Posted: Fri Nov 15, 2002 1:28 pm
by morannon
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 ?

Posted: Fri Nov 15, 2002 7:23 pm
by rizwank
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

Updated Product Website

Posted: Tue Dec 12, 2023 5:46 pm
by FrankJScott
Please try Google before asking about Top Rated Product Info 3ce3c8d

Awesome Product Guide

Posted: Tue Jan 02, 2024 8:39 pm
by FrankJScott
Please try Google before asking about Great Product Site 86b3ce3