<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AAddPlayerMailByCharID</id>
	<title>LUA:AddPlayerMailByCharID - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AAddPlayerMailByCharID"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddPlayerMailByCharID&amp;action=history"/>
	<updated>2026-07-14T03:00:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:AddPlayerMailByCharID&amp;diff=8407&amp;oldid=prev</id>
		<title>Cynnar: Created page with &quot;{{LUAFunction |Name = AddPlayerMail |Description = Adds mail to the players inbox |Param1 = Character ID |Param1Desc = is the id of the Character getting the mail |Param2 = st...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddPlayerMailByCharID&amp;diff=8407&amp;oldid=prev"/>
		<updated>2021-02-12T23:45:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{LUAFunction |Name = AddPlayerMail |Description = Adds mail to the players inbox |Param1 = Character ID |Param1Desc = is the id of the Character getting the mail |Param2 = st...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LUAFunction&lt;br /&gt;
|Name = AddPlayerMail&lt;br /&gt;
|Description = Adds mail to the players inbox&lt;br /&gt;
|Param1 = Character ID&lt;br /&gt;
|Param1Desc = is the id of the Character getting the mail&lt;br /&gt;
|Param2 = string&lt;br /&gt;
|Param2Desc = is the person the mail is from&lt;br /&gt;
|Param3 = string&lt;br /&gt;
|Param3Desc = is the subject of the mail&lt;br /&gt;
|Param4 = string&lt;br /&gt;
|Param4Desc = is the body of the mail&lt;br /&gt;
|OptionalParam1 = int8&lt;br /&gt;
|OptionalParam1Desc = is the type of mail being sent&lt;br /&gt;
|OptionalParam2 = int32&lt;br /&gt;
|OptionalParam2Desc = is the copper to send&lt;br /&gt;
|OptionalParam3 = int32&lt;br /&gt;
|OptionalParam3Desc = is the silver to send&lt;br /&gt;
|OptionalParam4 = int32&lt;br /&gt;
|OptionalParam4Desc = is the fold to send&lt;br /&gt;
|OptionalParam5 = int32&lt;br /&gt;
|OptionalParam5Desc = is the platinum to send&lt;br /&gt;
|OptionalParam6 = int32&lt;br /&gt;
|OptionalParam6Desc = is the id of the item to send&lt;br /&gt;
|OptionalParam7 = int16&lt;br /&gt;
|OptionalParam7Desc = is the amount of the item to send&lt;br /&gt;
|OptionalParam8 = int32&lt;br /&gt;
|OptionalParam8Desc = is the time the mail will expire&lt;br /&gt;
|OptionalParam9 = int32&lt;br /&gt;
|OptionalParam9Desc = is the time the mail was sent&lt;br /&gt;
|Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
	AddPlayerMail(17, &amp;quot;Neatz&amp;quot;, &amp;quot;You Got Mail&amp;quot;, &amp;quot;This buds for you!&amp;quot;, 1, 2, 3, 4, 5, 420, 10, 0, 0)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|ExampleDesc = a NPC with this function will send the player with the id of 17 mail from Neatz with a subject of ''You Got Mail'' and the mail saying ''This buds for you!'' in the form of spam. The player will also receive 2 copper, 3 silver, 4 gold, and 5 platinum along with the item associated with item id 420 and a 10 stack of that item. The mail will never expire and sets the sent time as the current time it was sent.&lt;br /&gt;
|Notes = === Mail Type ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0 = Regular&lt;br /&gt;
1 = Spam&lt;br /&gt;
2 = GM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''expire time''' is in seconds for expiration, leave 0 for unlimited.&lt;br /&gt;
&lt;br /&gt;
'''sent time'''  is in unix timestamp or left as 0 for default time of now&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt; DOES NOT WORK&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
'''''item id'''''&lt;br /&gt;
&lt;br /&gt;
'''''stack size'''''&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Cynnar</name></author>
		
	</entry>
</feed>