<?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%3AGetMaxHP</id>
	<title>LUA:GetMaxHP - 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%3AGetMaxHP"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetMaxHP&amp;action=history"/>
	<updated>2026-07-14T23:21:01Z</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:GetMaxHP&amp;diff=534&amp;oldid=prev</id>
		<title>John Adams: New page: == LUA Functions: GetMaxHP(param) == Returns the '''maximum hit points''' of ''param''. The parameter can be either the targeted player or the NPC.  [[Developer:LUA_Functions | Back to LUA...</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetMaxHP&amp;diff=534&amp;oldid=prev"/>
		<updated>2009-04-02T00:31:05Z</updated>

		<summary type="html">&lt;p&gt;New page: == LUA Functions: GetMaxHP(param) == Returns the &amp;#039;&amp;#039;&amp;#039;maximum hit points&amp;#039;&amp;#039;&amp;#039; of &amp;#039;&amp;#039;param&amp;#039;&amp;#039;. The parameter can be either the targeted player or the NPC.  [[Developer:LUA_Functions | Back to LUA...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== LUA Functions: GetMaxHP(param) ==&lt;br /&gt;
Returns the '''maximum hit points''' of ''param''. The parameter can be either the targeted player or the NPC.&lt;br /&gt;
&lt;br /&gt;
[[Developer:LUA_Functions | Back to LUA Functions Index]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
var = GetMaxHP(param) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
Required: ''param'' (int)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
''param'' must be one of the vars in the function params. In the example below, it would be either &amp;quot;NPC&amp;quot; or &amp;quot;Spawn&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
  function hailed(NPC, Spawn)&lt;br /&gt;
    Say(NPC, &amp;quot;Your maximum hit points are &amp;quot; .. GetMaxHP(Spawn) .. &amp;quot;!&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
This makes the NPC respond to the player who hails it with the players maximum hit points. Also can be used in Spells for things like Complete or Percentage Heals.&lt;/div&gt;</summary>
		<author><name>John Adams</name></author>
		
	</entry>
</feed>