[Guide] Modifying Global Announcement ( Ex: .announce and .wannounce ) menu

User Tag List

Results 1 to 7 of 7
  1. #1
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] Modifying Global Announcement ( Ex: .announce and .wannounce )

    Lesson # 1

    Introduction :

    This is simply , modifying the core to change how the global announcement looks like.I will show you here mostly every single way I know how to modify it , and this are one of my favorite modification's.

    Step 1 :

    First lets get Level1.cpp thats included ( scr/game/level1.cpp )

    #right click it and click on edit.
    # first you will see Announce , which in this case is .announce , and what you see is this.

    Code:
     
    
    bool ChatHandler::HandleAnnounceCommand(const char* args, WorldSession *m_session) { if(!*args) return false; char pAnnounce[1024]; string input2; input2 = "|cffff6060<"; //if (m_session->GetPermissionCount()) input2+="GM"; if(m_session->CanUseCommand('z')) input2+="Admin"; else if(m_session->GetPermissionCount()) input2+="GM"; input2+=">|r|c1f40af20"; input2+=m_session->GetPlayer()->GetName(); input2+="|r|cffffffff broadcasts: |r"; snprintf((char*)pAnnounce, 1024, "%s%s", input2.c_str(), args); // Adds BROADCAST: sWorld.SendWorldText(pAnnounce); // send message sGMLog.writefromsession(m_session, "used announce command, [%s]", args); //sWorld.SendForcedIRCMessage(pAnnounce); return true; }
    Alright let me explain a little bit how this works.

    # Whats in LIGHT BLUE is the color code for C++ , you can change this to any color code you want.

    #Whats in YELLOW are the symbols that appear and after GM for example <GM> , you may also take that out for no symbol to appear , or change it to any symbol.

    #Whats in ORANGE is just a notice to let member know, you may delet this or change it. For example lets say i decide to change it to (NOTICE) , instead of broadcats , (NOTICE) will appear.

    #Whats in PINK you may or delete them depending on what you want.

    #If you delet
    Code:
    if(m_session->CanUseCommand('z')) input2+="Admin";


    #If your an ADMIN of the server , ADMIN before your name wont appear.

    # If you delete
    Code:
    else if(m_session->GetPermissionCount()) input2+="GM";


    #And your a GM of the server , GM wont appear before your name in the message

    #Lets say you also decide to take out
    Code:
    input2+=m_session->GetPlayer()->GetName(); 


    #Your name wont appeare at all in the message.


    ==========================================

    #Lets get to a solution , lets say you delet everything that can be deleted , and change to what you want , but the example bellow will be how i like it to be.

    The message will appear like this in the CHATBOX

    Code:
     (NOTICE) Hi this is just testing



    ===========================================

    .Wannounce is the same way of editing. If you get stuck somewhere you may ask here and I will help.

    Also there is a cool way on just modifying 1 command , so both wannounce and announce appears at same time , so you dont have to do both of them ( saves time )

    If you would like to know about that , than ask I will release it with a guide in this thread.

    Thats all folks , Enjoy

    [Guide] Modifying Global Announcement ( Ex: .announce and .wannounce )
  2. #2
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice dude
    If you need me you have my skype, if you don't have my skype then you don't need me.

  3. #3
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NanoTech View Post
    nice dude
    Hehe Thanks

  4. #4
    Nightstelth's Avatar Member
    Reputation
    4
    Join Date
    Nov 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1 question, Can they whisper you back, if you whisper some one. and would it cause evert gm on the server to read it?

  5. #5
    damian9000z's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awsome if you ask me

  6. #6
    Murlock.'s Avatar Knight-Lieutenant
    Reputation
    86
    Join Date
    Oct 2007
    Posts
    271
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I cant find the .cpp file.. Can you help me? This is amazing if I can get it to work!

  7. #7
    Gamkie's Avatar Banned
    Reputation
    23
    Join Date
    Feb 2008
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AWesome Ascented! +REP!

Similar Threads

  1. Syntax fo announce and wannounce
    By insignia96 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 05-18-2009, 09:34 PM
  2. Replies: 4
    Last Post: 09-12-2008, 04:14 PM
  3. [Guide] Model Editing: For Dummies - Weapons and Shields
    By Krazzee in forum WoW ME Tools & Guides
    Replies: 293
    Last Post: 12-25-2007, 03:42 PM
  4. Replies: 1
    Last Post: 01-22-2007, 10:04 PM
  5. WoW Guide Pack. with LvL, Gold, PvE and more.
    By raamoz in forum World of Warcraft Guides
    Replies: 3
    Last Post: 09-19-2006, 07:07 PM
All times are GMT -5. The time now is 09:00 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search