Method Global:SendMail [-] [+]

Sends mail to a Player.

There can be several item entry-amount pairs at the end of the function. There can be maximum of 12 different items.

enum MailStationery
{
    MAIL_STATIONERY_TEST = 1,
    MAIL_STATIONERY_DEFAULT = 41,
    MAIL_STATIONERY_GM = 61,
    MAIL_STATIONERY_AUCTION = 62,
    MAIL_STATIONERY_VAL = 64, // Valentine
    MAIL_STATIONERY_CHR = 65, // Christmas
    MAIL_STATIONERY_ORP = 67 // Orphan
};

Synopsis

SendMail( subject, text, receiverGUIDLow )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod, entry )

SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod, entry, amount )

Arguments

string subject

Title (subject) of the mail.

string text

Contents of the mail.

number receiverGUIDLow

Low GUID of the receiver.

Valid numbers: integers from 0 to 4,294,967,295.

number senderGUIDLow (0)

Low GUID of the sender.

Valid numbers: integers from 0 to 4,294,967,295.

MailStationery stationary (MAIL_STATIONERY_DEFAULT)

Type of mail that is being sent as, refer to MailStationery above.

number delay (0)

Mail send delay in milliseconds.

Valid numbers: integers from 0 to 4,294,967,295.

number money (0)

Money to send.

Valid numbers: integers from 0 to 4,294,967,295.

number cod (0)

Cod money amount.

Valid numbers: integers from 0 to 4,294,967,295.

number entry (0)

Entry of an Item to send with mail.

Valid numbers: integers from 0 to 4,294,967,295.

number amount (0)

Amount of the Item to send with mail.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

Nothing.

Generated on 11/04/2018
©2016 - Eluna Lua Engine