mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Scripts/Misc: Update ScriptPCH content to include most commonly headers
This commit is contained in:
@@ -559,7 +559,7 @@ public:
|
||||
if (faction.Flags.HasFlag(ReputationFlags::Inactive))
|
||||
ss << handler->GetTrinityString(LANG_FACTION_INACTIVE);
|
||||
|
||||
handler->SendSysMessage(ss.str().c_str());
|
||||
handler->SendSysMessage(ss.view());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -38,7 +38,6 @@ EndScriptData */
|
||||
#include "Transport.h"
|
||||
#include "Util.h"
|
||||
#include "WorldSession.h"
|
||||
#include <sstream>
|
||||
|
||||
using namespace Trinity::ChatCommands;
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@ public:
|
||||
"(POW(position_x - {}, 2) + POW(position_y - {}, 2) + POW(position_z - {}, 2)) AS order_ FROM gameobject "
|
||||
"LEFT OUTER JOIN game_event_gameobject on gameobject.guid = game_event_gameobject.guid WHERE map = '{}' {} ORDER BY order_ ASC LIMIT 10",
|
||||
handler->GetSession()->GetPlayer()->GetPositionX(), handler->GetSession()->GetPlayer()->GetPositionY(), handler->GetSession()->GetPlayer()->GetPositionZ(),
|
||||
handler->GetSession()->GetPlayer()->GetMapId(), eventFilter.str());
|
||||
handler->GetSession()->GetPlayer()->GetMapId(), eventFilter.view());
|
||||
}
|
||||
|
||||
if (!result)
|
||||
|
||||
@@ -38,7 +38,6 @@ EndScriptData */
|
||||
#include "Util.h"
|
||||
#include "World.h"
|
||||
#include "WorldSession.h"
|
||||
#include <sstream>
|
||||
|
||||
using namespace Trinity::ChatCommands;
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ EndScriptData */
|
||||
#include "RBAC.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "WorldSession.h"
|
||||
#include <sstream>
|
||||
|
||||
using namespace Trinity::ChatCommands;
|
||||
|
||||
@@ -463,10 +462,9 @@ public:
|
||||
if (!ShouldListAura(aura->GetSpellInfo(), spellId, namePart, handler->GetSessionDbcLocale()))
|
||||
continue;
|
||||
|
||||
std::ostringstream ss_name;
|
||||
ss_name << "|cffffffff|Hspell:" << aura->GetId() << "|h[" << name << "]|h|r";
|
||||
std::string ss_name = Trinity::StringFormat("|cffffffff|Hspell:{}|h[{}]|h|r", aura->GetId(), name);
|
||||
|
||||
handler->PSendSysMessage(LANG_COMMAND_TARGET_AURADETAIL, aura->GetId(), (handler->GetSession() ? ss_name.str().c_str() : name),
|
||||
handler->PSendSysMessage(LANG_COMMAND_TARGET_AURADETAIL, aura->GetId(), (handler->GetSession() ? ss_name.c_str() : name),
|
||||
aurApp->GetEffectMask(), aura->GetCharges(), aura->GetStackAmount(), aurApp->GetSlot(),
|
||||
aura->GetDuration(), aura->GetMaxDuration(), (aura->IsPassive() ? passiveStr : ""),
|
||||
(talent ? talentStr : ""), aura->GetCasterGUID().IsPlayer() ? "player" : "creature",
|
||||
@@ -587,10 +585,9 @@ public:
|
||||
if (handler->GetSession())
|
||||
{
|
||||
uint32 color = ItemQualityColors[itemTemplate->GetQuality()];
|
||||
std::ostringstream itemStr;
|
||||
itemStr << "|c" << std::hex << color << "|Hitem:" << item_entry << ":0:0:0:0:0:0:0:" << handler->GetSession()->GetPlayer()->GetLevel()
|
||||
<< ":0:0:0:0:0|h[" << itemTemplate->GetName(handler->GetSessionDbcLocale()) << "]|h|r";
|
||||
handler->PSendSysMessage(LANG_LIST_MAIL_INFO_ITEM, itemStr.str().c_str(), item_entry, item_guid, item_count);
|
||||
std::string itemStr = Trinity::StringFormat("|c{:X}|Hitem:{}:0:0:0:0:0:0:0:{}:0:0:0:0:0|h[{}]|h|r",
|
||||
color, item_entry, handler->GetSession()->GetPlayer()->GetLevel(), itemTemplate->GetName(handler->GetSessionDbcLocale()));
|
||||
handler->PSendSysMessage(LANG_LIST_MAIL_INFO_ITEM, itemStr.c_str(), item_entry, item_guid, item_count);
|
||||
}
|
||||
else
|
||||
handler->PSendSysMessage(LANG_LIST_MAIL_INFO_ITEM, itemTemplate->GetName(handler->GetSessionDbcLocale()), item_entry, item_guid, item_count);
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "Map.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include <sstream>
|
||||
|
||||
/*
|
||||
0 - Selin Fireheart
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include <array>
|
||||
#include <sstream>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
@@ -17,14 +17,13 @@
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "AreaBoundary.h"
|
||||
#include "Creature.h"
|
||||
#include "CreatureAI.h"
|
||||
#include "EventMap.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "naxxramas.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include <sstream>
|
||||
|
||||
BossBoundaryData const boundaries =
|
||||
{
|
||||
|
||||
@@ -35,4 +35,4 @@
|
||||
#include "SpellMgr.h"
|
||||
#include "SpellScript.h"
|
||||
#include "StringFormat.h"
|
||||
#include <sstream>
|
||||
#include "TemporarySummon.h"
|
||||
|
||||
Reference in New Issue
Block a user