root/trunk/src/game/OutdoorPvPSI.h @ 100

Revision 44, 1.4 kB (checked in by yumileroy, 17 years ago)

[svn] * Merge Temp dev SVN with Assembla.
* Changes include:

  • Implementation of w12x's Outdoor PvP and Game Event Systems.
  • Temporary removal of IRC Chat Bot (until infinite loop when disabled is fixed).
  • All mangos -> trinity (to convert your mangos_string table, please run mangos_string_to_trinity_string.sql).
  • Improved Config cleanup.
  • And many more changes.

Original author: Seline
Date: 2008-10-14 11:57:03-05:00

Line 
1#ifndef OUTDOOR_PVP_SI_
2#define OUTDOOR_PVP_SI_
3
4#include "OutdoorPvP.h"
5
6const uint32 SI_SILITHYST_FLAG_GO_SPELL = 29518;
7
8const uint32 SI_SILITHYST_FLAG = 29519;
9
10const uint32 SI_TRACES_OF_SILITHYST = 29534;
11
12const uint32 SI_CENARION_FAVOR = 30754;
13
14const uint32 SI_MAX_RESOURCES = 200;
15
16const uint32 OutdoorPvPSIBuffZonesNum = 3;
17
18const uint32 OutdoorPvPSIBuffZones[OutdoorPvPSIBuffZonesNum] = { 1377, 3428, 3429 };
19
20const uint32 SI_AREATRIGGER_H = 4168;
21
22const uint32 SI_AREATRIGGER_A = 4162;
23
24const uint32 SI_TURNIN_QUEST_CM_A = 17090;
25
26const uint32 SI_TURNIN_QUEST_CM_H = 18199;
27
28const uint32 SI_SILITHYST_MOUND = 181597;
29
30enum SI_WorldStates{
31    SI_GATHERED_A = 2313,
32    SI_GATHERED_H = 2314,
33    SI_SILITHYST_MAX = 2317
34};
35
36class OutdoorPvPSI : public OutdoorPvP
37{
38public:
39    OutdoorPvPSI();
40    bool SetupOutdoorPvP();
41    void HandlePlayerEnterZone(Player *plr, uint32 zone);
42    void HandlePlayerLeaveZone(Player *plr, uint32 zone);
43    bool Update(uint32 diff);
44    void FillInitialWorldStates(WorldPacket &data);
45    void SendRemoveWorldStates(Player * plr);
46    bool HandleAreaTrigger(Player * plr, uint32 trigger);
47    bool HandleDropFlag(Player * plr, uint32 spellId);
48    bool HandleCustomSpell(Player * plr, uint32 spellId, GameObject *go);
49    void BuffTeam(uint32 team);
50    void UpdateWorldState();
51private:
52    uint32 m_Gathered_A;
53    uint32 m_Gathered_H;
54    uint32 m_LastController;
55};
56
57#endif
Note: See TracBrowser for help on using the browser.