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/BattleGround.h

    r44 r50  
    9696    RESPAWN_ONE_DAY                 = 86400,                // secs 
    9797    RESPAWN_IMMEDIATELY             = 0,                    // secs 
    98     BUFF_RESPAWN_TIME               = 180,                  // secs 
    99     BG_HONOR_SCORE_TICKS            = 330                   // points 
     98    BUFF_RESPAWN_TIME               = 180                  // secs 
    10099}; 
    101100 
     
    240239}; 
    241240 
     241enum BGHonorMode 
     242{ 
     243    BG_NORMAL = 0, 
     244    BG_HOLIDAY, 
     245    BG_HONOR_MODE_NUM 
     246}; 
     247 
    242248/* 
    243249This class is used to: 
     
    433439 
    434440        void HandleTriggerBuff(uint64 const& go_guid); 
     441        void SetHoliday(bool is_holiday); 
    435442 
    436443        // TODO: make this protected: 
     
    480487        bool   m_BuffChange; 
    481488 
     489        BGHonorMode m_HonorMode; 
    482490    private: 
    483491        /* Battleground */