How to:Custom Gm announcement ranks menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Ezxen's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to:Custom Gm announcement ranks

    You might of seen a server were when the GM did an announcement it said something like "<Superman>Bob broadcast:Hi i own batman" or something like that . Well today ill show you how to do just that on your server.
    example of what im talking about .
    Example 1
    Example 2

    Ok first things first you will need to download the ascent source .There are plenty of guides out there on how to download the ascent source and Ascentemu.com is down or i would link to there wiki page.

    Now after you got the ascent source your going to have to navigate to
    Code:
    foldername/trunk(orXXX stable/src/ascentworld/level1.cpp
    Now open up level1.cpp with your favorite text editor .
    inside you will need to find
    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;
    }
    
    
    bool ChatHandler::HandleWAnnounceCommand(const char* args, WorldSession *m_session)
    {
        if(!*args)
            return false;
    
        char pAnnounce[1024];
        string input2;
    
        input2 = "|cffff6060<";
        if(m_session->CanUseCommand('z')) input2+="Admin";
        else if(m_session->GetPermissionCount()) input2+="GM";
        input2+=">|r|c1f40af20";
        input2+=m_session->GetPlayer()->GetName();
        input2+=":|r ";
        snprintf((char*)pAnnounce, 1024, "%s%s", input2.c_str(), args);
    
        sWorld.SendWorldWideScreenText(pAnnounce); // send message
        sGMLog.writefromsession(m_session, "used wannounce command [%s]", args);
        //sWorld.SendForcedIRCMessage(pAnnounce);
        return true;
    these control what when an announcement is being made.Ok now to change when an announcement is being made jest modify
    Code:
        //if (m_session->GetPermissionCount())   input2+="GM";
        if(m_session->CanUseCommand('z')) input2+="Admin";
        else if(m_session->GetPermissionCount()) input2+="GM";
    to
    Code:
        //if (m_session->GetPermissionCount())   input2+="GM";
        if(m_session->CanUseCommand('z')) input2+="XXXXX";
        else if(m_session->GetPermissionCount()) input2+="XXXX";
    You could even change
    Code:
      if(m_session->CanUseCommand('z'))
    to allow GM with ' a' command to use the <Admin> title or what ever title you want.

    Code:
      if(m_session->CanUseCommand('a'))
    after you edited the fields to what you desire save it and compile ascent normally .At the moment im also working on how to change what title it gives when talking in chant channels .
    Last edited by Ezxen; 08-18-2009 at 02:52 PM.

    How to:Custom Gm announcement ranks
  2. #2
    Kyoshero's Avatar Member
    Reputation
    2
    Join Date
    Feb 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NICE Guilde

  3. #3
    nbhfam's Avatar Member
    Reputation
    5
    Join Date
    Feb 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow great !!

Similar Threads

  1. [Help] How to make server announcements
    By Agent Orange in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 01-23-2009, 09:08 AM
  2. [Tutorial: How to customize NPC Talk Texts]
    By Syrup in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 09-25-2008, 08:29 PM
  3. .:Wowwo's World:. [2.4.3] - Custom PvP Announcer | Scripted Inst. +++
    By Mikmas in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 07-21-2008, 02:43 PM
  4. Replies: 0
    Last Post: 06-18-2008, 11:14 AM
  5. [Release] Custom GM/Donor Ranks! (Command_Overrides)
    By MisterEMU in forum World of Warcraft Emulator Servers
    Replies: 21
    Last Post: 05-18-2008, 03:50 PM
All times are GMT -5. The time now is 11:19 AM. 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