<?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%3AGetRaceType</id>
	<title>LUA:GetRaceType - 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%3AGetRaceType"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetRaceType&amp;action=history"/>
	<updated>2026-07-12T04:30:03Z</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:GetRaceType&amp;diff=5273&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: GetRaceType() = Will get the race id for the given spawn   ==== Syntax ==== var = GetRaceType(param1)   ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetRaceType&amp;diff=5273&amp;oldid=prev"/>
		<updated>2014-04-01T21:56:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: GetRaceType() = Will get the race id for the given spawn   ==== Syntax ==== var = GetRaceType(param1)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; (Spawn) : &amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: GetRaceType() =&lt;br /&gt;
Will get the race id for the given spawn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
var = GetRaceType(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 race id we want&lt;br /&gt;
&lt;br /&gt;
==== Returns ====&lt;br /&gt;
int32, the id of the spawns race&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function cast(Caster, Target)&lt;br /&gt;
    -- do normal damage here&lt;br /&gt;
&lt;br /&gt;
    if GetRaceType(Target) == 242 then&lt;br /&gt;
        -- do extra damage to vampires here&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This spell will do extra damage to vampire NPC's&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Race id's are defined in RaceTypes.h&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>