MMOCoin

Likes Likes:  0
Results 1 to 6 of 6

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Scout

    Join Date
    Sep 2008
    Posts
    7
    Post Thanks / Like
    Rep Power
    18
    Reputation
    10

    Exclamation Player-Help Command

    This Will Simply Announce "[Player Name] Needs Gm assistance." When a player types #Help.

    note: You deffrently might want to up the flood control on this one =D.




    PlayerAssistance.cpp:
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    static string food = "#Help";
    
    void PlayerAssistance(Player* plr)
    {
    
      if(Message == help)
        {
           plr->BroadcastMessage("%s Needs Gm Assistance!", plr->GetName()
         }
    
    void SetupPlayerAssistance(ScriptMgr * mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, (void*)PlayerAssistance);
    }
    Setup.h:
    Code:
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
    
    void SetupPlayerAssistance(ScriptMgr * mgr);
    
    #endif
    Not tested. And errors Say. I have to go/sleep >.>

    Edit: Changed to release
    Last edited by StickyIcky; 09-09-08 at 12:17 PM.



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

 

 

Posting Permissions

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