<?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%3AGetPlayerHistory</id>
	<title>LUA:GetPlayerHistory - 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%3AGetPlayerHistory"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetPlayerHistory&amp;action=history"/>
	<updated>2026-07-12T15:28:06Z</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:GetPlayerHistory&amp;diff=6208&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;{{PageHeaderChild|LUA|GetPlayerHistory}}  = LUA Functions: GetPlayerHistory() = Gets a lua history value for a player   ==== Syntax ==== GetPlayerHistory(param1, param2)   ==== P...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetPlayerHistory&amp;diff=6208&amp;oldid=prev"/>
		<updated>2016-01-29T02:34:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeaderChild|LUA|GetPlayerHistory}}  = LUA Functions: GetPlayerHistory() = Gets a lua history value for a player   ==== Syntax ==== GetPlayerHistory(param1, param2)   ==== P...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeaderChild|LUA|GetPlayerHistory}}&lt;br /&gt;
&lt;br /&gt;
= LUA Functions: GetPlayerHistory() =&lt;br /&gt;
Gets a lua history value for a player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
GetPlayerHistory(param1, param2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (int32)&lt;br /&gt;
: ''param1'' is the player we want to check&lt;br /&gt;
: ''param2'' is event id of the history we want&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Returns ====&lt;br /&gt;
Value1 and 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;
     if GetPlayerHistory(Player, 1) == 1 then&lt;br /&gt;
          Say(NPC, &amp;quot;Hello there!&amp;quot;)&lt;br /&gt;
     end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This NPC will only reply if the history, with an event id of 1, has a value1 equal 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;
This is not related to character history&lt;br /&gt;
&lt;br /&gt;
If you want both value1 and value2 you would do&lt;br /&gt;
&amp;lt;pre&amp;gt;local val1, val2 GetPlayerHistory(Player, ID)&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>