AddPlayerMail(Spawn: Player, String: FromName, String: SubjectName, String: MailBody, Int8: MailType, Int32: Copper, Int32: Silver, Int32: Gold, Int32: Platinum, Int32: ItemID, Int16: StackSize, Int32: ExpireTime, Int32: SentTime)
Pre-Requisite(s)
- None
Parameter(s)
Spawn: Player - Spawn LUA Pointer of Player type only.
String: FromName - Name of the Player/NPC/Spawn this mail came from.
String: SubjectName - Subject of the mail's message.
String: MailBody - Body message of the mail.
Int8: MailType (OPTIONAL) - MailType of mail being sent.
Int32: Copper (OPTIONAL) - Copper attached to the mail.
Int32: Silver (OPTIONAL) - Copper attached to the mail.
Int32: Gold (OPTIONAL) - Copper attached to the mail.
Int32: Platinum (OPTIONAL) - Copper attached to the mail.
Int32: ItemID (OPTIONAL) - Item ID of item attached to the mail.
Int16: StackSize (OPTIONAL) - Amount of quantity for the item if stackable.
Int32: ExpireTime (OPTIONAL) - Time the mail is available before expiring in seconds. Left to 0 will be unlimited (no expiration).
Int32: SentTime (OPTIONAL) - Time the mail was sent. Empty or 0 will use current timestamp.
Return(s)
- None
Example(s)
function player_entry(zone, Player)
if GetClass(Player)==0 and GetLevel(Player)<3 then
ZoneRef = GetZone("IsleRefuge1")
Zone(ZoneRef,Player)
else
AddPlayerMail(Player, "EQ2EmulatorDevTeam", "Welcome", "Welcome to EQ2Emulator, this project is currently in Pre-Alpha. The best developed content follows the Commoner towards class progression. This is experienced by talking to Captain Varlos starting on the Far Journey or using the Desert of Flames client during character creation.\n\nWe appreciate feedback and bug reports for existing content, and are always looking for additional talent! Thank you for testing and enjoy your stay! -The EQ2EMU Team", 2)
SendPopUpMessage(Player, "The Queen's Colony", 230, 230, 230)
end
end
Result
Additional Notes