[Feature] GM State Change Persistance (#2328)

* [Feature] GM State Change Persistance

- Flymode and Invulnerable will now persist over zoning.

- Appended GMSpeed, Flymode and Invulnerable to the hideme message GMs see when they first login.

- Added #godmode [on/off] command to turn on or off hideme, flymode, gmspeed and invulnerable all in one shot.

- /becomenpc will now disable tells to the target player. It will also automatically disable GM States that interfere with its functionality.

- GM Command /toggle will not properly turn tells on/off

- GMs will now be notified if they are ignoring tells when they first zone-in, provided their GM flag is up.

- Added TellsOff variable to the output to #showstats

* [Bug] Fix tells when gmhideme is turned off.

* [Cleanup] Cleanup function and rename for consistancy.

Remove un-needed this->

* Tweaks

* Tweaks

* Update db_update_manifest.txt

* Move string building logic to a vector and use strings join

* Update client_packet.cpp

* Update 2022_07_28_gm_state_changes.sql

* PR comment tweaks

Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
Michael
2022-07-30 20:29:24 -04:00
committed by GitHub
parent 793d4bc3a4
commit ea878ed27f
15 changed files with 252 additions and 125 deletions
+7 -9
View File
@@ -457,27 +457,25 @@ void ZoneServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p) {
(
cle->TellsOff() &&
(
(
cle->Anon() == 1 &&
scm->fromadmin < cle->Admin()
) ||
scm->fromadmin < AccountStatus::QuestTroupe
scm->fromadmin < cle->Admin()
|| scm->fromadmin < AccountStatus::QuestTroupe
)
)
) {
) {
if (!scm->noreply) {
auto sender = client_list.FindCharacter(scm->from);
if (!sender || !sender->Server()) {
break;
}
scm->noreply = true;
scm->queued = 3; // offline
scm->noreply = true;
scm->queued = 3; // offline
scm->chan_num = ChatChannel_TellEcho;
strcpy(scm->deliverto, scm->from);
sender->Server()->SendPacket(pack);
}
} else if (cle->Online() == CLE_Status::Zoning) {
}
else if (cle->Online() == CLE_Status::Zoning) {
if (!scm->noreply) {
auto sender = client_list.FindCharacter(scm->from);
if (cle->TellQueueFull()) {