Jump to content

[Patch] Mail


Recommended Posts

Posted

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

Posted

Don't agree with this changes, if GM wants to send Customer Support mails.. he will use appropriate command. I like answering to players that sends me in-game mail with mail they can reply to.. but customer support mails aren't repliable.

Posted
Am not to sure how to do this with mangos can someone point me into the right direction
If you want to implement a new config option, take a look at World::LoadConfigSettings function.
Posted
maybe base not at GM level but at isGamemaster() state ? So if you in GM-on state then as GM send fast GM-mails in normal state send normal mails...

Great idea, or perhaps a .gm mail on/off command?

×
×
  • 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