<?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%3ASetPlayerHistory</id>
	<title>LUA:SetPlayerHistory - 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%3ASetPlayerHistory"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetPlayerHistory&amp;action=history"/>
	<updated>2026-07-13T06:33:07Z</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:SetPlayerHistory&amp;diff=6210&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;{{PageHeaderChild|LUA|SetPlayerHistory}}  = LUA Functions: SetPlayerHistory() = Sets the LUA history value for the player   ==== Syntax ==== SetPlayerHistory(param1, param2, para...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetPlayerHistory&amp;diff=6210&amp;oldid=prev"/>
		<updated>2016-01-29T02:53:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeaderChild|LUA|SetPlayerHistory}}  = LUA Functions: SetPlayerHistory() = Sets the LUA history value for the player   ==== Syntax ==== SetPlayerHistory(param1, param2, para...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeaderChild|LUA|SetPlayerHistory}}&lt;br /&gt;
&lt;br /&gt;
= LUA Functions: SetPlayerHistory() =&lt;br /&gt;
Sets the LUA history value for the player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SetPlayerHistory(param1, param2, param3, [param4])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (int32), ''param3'' (int32)&lt;br /&gt;
: ''param1'' is the player we want to set the values on&lt;br /&gt;
: ''param2'' is event ID for the history&lt;br /&gt;
: ''param3'' is value1 of the history&lt;br /&gt;
; Optional - ''param4'' (int32)&lt;br /&gt;
: ''param4'' is value2 of the history&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
     SetPlayerHistory(Spawn, 1, 1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When hailed this NPC will set value1 of the players history with an ID of 1 to 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
Can only be used on a player&lt;br /&gt;
&lt;br /&gt;
Not related to character history&lt;br /&gt;
&lt;br /&gt;
LUA history will be saved in the DB so it will persist across zones and server restarts&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>