Advertisement
EmuDevs

EmuDevs: TrinityCore - OutdoorPvP Template (Header File)

Aug 7th, 2013
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. /*
  2.     EmuDevs OutdoorPvP Tutorial
  3.     http://emudevs.com
  4.     TrinityCore Tutorial
  5. */
  6. #include "OutdoorPvP.h"
  7. #include "OutdoorPvPMgr.h"
  8.  
  9. const uint32 OutdoorPvPZone[1] = { 3483 };
  10.  
  11. class OutdoorPvPHellFire : public OutdoorPvP
  12. {
  13. public:
  14.     OutdoorPvPHellFire();
  15.    
  16.     bool SetupOutdoorPvP();
  17.  
  18.     /* Handle Join and Leave actions */
  19.     void HandlePlayerEnterZone(Player* player, uint32 zone);
  20.     void HandlePlayerLeaveZone(Player* player, uint32 zone);
  21.  
  22.     void HandleKill(Player* player, Unit* killed);
  23.  
  24.     bool Update(uint32 diff);
  25.  
  26. private:
  27.     uint32 hordeResources;
  28.     uint32 allyResources;
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement