--> Player-Help Command -->
Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 6 of 6
--> -->

Threaded View

-->
  1. #1
    Scout

    Join Date
    Sep 2008
    Posts
    7
    Post Thanks / Like
    Rep Power
    17
    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 11:17 AM.



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

 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 07:36 AM.
Powered by vBulletin® Copyright ©2000-2025, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org
-->