MMOCoin

Likes Likes:  0
Results 1 to 2 of 2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Grunt

    Join Date
    Aug 2008
    Posts
    41
    Post Thanks / Like
    Rep Power
    18
    Reputation
    41

    Renaming GM Commands

    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"

    Code:
    &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~*







  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Beginner

    Join Date
    Jan 2009
    Posts
    1
    Post Thanks / Like
    Rep Power
    18
    Reputation
    1
    yap very simple

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •