Advertisement
Easelm

[TrinityCore]: Outdoor PvP Borean Tundra Battle ~ By QQrofl

May 6th, 2012
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.56 KB | None | 0 0
  1. /*
  2.         .__      .___.                
  3.         [__)  .    |   _ ._ _ ._ _   .
  4.         [__)\_|    |  (_)[ | )[ | )\_|
  5.             ._|                    ._|
  6.  
  7.             Was for Omni-WoW
  8.             Now: Released - 5/4/2012
  9. */
  10. #ifndef OUTDOOR_PVP_BT_
  11. #define OUTDOOR_PVP_BT_
  12. #include "OutdoorPvP.h"
  13. #include "OutdoorPvPMgr.h"
  14. #include "Chat.h"
  15. using namespace std;
  16.  
  17. #define POINTS_LOSE_ON_NPC_KILL 5
  18. #define WIN_BUFFS 4
  19. #define LOSE_BUFFS 2
  20. const uint32 WinBuffs[WIN_BUFFS] = { 39233, 23948, 53899, 62213 }; // Whoever wins, gets these buffs
  21. const uint32 LoseBuffs[LOSE_BUFFS] = { 23948, 40079}; // Whoever loses, gets this buff.
  22. const uint32 BT_RESOURCES_A = 450;
  23. const uint32 BT_RESOURCES_H = 450;
  24.  
  25. enum Sounds
  26. {
  27.     BT_SOUND_ALLIANCE_GOOD                  = 8173,
  28.     BT_SOUND_HORDE_GOOD                     = 8213,
  29. };
  30.  
  31. enum AllianceNpcs
  32. {
  33.     VALIANCE_KEEP_CANNONEER = 25306,
  34.     VALIANCE_KEEP_DEFENDER = 29617,
  35.     VALIANCE_KEEP_FISHERMAN = 27393,
  36.     VALIANCE_KEEP_FOOTMAN = 25313,
  37.     VALIANCE_KEEP_FOOTMAN_2 = 25253,
  38.     VALIANCE_KEEP_OFFICER = 25759,
  39.     VALIANCE_KEEP_RIFLEMAN = 25311,
  40.     VALIANCE_KEEP_WORKER = 25271,
  41.     DURDAN_THUNDERBEAK = 35131
  42. };
  43.  
  44. enum HordeNpcs
  45. {
  46.     WARSONG_BATTLEGUARD = 51890,
  47.     WARSONG_BATTLEGUARD_2 = 25242,
  48.     WARSONG_CAPTAIN = 25446,
  49.     WARSONG_CARAVAN_GUARD = 25338,
  50.     WARSONG_HONOR_GUARD = 25243,
  51.     WARSONG_MARKSMAN = 25244,
  52.     WARSONG_RECRUITMENT_OFFICER = 25273,
  53.     WARSONG_SCOUT = 25439,
  54.     WARSONG_WIND_RIDER = 25286
  55. };
  56.  
  57. class OutdoorPvPBT : public OutdoorPvP
  58. {
  59.    public:
  60.        /* OutdoorPvPBT Related */
  61.        OutdoorPvPBT();
  62.        bool SetupOutdoorPvP();
  63.  
  64.        /* Handle Player Action */
  65.        void HandlePlayerEnterZone(Player * player, uint32 zone);
  66.        void HandlePlayerLeaveZone(Player * player, uint32 zone);
  67.  
  68.        /* Handle Killer Kill */
  69.        void HandleKill(Player * player, Unit * killed);
  70.  
  71.        /* Handle Randomizer */
  72.        void Randomizer(Player * player);
  73.  
  74.        /* Buffs */
  75.        void HandleBuffs(Player * player, bool loser);
  76.  
  77.        /* Chat */
  78.        void HandleWinMessage(const char * msg);
  79.  
  80.        /* Reset */
  81.        void HandleReset();
  82.  
  83.        /* Rewards */
  84.        void HandleRewards(Player * player, uint32 honororarenapoints, bool honor, bool arena, bool both);
  85.  
  86.        /* Updates */
  87.        bool Update(uint32 diff);
  88.        
  89.        /* Sounds */
  90.        void PlaySounds(bool side);
  91.  
  92.     private:
  93.         uint32 m_ally_gathered;
  94.         uint32 m_horde_gathered;
  95.         uint32 m_LastWin;
  96.         bool IS_ABLE_TO_SHOW_MESSAGE;
  97.         bool IS_RESOURCE_MESSAGE_A;
  98.         bool IS_RESOURCE_MESSAGE_H;
  99.         bool m_FirstLoad;
  100.         int limit_A;
  101.         int limit_H;
  102.         int limit_resources_message_A;
  103.         int limit_resources_message_H;
  104. };
  105. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement