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

Stängd
öppnade 3 år sedan av neatz09 · 2 kommentarer
neatz09 kommenterad 3 år sedan
Det finns inget innehåll än.
image kommenterad 3 år sedan
Deltagare
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 refererade till detta ärende från en incheckning 3 år sedan
image kommenterad 3 år sedan
Deltagare

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
Logga in för att delta i denna konversation.
Laddar...
Avbryt
Spara
Det finns inget innehåll än.