#243 need a lua function to send mail from npcs, zones, holiday events, etc.

Closed
opened 3 years ago by neatz09 · 2 comments
neatz09 commented 3 years ago
There is no content yet.
image commented 3 years ago
Collaborator
AddPlayerMail(Spawn, fromName, subjectName, mailBody, mailType, copper, silver, gold, platinum, item_id, stack_size, expire_time, sent_time)
AddPlayerMailByCharID(CharID, fromName, subjectName, mailBody, mailType, copper, silver, gold, platinum, item_id, stack_size, expire_time, sent_time)

fromName, subjectName, mailBody are strings mailType is a int8:

#define MAIL_TYPE_REGULAR	0
#define MAIL_TYPE_SPAM		1
#define MAIL_TYPE_GM		2

copper,silver,gold,platinum are int32

expire_time int32 time in seconds for expiration, leave 0 for unlimited

sent_time also int32, should be unix timestamp or left as 0 for default time of now

FIELDS THAT DO NOT WORK YET:

item_id int32

stack_size int16

``` AddPlayerMail(Spawn, fromName, subjectName, mailBody, mailType, copper, silver, gold, platinum, item_id, stack_size, expire_time, sent_time) AddPlayerMailByCharID(CharID, fromName, subjectName, mailBody, mailType, copper, silver, gold, platinum, item_id, stack_size, expire_time, sent_time) ``` fromName, subjectName, mailBody are strings mailType is a int8: ``` #define MAIL_TYPE_REGULAR 0 #define MAIL_TYPE_SPAM 1 #define MAIL_TYPE_GM 2 ``` copper,silver,gold,platinum are int32 expire_time int32 time in seconds for expiration, leave 0 for unlimited sent_time also int32, should be unix timestamp or left as 0 for default time of now FIELDS THAT DO NOT WORK YET: item_id int32 stack_size int16
image commented 3 years ago
Collaborator

mail items are not supported yet and multiple mail items in box cause issues, handled in new issue: http://cutpon.com:3000/devn00b/EQ2EMu/issues/246

mail items are not supported yet and multiple mail items in box cause issues, handled in new issue: http://cutpon.com:3000/devn00b/EQ2EMu/issues/246
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.