PDA

View Full Version : Renaming GM Commands



Crux
07-09-08, 12:26 AM
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

else if(!strcmp(name, "gmTicket"))
return _GMTicketCommandTable;
Now, I want to scroll down untill I can see this bit of 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.

Note: My guides will no longer be allowed on ******* as I have just joined and will put all my contributions on there. ******* name: *~Descending~*

lesone
14-02-09, 08:54 PM
yap very simple :)