Likes: 0
Results 1 to 2 of 2
Thread: Renaming GM Commands
-
07-09-08, 01:26 AM #1
Renaming GM Commands
Register to remove this adThis 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;
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"
Code:&ChatHandler::HandleGMTicketDelByIdCommand, "Deletes GM Ticket by ID"
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~*
› See More: Renaming GM Commands
-
14-02-09, 09:54 PM #2
Register to remove this adyap very simple