<?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%3AGetPlayersInZone</id>
	<title>LUA:GetPlayersInZone - 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%3AGetPlayersInZone"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetPlayersInZone&amp;action=history"/>
	<updated>2026-07-13T19:59:28Z</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:GetPlayersInZone&amp;diff=6355&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;{{PageHeaderChild|LUA|GetPlayersInZone}}  = LUA Functions: GetPlayersInZone() = Gets a list of all players in the zone   ==== Syntax ==== local var = GetPlayersInZone(param1)   =...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetPlayersInZone&amp;diff=6355&amp;oldid=prev"/>
		<updated>2016-09-01T05:45:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeaderChild|LUA|GetPlayersInZone}}  = LUA Functions: GetPlayersInZone() = Gets a list of all players in the zone   ==== Syntax ==== local var = GetPlayersInZone(param1)   =...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeaderChild|LUA|GetPlayersInZone}}&lt;br /&gt;
&lt;br /&gt;
= LUA Functions: GetPlayersInZone() =&lt;br /&gt;
Gets a list of all players in the zone&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
local var = GetPlayersInZone(param1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Zone)&lt;br /&gt;
: ''param1'' is the zone we want to get players from&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Returns ====&lt;br /&gt;
LUA table with all the players in the zone, or nil if there are none&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;
	local bridgeGate = GetSpawn(NPC, GateLower)&lt;br /&gt;
	if bridgeGate ~= nil and GetY(bridgeGate) ~= GateOpenedY then&lt;br /&gt;
		UseWidget(bridgeGate)&lt;br /&gt;
		local players = GetPlayersInZone(GetZone(NPC))&lt;br /&gt;
		for index, player in pairs(players) do&lt;br /&gt;
			SendPopUpMessage(player, &amp;quot;With the slaying of Vigo, the Deathfist Citadel gate is unlocked!&amp;quot;, 255, 0, 0)&lt;br /&gt;
			SendMessage(player, &amp;quot;With the slaying of Vigo, the Deathfist Citadel gate is unlocked!&amp;quot;, &amp;quot;red&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is the death function for Vigo Cerebus in Zek, when he dies a pop up and normal message are sent to all players in the zone.&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>