<?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%3ASetSuccessTimer</id>
	<title>LUA:SetSuccessTimer - 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%3ASetSuccessTimer"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetSuccessTimer&amp;action=history"/>
	<updated>2026-07-11T18:04:35Z</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:SetSuccessTimer&amp;diff=4975&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: SetSuccessTimer() = Sets the instance success timer for the given spawn   ==== Syntax ==== SetSuccessTimer(param1)   ==== Parameters ==== ; Required - ''param1''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetSuccessTimer&amp;diff=4975&amp;oldid=prev"/>
		<updated>2013-09-08T21:25:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: SetSuccessTimer() = Sets the instance success timer for the given spawn   ==== Syntax ==== SetSuccessTimer(param1)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&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: SetSuccessTimer() =&lt;br /&gt;
Sets the instance success timer for the given spawn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SetSuccessTimer(param1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn)&lt;br /&gt;
: ''param1'' is the player to set the success timer for&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function death(NPC, Spawn)&lt;br /&gt;
    if IsPlayer(Spawn) then&lt;br /&gt;
        SetSuccessTimer(Spawn)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the death of the NPC this spawn script will set the zones reuse timer for the killer.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The param given must be a player.&lt;br /&gt;
&lt;br /&gt;
Here is a more complete way to set the timer for the killer and their group, however it still does not handle if the killer was a players pet&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function death(NPC, Spawn)&lt;br /&gt;
	if IsPlayer(Spawn) then&lt;br /&gt;
		group = GetGroup(Spawn)&lt;br /&gt;
		if group ~= nil then&lt;br /&gt;
			for index, value in pairs(group) do&lt;br /&gt;
				if IsPlayer(value) then&lt;br /&gt;
					SetSuccessTimer(value)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			SetSuccessTimer(Spawn)&lt;br /&gt;
		end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>