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 | |
---|
6 | const uint32 SI_SILITHYST_FLAG_GO_SPELL = 29518; |
---|
7 | |
---|
8 | const uint32 SI_SILITHYST_FLAG = 29519; |
---|
9 | |
---|
10 | const uint32 SI_TRACES_OF_SILITHYST = 29534; |
---|
11 | |
---|
12 | const uint32 SI_CENARION_FAVOR = 30754; |
---|
13 | |
---|
14 | const uint32 SI_MAX_RESOURCES = 200; |
---|
15 | |
---|
16 | const uint32 OutdoorPvPSIBuffZonesNum = 3; |
---|
17 | |
---|
18 | const uint32 OutdoorPvPSIBuffZones[OutdoorPvPSIBuffZonesNum] = { 1377, 3428, 3429 }; |
---|
19 | |
---|
20 | const uint32 SI_AREATRIGGER_H = 4168; |
---|
21 | |
---|
22 | const uint32 SI_AREATRIGGER_A = 4162; |
---|
23 | |
---|
24 | const uint32 SI_TURNIN_QUEST_CM_A = 17090; |
---|
25 | |
---|
26 | const uint32 SI_TURNIN_QUEST_CM_H = 18199; |
---|
27 | |
---|
28 | const uint32 SI_SILITHYST_MOUND = 181597; |
---|
29 | |
---|
30 | enum SI_WorldStates{ |
---|
31 | SI_GATHERED_A = 2313, |
---|
32 | SI_GATHERED_H = 2314, |
---|
33 | SI_SILITHYST_MAX = 2317 |
---|
34 | }; |
---|
35 | |
---|
36 | class OutdoorPvPSI : public OutdoorPvP |
---|
37 | { |
---|
38 | public: |
---|
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(); |
---|
51 | private: |
---|
52 | uint32 m_Gathered_A; |
---|
53 | uint32 m_Gathered_H; |
---|
54 | uint32 m_LastController; |
---|
55 | }; |
---|
56 | |
---|
57 | #endif |
---|