New Lua Function: SpawnByLocationID

Discussions on development of both the EQ2Emulator LUA Script Engine and Script specifications

Moderator: Team Members

Post Reply
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

New Lua Function: SpawnByLocationID

Post by Jabantiz » Sat May 11, 2013 10:57 pm

By request SpawnByLocationID details on the wiki page.

Example:

Code: Select all

function hailed(NPC, Spawn)
	zone = GetZone(Spawn)
	newSpawn = SpawnByLocationID(zone, 160012)
	if newSpawn ~= nil then
		Say(Spawn, "Test")
		Shout(newSpawn, "Test")
	end
end

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests