mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[Hotfix] "GM flag" vs "GM Flag"
This commit is contained in:
parent
7ad97ce168
commit
405d963005
@ -43,7 +43,7 @@
|
||||
#define ServerOP_OnlineGuildMembersResponse 0x0016
|
||||
#define ServerOP_LFGuildUpdate 0x0017
|
||||
|
||||
#define ServerOP_FlagUpdate 0x0018 // GM Flag updated for character, refresh the memory cache
|
||||
#define ServerOP_FlagUpdate 0x0018 // GM flag updated for character, refresh the memory cache
|
||||
#define ServerOP_GMGoto 0x0019
|
||||
#define ServerOP_MultiLineMsg 0x001A
|
||||
#define ServerOP_Lock 0x001B // For #lock/#unlock inside server
|
||||
|
||||
@ -1356,7 +1356,7 @@ bool SharedTaskManager::CanRequestSharedTask(uint32_t task_id, const SharedTaskR
|
||||
}
|
||||
|
||||
if (is_gm) {
|
||||
client_list.SendCharacterMessage(requester->CharID(), Chat::White, "Your GM Flag allows you to bypass shared task minimum player requirements.");
|
||||
client_list.SendCharacterMessage(requester->CharID(), Chat::White, "Your GM flag allows you to bypass shared task minimum player requirements.");
|
||||
}
|
||||
|
||||
// check if party member count is above the maximum
|
||||
|
||||
@ -543,7 +543,7 @@ void Client::CompleteConnect()
|
||||
LoadZoneFlags();
|
||||
LoadAccountFlags();
|
||||
|
||||
/* Sets GM Flag if needed & Sends Petition Queue */
|
||||
/* Sets GM flag if needed & Sends Petition Queue */
|
||||
UpdateAdmin(false);
|
||||
|
||||
// Task Packets
|
||||
@ -717,7 +717,7 @@ void Client::CompleteConnect()
|
||||
break;
|
||||
}
|
||||
|
||||
Message(Chat::White, "Your GM Flag allows you to levitate in this zone.");
|
||||
Message(Chat::White, "Your GM flag allows you to levitate in this zone.");
|
||||
}
|
||||
|
||||
SendAppearancePacket(
|
||||
@ -2141,7 +2141,7 @@ void Client::Handle_OP_AdventureMerchantPurchase(const EQApplicationPacket *app)
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag prevents {} from being added to discovered items.",
|
||||
"Your GM flag prevents {} from being added to discovered items.",
|
||||
item_link
|
||||
).c_str()
|
||||
);
|
||||
@ -2707,7 +2707,7 @@ void Client::Handle_OP_AltCurrencyPurchase(const EQApplicationPacket *app)
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag prevents {} from being added to discovered items.",
|
||||
"Your GM flag prevents {} from being added to discovered items.",
|
||||
item_link
|
||||
).c_str()
|
||||
);
|
||||
@ -14251,7 +14251,7 @@ void Client::Handle_OP_ShopPlayerBuy(const EQApplicationPacket *app)
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag prevents {} from being added to discovered items.",
|
||||
"Your GM flag prevents {} from being added to discovered items.",
|
||||
item_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
@ -1919,7 +1919,7 @@ void Client::DoStaminaHungerUpdate()
|
||||
sta->food = 6000;
|
||||
sta->water = 6000;
|
||||
|
||||
Message(Chat::White, "Your GM Flag prevents you from consuming food or water.");
|
||||
Message(Chat::White, "Your GM flag prevents you from consuming food or water.");
|
||||
}
|
||||
} else { // No auto food/drink consumption in the Bazaar
|
||||
sta->food = 6000;
|
||||
|
||||
@ -1162,7 +1162,7 @@ void Corpse::MakeLootRequestPackets(Client *c, const EQApplicationPacket *app)
|
||||
c->Message(Chat::White, "Your GM Status allows you to loot any items on this corpse.");
|
||||
} else {
|
||||
m_loot_request_type = LootRequestType::GMPeek;
|
||||
c->Message(Chat::White, "Your GM Flag allows you to look at the items on this corpse.");
|
||||
c->Message(Chat::White, "Your GM flag allows you to look at the items on this corpse.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -1624,7 +1624,7 @@ void Corpse::LootCorpseItem(Client *c, const EQApplicationPacket *app)
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag prevents {} from being added to discovered items.",
|
||||
"Your GM flag prevents {} from being added to discovered items.",
|
||||
item_link
|
||||
).c_str()
|
||||
);
|
||||
@ -2301,7 +2301,7 @@ void Corpse::CastRezz(uint16 spell_id, Mob *caster)
|
||||
return;
|
||||
}
|
||||
|
||||
caster->Message(Chat::White, "Your GM Flag allows you to resurrect this corpse.");
|
||||
caster->Message(Chat::White, "Your GM flag allows you to resurrect this corpse.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -2314,7 +2314,7 @@ void Corpse::CastRezz(uint16 spell_id, Mob *caster)
|
||||
m_rezzed_experience = m_gm_rezzed_experience;
|
||||
m_gm_rezzed_experience = 0;
|
||||
|
||||
c->Message(Chat::White, "Your GM Flag allows you to resurrect this corpse and return experience.");
|
||||
c->Message(Chat::White, "Your GM flag allows you to resurrect this corpse and return experience.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -295,7 +295,7 @@ void Doors::HandleClick(Client *sender, uint8 trigger)
|
||||
);
|
||||
sender->MessageString(Chat::LightBlue, DOORS_LOCKED);
|
||||
} else {
|
||||
sender->Message(Chat::White, "Your GM Flag allows you to use this door.");
|
||||
sender->Message(Chat::White, "Your GM flag allows you to use this door.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -344,7 +344,7 @@ void Doors::HandleClick(Client *sender, uint8 trigger)
|
||||
sender->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag allows you to use this door{}.",
|
||||
"Your GM flag allows you to use this door{}.",
|
||||
(
|
||||
has_guild_name ?
|
||||
fmt::format(
|
||||
@ -544,7 +544,7 @@ void Doors::HandleClick(Client *sender, uint8 trigger)
|
||||
|
||||
if (sender->GetGM() && has_key_required) {
|
||||
has_key_required = false;
|
||||
sender->Message(Chat::White, "Your GM Flag allows you to open this door without a key.");
|
||||
sender->Message(Chat::White, "Your GM flag allows you to open this door without a key.");
|
||||
}
|
||||
|
||||
if (IsDestinationZoneSame() && (!required_key_item)) {
|
||||
|
||||
@ -1655,7 +1655,7 @@ void EntityList::QueueClientsByTarget(Mob *sender, const EQApplicationPacket *ap
|
||||
Send = clear_target_window;
|
||||
if (c->GetGM() || RuleB(Spells, AlwaysSendTargetsBuffs)) {
|
||||
if (c->GetGM()) {
|
||||
c->Message(Chat::White, "Your GM Flag allows you to always see your targets' buffs.");
|
||||
c->Message(Chat::White, "Your GM flag allows you to always see your targets' buffs.");
|
||||
}
|
||||
|
||||
Send = !clear_target_window;
|
||||
|
||||
@ -650,7 +650,7 @@ bool Object::HandleClick(Client* sender, const ClickObject_Struct* click_object)
|
||||
sender->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag prevents {} from being added to discovered items.",
|
||||
"Your GM flag prevents {} from being added to discovered items.",
|
||||
item_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
@ -2977,7 +2977,7 @@ bool QuestManager::createBot(const char *name, const char *lastname, uint8 level
|
||||
initiator->Message(Chat::White, message.c_str());
|
||||
return false;
|
||||
} else {
|
||||
initiator->Message(Chat::White, "Your GM Flag allows you to bypass bot spawn limits.");
|
||||
initiator->Message(Chat::White, "Your GM flag allows you to bypass bot spawn limits.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -3003,7 +3003,7 @@ bool QuestManager::createBot(const char *name, const char *lastname, uint8 level
|
||||
initiator->Message(Chat::White, message.c_str());
|
||||
return false;
|
||||
} else {
|
||||
initiator->Message(Chat::White, "Your GM Flag allows you to bypass bot class-based spawn limits.");
|
||||
initiator->Message(Chat::White, "Your GM flag allows you to bypass bot class-based spawn limits.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -947,7 +947,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
if (IsClient()) {
|
||||
if (CastToClient()->GetGM() || RuleB(Character, BindAnywhere)) {
|
||||
if (CastToClient()->GetGM()) {
|
||||
Message(Chat::White, "Your GM Flag allows you to bind anywhere.");
|
||||
Message(Chat::White, "Your GM flag allows you to bind anywhere.");
|
||||
}
|
||||
|
||||
auto action_packet =
|
||||
|
||||
@ -693,7 +693,7 @@ bool Mob::DoCastingChecksZoneRestrictions(bool check_on_casting, int32 spell_id)
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag allows you to bypass zone casting restrictions and cast {} in this zone.",
|
||||
"Your GM flag allows you to bypass zone casting restrictions and cast {} in this zone.",
|
||||
Saylink::Silent(
|
||||
fmt::format(
|
||||
"#castspell {}",
|
||||
@ -728,7 +728,7 @@ bool Mob::DoCastingChecksZoneRestrictions(bool check_on_casting, int32 spell_id)
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag allows you to bypass zone blocked spells and cast {} in this zone.",
|
||||
"Your GM flag allows you to bypass zone blocked spells and cast {} in this zone.",
|
||||
Saylink::Silent(
|
||||
fmt::format(
|
||||
"#castspell {}",
|
||||
@ -783,7 +783,7 @@ bool Mob::DoCastingChecksZoneRestrictions(bool check_on_casting, int32 spell_id)
|
||||
LogSpells("Spell casting canceled [{}] : can not cast outdoors.", spell_id);
|
||||
return false;
|
||||
} else {
|
||||
Message(Chat::White, "Your GM Flag allows you to cast outdoor spells when indoors.");
|
||||
Message(Chat::White, "Your GM flag allows you to cast outdoor spells when indoors.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1101,7 +1101,7 @@ bool Client::CheckFizzle(uint16 spell_id)
|
||||
{
|
||||
// GMs don't fizzle
|
||||
if (GetGM()) {
|
||||
Message(Chat::White, "Your GM Flag prevents you from fizzling.");
|
||||
Message(Chat::White, "Your GM flag prevents you from fizzling.");
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1687,7 +1687,7 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
|
||||
if (c->GetGM()) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
"Your GM Flag allows you to finish casting even though you're missing a required instrument."
|
||||
"Your GM flag allows you to finish casting even though you're missing a required instrument."
|
||||
);
|
||||
} else {
|
||||
InterruptSpell();
|
||||
@ -1728,7 +1728,7 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
|
||||
if (c->GetGM()) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
"Your GM Flag allows you to finish casting even though you're missing required components."
|
||||
"Your GM flag allows you to finish casting even though you're missing required components."
|
||||
);
|
||||
} else {
|
||||
InterruptSpell();
|
||||
|
||||
@ -124,7 +124,7 @@ bool Client::HasTaskRequestCooldownTimer()
|
||||
}
|
||||
|
||||
if (GetGM()) {
|
||||
Message(Chat::White, "Your GM Flag prevents you from having a task request cooldown.");
|
||||
Message(Chat::White, "Your GM flag prevents you from having a task request cooldown.");
|
||||
}
|
||||
|
||||
return (!GetGM() && task_request_timer.Enabled());
|
||||
|
||||
@ -1096,7 +1096,7 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
zone->random.Roll(aa_chance)
|
||||
) {
|
||||
if (GetGM()) {
|
||||
Message(Chat::White, "Your GM Flag gives you a 100% chance to succeed in combining this tradeskill.");
|
||||
Message(Chat::White, "Your GM flag gives you a 100% chance to succeed in combining this tradeskill.");
|
||||
}
|
||||
|
||||
success_modifier = 1;
|
||||
|
||||
@ -819,7 +819,7 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Your GM Flag allows you to give {} to {}.",
|
||||
"Your GM flag allows you to give {} to {}.",
|
||||
item_link,
|
||||
GetTargetDescription(tradingWith)
|
||||
).c_str()
|
||||
|
||||
@ -99,7 +99,7 @@ bool Trap::Process()
|
||||
}
|
||||
|
||||
if (is_gm_client) {
|
||||
m->Message(Chat::White, "Your GM Flag prevents you from triggering a trap.");
|
||||
m->Message(Chat::White, "Your GM flag prevents you from triggering a trap.");
|
||||
}
|
||||
}
|
||||
else if (reset_timer.Enabled() && reset_timer.Check())
|
||||
@ -321,7 +321,7 @@ Mob* EntityList::GetTrapTrigger(Trap* trap)
|
||||
}
|
||||
|
||||
if (cur->GetGM()) {
|
||||
cur->Message(Chat::White, "Your GM Flag prevents you from triggering a trap.");
|
||||
cur->Message(Chat::White, "Your GM flag prevents you from triggering a trap.");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@ -373,8 +373,8 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
|
||||
}
|
||||
|
||||
if (content_service.GetCurrentExpansion() >= Expansion::Classic && GetGM()) {
|
||||
LogInfo("[{}] Bypassing zone expansion checks because GM Flag is set", GetCleanName());
|
||||
Message(Chat::White, "Your GM Flag allows you to bypass zone expansion checks.");
|
||||
LogInfo("[{}] Bypassing zone expansion checks because GM flag is set", GetCleanName());
|
||||
Message(Chat::White, "Your GM flag allows you to bypass zone expansion checks.");
|
||||
}
|
||||
|
||||
if (zoning_message == ZoningMessage::ZoneSuccess) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user