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/BattleGroundMgr.cpp

    r44 r50  
    17851785    sWorld.SendWorldText(LANG_ARENA_TESTING, m_ArenaTesting ? "on" : "off"); 
    17861786} 
     1787 
     1788void BattleGroundMgr::SetHolidayWeekends(uint32 mask) 
     1789{ 
     1790    for(uint32 bgtype = 1; bgtype <= 8; ++bgtype) 
     1791    { 
     1792        if(BattleGround * bg = GetBattleGroundTemplate(bgtype)) 
     1793        { 
     1794            bg->SetHoliday(mask & (1 << bgtype)); 
     1795        } 
     1796    } 
     1797}