Jump to content

[Patch] Mail


Guest JordanMckeag

Recommended Posts

Made by ? Me

Lighthouse ? Not sure wat this is :D

Wat does the patch do ? When a gm/admin sends a mail ingame to a player

it will instantly make it out as its from customer support

I think it should be applied it makes it more blizzlike

V2

diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp
old mode 100644
new mode 100755
index d671aeb..741fda9
--- a/src/game/Mail.cpp
+++ b/src/game/Mail.cpp
@@ -258,11 +258,14 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data )
        }
    }

    // If theres is an item, there is a one hour delivery delay if sent to another account's character.
    uint32 deliver_delay = needItemDelay ? sWorld.getConfig(CONFIG_MAIL_DELIVERY_DELAY) : 0;

    // will delete item or place to receiver mail list
-    WorldSession::SendMailTo(receive, MAIL_NORMAL, MAIL_STATIONERY_NORMAL, pl->GetGUIDLow(), GUID_LOPART(rc), subject, itemTextId, &mi, money, COD, MAIL_CHECK_MASK_NONE, deliver_delay);
+    WorldSession::SendMailTo(receive, MAIL_NORMAL, (GetSecurity() > SEC_PLAYER) ? MAIL_STATIONERY_GM : MAIL_STATIONERY_NORMAL, pl->GetGUIDLow(), GUID_LOPART(rc), subject, itemTextId, &mi, money, COD, MAIL_CHECK_MASK_NONE, deliver_delay);

    CharacterDatabase.BeginTransaction();
    pl->SaveInventoryAndGoldToDB();

Its only a small patch checks if the player is a gm carn't see any reasons why this would cause a crash or bug with anything

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use