Advertisement
Guest User

Custom Script

a guest
Jan 31st, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2. #include "Battleground.h"
  3.  
  4. class FastArenaCrystal : public GameObjectScript
  5. {
  6. public:
  7.  
  8. FastArenaCrystal()
  9. : GameObjectScript("FastArenaCrystal")
  10. {
  11. }
  12.  
  13. bool OnGossipHello(Player* player, GameObject* go)
  14. {
  15. if (Battleground *bg = player->GetBattleground())
  16. if (bg->isArena())
  17. ChatHandler(player->GetSession()).PSendSysMessage("Players clicked: %u", bg->ClickFastStart(player, go));
  18.  
  19. return false;
  20. }
  21. };
  22.  
  23. void AddSC_fast_arena_start()
  24. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement