Show
Ignore:
Timestamp:
11/19/08 13:29:16 (17 years ago)
Author:
yumileroy
Message:

[svn] Enabled game events to change the honor and reputation gaining speed in battlegrounds. This is done by a new table in the world database, game_event_battleground_holiday. Structure is the following:
event - id of the game event
bgflag - bitmask, used to set which battleground(s) give extra honor/reputation when the event is active. To add extra honor on a battleground, use 2 bgTypeId as mask. Multiple battlegrounds can be set by logical 'or' ('|') operation.
You will need database data for the table, please check trinitydatabase.org.

Original author: w12x
Date: 2008-10-17 16:36:07-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/GameEvent.h

    r44 r50  
    119119        void UpdateEventNPCFlags(uint16 event_id); 
    120120        void UpdateEventNPCVendor(uint16 event_id, bool activate); 
     121        void UpdateBattleGroundSettings(); 
    121122        bool CheckOneGameEventConditions(uint16 event_id); 
    122123        void SaveWorldEventStateToDB(uint16 event_id); 
     
    142143        typedef std::pair<uint16 /*event id*/, uint32 /*gossip id*/> EventNPCGossipIdPair; 
    143144        typedef std::map<uint32 /*guid*/, EventNPCGossipIdPair> GuidEventNpcGossipIdMap; 
     145        typedef std::vector<uint32> GameEventBitmask; 
    144146        GameEventQuestMap mGameEventCreatureQuests; 
    145147        GameEventQuestMap mGameEventGameObjectQuests; 
     
    149151        GameEventGuidMap  mGameEventGameobjectGuids; 
    150152        GameEventDataMap  mGameEvent; 
     153        GameEventBitmask  mGameEventBattleGroundHolidays; 
    151154        QuestIdToEventConditionMap mQuestToEventConditions; 
    152155        GameEventNPCFlagMap mGameEventNPCFlags;