This is very simple, even a hasbro can do it.(FYI im using Ascent as this example) First what you need to do is go into Chat.cpp. Now for an example im going to be modifying this
Code:
else if(!strcmp(name, "gmTicket"))
return _GMTicketCommandTable;
Now, I want to scroll down untill I can see this bit of code
Code:
static ChatCommand GMTicketCommandTable[] =
{
{ "get", 'c', &ChatHandler::HandleGMTicketGetAllCommand, "Gets GM Ticket", NULL, 0, 0, 0},
{ "getId", 'c', &ChatHandler::HandleGMTicketGetByIdCommand, "Gets GM Ticket by ID", NULL, 0, 0, 0},
{ "delId", 'c', &ChatHandler::HandleGMTicketDelByIdCommand, "Deletes GM Ticket by ID", NULL, 0, 0, 0},
{ NULL, 0, NULL, "", NULL, 0, 0 }
};
dupe_command_table(GMTicketCommandTable, _GMTicketCommandTable);
WoW.. what a handful, now im going to be changing 3 things "get" "getid" "delId" they are just the things that you type in game for GmTickets.
Now im going to change "get" to "getTicket"
Then im going to change "getId" to "getTicketId"
And finally I will change "delId" to "delTicketId"
&ChatHandler::HandleGMTicketDelByIdCommand, "Deletes GM Ticket by ID"
Now, all the things in red you may not change, but the others you keep the same, the " " will say Deletes GM tckets by ID next to the command.
You may also make custom commands like .morphall may release a guide later on how to do that.
Original post: http://www.***********/forums/c-modu...-commands.html You are free to post this guide anywhere with the correct credits intact.
Please post any suggestions/comments/questions in this thread.
And yes, I am the original writer of those other guides in the c++ section Understand Custom commands + Boss scripts.