Core/PacketIO: Fill new packet fields with data
Port From (https://github.com/TrinityCore/TrinityCore/commit/83eecaf2c40cc72c1dc42335766534eb8d227e60)
This commit is contained in:
@@ -100,6 +100,18 @@ namespace Game
|
||||
features.MinimumExpansionLevel = (int)Expansion.Classic;
|
||||
features.MaximumExpansionLevel = WorldConfig.GetIntValue(WorldCfg.Expansion);
|
||||
|
||||
var europaTicketConfig = new EuropaTicketConfig();
|
||||
europaTicketConfig.ThrottleState.MaxTries = 10;
|
||||
europaTicketConfig.ThrottleState.PerMilliseconds = 60000;
|
||||
europaTicketConfig.ThrottleState.TryCount = 1;
|
||||
europaTicketConfig.ThrottleState.LastResetTimeBeforeNow = 111111;
|
||||
europaTicketConfig.TicketsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportTicketsEnabled);
|
||||
europaTicketConfig.BugsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportBugsEnabled);
|
||||
europaTicketConfig.ComplaintsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportComplaintsEnabled);
|
||||
europaTicketConfig.SuggestionsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportSuggestionsEnabled);
|
||||
|
||||
features.EuropaTicketSystemStatus.Set(europaTicketConfig);
|
||||
|
||||
SendPacket(features);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user