BFA Update (still lots of testing to do tho)
This commit is contained in:
@@ -495,13 +495,6 @@ namespace Game
|
||||
}
|
||||
Values[WorldCfg.CurrencyMaxJusticePoints] = (int)Values[WorldCfg.CurrencyMaxJusticePoints] * 100; //precision mod
|
||||
|
||||
Values[WorldCfg.CurrencyStartArtifactKnowledge] = GetDefaultValue("Currency.StartArtifactKnowledge", 55);
|
||||
if ((int)(Values[WorldCfg.CurrencyStartArtifactKnowledge]) < 0)
|
||||
{
|
||||
Log.outError(LogFilter.ServerLoading, "Currency.StartArtifactKnowledge ({0}) must be >= 0, set to default 0.", Values[WorldCfg.CurrencyStartArtifactKnowledge]);
|
||||
Values[WorldCfg.CurrencyStartArtifactKnowledge] = 0;
|
||||
}
|
||||
|
||||
Values[WorldCfg.MaxRecruitAFriendBonusPlayerLevel] = GetDefaultValue("RecruitAFriend.MaxLevel", 85);
|
||||
if ((int)Values[WorldCfg.MaxRecruitAFriendBonusPlayerLevel] > (int)Values[WorldCfg.MaxPlayerLevel])
|
||||
{
|
||||
@@ -617,9 +610,9 @@ namespace Game
|
||||
else
|
||||
Values[WorldCfg.Expansion] = GetDefaultValue("Expansion", Expansion.WarlordsOfDraenor);
|
||||
|
||||
Values[WorldCfg.ChatfloodMessageCount] = GetDefaultValue("ChatFlood.MessageCount", 10);
|
||||
Values[WorldCfg.ChatfloodMessageDelay] = GetDefaultValue("ChatFlood.MessageDelay", 1);
|
||||
Values[WorldCfg.ChatfloodMuteTime] = GetDefaultValue("ChatFlood.MuteTime", 10);
|
||||
Values[WorldCfg.ChatFloodMessageCount] = GetDefaultValue("ChatFlood.MessageCount", 10);
|
||||
Values[WorldCfg.ChatFloodMessageDelay] = GetDefaultValue("ChatFlood.MessageDelay", 1);
|
||||
Values[WorldCfg.ChatFloodMuteTime] = GetDefaultValue("ChatFlood.MuteTime", 10);
|
||||
|
||||
Values[WorldCfg.EventAnnounce] = GetDefaultValue("Event.Announce", false);
|
||||
|
||||
@@ -914,6 +907,9 @@ namespace Game
|
||||
// prevent character rename on character customization
|
||||
Values[WorldCfg.PreventRenameCustomization] = GetDefaultValue("PreventRenameCharacterOnCustomization", false);
|
||||
|
||||
// Allow 5-man parties to use raid warnings
|
||||
Values[WorldCfg.ChatPartyRaidWarnings] = GetDefaultValue("PartyRaidWarnings", false);
|
||||
|
||||
// Check Invalid Position
|
||||
Values[WorldCfg.CreatureCheckInvalidPostion] = GetDefaultValue("Creature.CheckInvalidPosition", false);
|
||||
Values[WorldCfg.GameobjectCheckInvalidPostion] = GetDefaultValue("GameObject.CheckInvalidPosition", false);
|
||||
@@ -933,6 +929,11 @@ namespace Game
|
||||
return Convert.ToInt32(Values.LookupByKey(confi));
|
||||
}
|
||||
|
||||
public static ulong GetUInt64Value(WorldCfg confi)
|
||||
{
|
||||
return Convert.ToUInt64(Values.LookupByKey(confi));
|
||||
}
|
||||
|
||||
public static bool GetBoolValue(WorldCfg confi)
|
||||
{
|
||||
return Convert.ToBoolean(Values.LookupByKey(confi));
|
||||
|
||||
@@ -341,6 +341,9 @@ namespace Game
|
||||
// Load DB2s
|
||||
CliDB.LoadStores(_dataPath, m_defaultDbcLocale);
|
||||
|
||||
Log.outInfo(LogFilter.ServerLoading, "Loading hotfix blobs...");
|
||||
Global.DB2Mgr.LoadHotfixBlob();
|
||||
|
||||
Log.outInfo(LogFilter.ServerLoading, "Loading hotfix info...");
|
||||
Global.DB2Mgr.LoadHotfixData();
|
||||
|
||||
@@ -2235,6 +2238,14 @@ namespace Game
|
||||
_characterInfoStorage[guid].Level = level;
|
||||
}
|
||||
|
||||
public void UpdateCharacterInfoAccount(ObjectGuid guid, uint accountId)
|
||||
{
|
||||
if (!_characterInfoStorage.ContainsKey(guid))
|
||||
return;
|
||||
|
||||
_characterInfoStorage[guid].AccountId = accountId;
|
||||
}
|
||||
|
||||
public void UpdateCharacterInfoDeleted(ObjectGuid guid, bool deleted, string name = null)
|
||||
{
|
||||
if (!_characterInfoStorage.ContainsKey(guid))
|
||||
|
||||
@@ -164,9 +164,9 @@ namespace Game
|
||||
for (int j = InventorySlots.BuyBackStart; j < InventorySlots.BuyBackEnd; ++j)
|
||||
{
|
||||
int eslot = j - InventorySlots.BuyBackStart;
|
||||
_player.SetGuidValue(PlayerFields.InvSlotHead + (j * 4), ObjectGuid.Empty);
|
||||
_player.SetUInt32Value(PlayerFields.BuyBackPrice1 + eslot, 0);
|
||||
_player.SetUInt32Value(PlayerFields.BuyBackTimestamp1 + eslot, 0);
|
||||
_player.SetGuidValue(ActivePlayerFields.InvSlotHead + (j * 4), ObjectGuid.Empty);
|
||||
_player.SetUInt32Value(ActivePlayerFields.BuyBackPrice + eslot, 0);
|
||||
_player.SetUInt32Value(ActivePlayerFields.BuyBackTimestamp + eslot, 0);
|
||||
}
|
||||
_player.SaveToDB();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user