[C++ Release] Gamemaster Message of the day menu

User Tag List

Results 1 to 14 of 14
  1. #1
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++ Release] Gamemaster Message of the day

    I wrote a script for arcemu but probably works with other emus as well im betting
    what it does is after you compile it uses the MainConfig File to allow you to easily edit the message and decide whether you want it turned on or off

    [GMMotd.cpp]
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    
    
    void GMMotd(Player * pPlayer)
    {
    	if(pPlayer->GetSession()->HasGMPermissions())
    	{	
    			pPlayer->BroadcastMessage((Config.MainConfig.GetStringDefault("Custom", "GMMotd", "Welcome to [Server Name]").c_str()));
    	}
    };
    
    void SetupGameMasterMotd(ScriptMgr * mgr)
    {
    	mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, &GMMotd);
    }
    [Setup.cpp]
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
    	return SCRIPT_TYPE_MISC;
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    	if(Config.MainConfig.GetBoolDefault("Custom", "GMMotdActivated", false))
    	{
    		SetupGameMasterMotd(mgr);
    	}	
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
    	return TRUE;
    }
    
    #endif
    [Setup.h]
    Code:
    void SetupGameMasterMotd(ScriptMgr * mgr);
    [Add This into your Arcemu-World.conf] or what ever you have
    Code:
    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    # Custom Settings
    #
    #	GMMotd
    #		This is a GM Message of the day works the same 
    #		exact way as a normal Motd - Mager1794
    #
    #		Default: "No Game Master Motd Specified"
    #
    #	GMMotd Activated
    #		Set to 1 to turn on Game master message of the day
    #
    #		Default: "0"
    #
    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    
    <Custom GMMotd="No Game Master Motd Specified" GMMotdActivated="1">
    that should be all of it
    well feel free to comment how ever you feel like
    Last edited by mager1794; 08-10-2008 at 02:36 PM.
    Lunar Gaming - Reaching For The Stars

    [C++ Release] Gamemaster Message of the day
  2. #2
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I Think this should be added with ArcEMU. Who would have thought... am i right? This is 10x better than forum, MSN or any other way to contact your GMs for important news. Nice work... Would rep but i can't..



  3. #3
    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)
    You sir make the most epic things
    If you need me you have my skype, if you don't have my skype then you don't need me.

  4. #4
    welshy123'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)
    i was woundering if some one could help me out to get this to work with a MaNGOS Server compared to a Ascent ?

  5. #5
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mager, i will gives you rep once i can give it to you.



  6. #6
    Lets See2's Avatar Banned
    Reputation
    8
    Join Date
    Oct 2007
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol How Do You Use These?

  7. #7
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You compile Ascent/ArcEMU with these... Im not linking a guide because you leechers can look..



  8. #8
    FinnZor's Avatar Member
    Reputation
    50
    Join Date
    May 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks allot i´ll try this :P +rep x1 if i can

  9. #9
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Extremely epic! I am so glad I made you a Database Evolved Developer. <3
    +3Rep

  10. #10
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Keep up the good job. Let's see if I can rep you more..

  11. #11
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks spidey : ) is AspireDev still up and running good??? havn't seen many updates in the SVN
    Lunar Gaming - Reaching For The Stars

  12. #12
    sniped910's Avatar Member
    Reputation
    4
    Join Date
    Apr 2008
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!, + Rep

  13. #13
    Shao111's Avatar Active Member
    Reputation
    33
    Join Date
    Jul 2007
    Posts
    281
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice stuff, +Rep


  14. #14
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks A LOT.. really nice! +rep !!!
    [/COLOR]

Similar Threads

  1. [Release] Ebon's Inside the Dalaran Dome Party!
    By Ebon in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-01-2008, 09:30 PM
  2. Send a message to the Other Side
    By Kiloch in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 01-22-2008, 09:52 PM
  3. Private server screenshot of the day LOL
    By tumadre in forum World of Warcraft Exploration
    Replies: 22
    Last Post: 12-28-2007, 04:50 PM
  4. [Lame] Tip of the Day
    By Slacker in forum World of Warcraft General
    Replies: 11
    Last Post: 11-12-2007, 05:04 AM
  5. Guide to extra gold at the end of the day
    By Matt in forum World of Warcraft Guides
    Replies: 1
    Last Post: 11-08-2006, 10:28 PM
All times are GMT -5. The time now is 01:31 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