About MSG_GMACTION

Results 1 to 9 of 9
  1. #1
    Job Accomplished! locolijo is offline
    Grand MasterRank
    Jul 2006 Join Date
    Inside a ServerLocation
    546Posts

    About MSG_GMACTION

    I see that some codes comes with MSG_GMACTION.. Well I want to know if removing the line below from the codes will cause the commands to dont work..
    Code:
    Log( MSG_GMACTION, " %s : /weapon %i %i %i" , thisclient->charname , (int)itemid, itemrefine, itemsocket);
    Would the command work if the line above is removed?


    Thank you.


  2. #2
    Elite Member AridTag is offline
    Member +Rank
    Sep 2006 Join Date
    101Posts
    The command would still work if that wasnt there.

  3. #3
    Job Accomplished! locolijo is offline
    Grand MasterRank
    Jul 2006 Join Date
    Inside a ServerLocation
    546Posts
    Thanks, Thats what I though :)

  4. #4
    Sorcerer Supreme Caali is offline
    Member +Rank
    Sep 2006 Join Date
    263Posts
    FYI, this is a line i have at all my gm commands, it'll log every gm action to a .log file and to the server log. so i can prevent abuse gms :)

  5. #5
    Job Accomplished! locolijo is offline
    Grand MasterRank
    Jul 2006 Join Date
    Inside a ServerLocation
    546Posts
    Quote Originally Posted by Caali View Post
    FYI, this is a line i have at all my gm commands, it'll log every gm action to a .log file and to the server log. so i can prevent abuse gms :)
    Yeah thats a good idea.

    But since I dont have it at the moment there is no other way to fix it. I guess :scratch:

  6. #6
    Grand Master rl2171 is offline
    Grand MasterRank
    Aug 2006 Join Date
    USALocation
    659Posts
    Quote Originally Posted by locolijo View Post
    Yeah thats a good idea.

    But since I dont have it at the moment there is no other way to fix it. I guess :scratch:

    Here you go, this will allow the logging to work properly:

    Add GM Logging of Commands Used:

    In Log.cpp

    Find:

    Code:
    textcolor(LIGHTMAGENTA);
    printf("[SQL]: ");
    break;
    case MSG_INFO: 
    textcolor(LIGHTGREEN);
    printf("[INFO]: ");
    break;
    After Add:

    Code:
    case MSG_GMACTION: 
    textcolor(MAGENTA);
    printf("[GM-COMMAND]: ");
    break;


    ******************

    In Log.h


    Find:

    Code:
    MSG_INFO,
    MSG_NOTICE,
    After Add:

    Code:
    MSG_GMACTION,

  7. #7
    Job Accomplished! locolijo is offline
    Grand MasterRank
    Jul 2006 Join Date
    Inside a ServerLocation
    546Posts
    Wow. Thank you so much rl2171.

  8. #8
    Grand Master rl2171 is offline
    Grand MasterRank
    Aug 2006 Join Date
    USALocation
    659Posts
    Quote Originally Posted by locolijo View Post
    Wow. Thank you so much rl2171.
    No problem, I like the ability of seeing what the other GM's are doing on the server level. Caali pointed me the right direction, so I did it from there.


    Rob

  9. #9
    Job Accomplished! locolijo is offline
    Grand MasterRank
    Jul 2006 Join Date
    Inside a ServerLocation
    546Posts
    Quote Originally Posted by rl2171 View Post
    No problem, I like the ability of seeing what the other GM's are doing on the server level. Caali pointed me the right direction, so I did it from there.


    Rob
    Thats good to know what they are doing hahahha.



Advertisement