<?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%3AGetPet</id>
	<title>LUA:GetPet - 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%3AGetPet"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetPet&amp;action=history"/>
	<updated>2026-07-14T07:53:21Z</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:GetPet&amp;diff=4983&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: GetPet() = Gets the combat pet for the given spawn   ==== Syntax ==== var = GetPet(param1)   ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetPet&amp;diff=4983&amp;oldid=prev"/>
		<updated>2013-09-12T00:08:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: GetPet() = Gets the combat pet for the given spawn   ==== Syntax ==== var = GetPet(param1)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; (Spawn) : &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; is...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: GetPet() =&lt;br /&gt;
Gets the combat pet for the given spawn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
var = GetPet(param1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn)&lt;br /&gt;
: ''param1'' is the spawn who's pet we want to get&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;
    local pet = GetPet(Spawn)&lt;br /&gt;
    if pet ~= nil then&lt;br /&gt;
        Say(NPC, &amp;quot;Your pets name is: &amp;quot; .. GetName(pet))&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The NPC will respond with the name of the players pet if they have one&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Returns a spawn&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>