text: /*
   * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
   *
   * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
   *
   * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
   *
   * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
   * 
   * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
   */
  
  /* ScriptData
  Name: Example_Commandscript
  %Complete: 100
  Comment: Short custom scripting example
  Category: Script Examples
  EndScriptData */
  
  #include "ScriptPCH.h"
  #include "Chat.h"
  
  // **** This script is designed as an example for others to build on ****
  // **** Please modify whatever you'd like to as this script is only for developement ****
  
  // **** Script Info ****
  // This script's primary purpose is to show just how much you can really do with commandscripts
  
  class example_commandscript : public CommandScript
  {
      public:
          example_commandscript() : CommandScript("example_commandscript") { }
  
          static bool HandleHelloWorldCommand(ChatHandler* handler, const char* /*args*/)
          {
              handler->PSendSysMessage("Hello World");
              return true;
          }
  
          ChatCommand* GetCommands() const
          {
              static ChatCommand HelloWorldCommandTable[] =
              {
                  { "hello",          SEC_PLAYER,         true,   &HandleHelloWorldCommand,        "", NULL },
                  { NULL,             0,                  false,  NULL,                            "", NULL }
              };
              return HelloWorldCommandTable;
          }
  };
  
  void AddSC_example_commandscript()
  {
      new example_commandscript();
  }