Lua GetMapId

From ArcEmu-Wiki
Jump to: navigation, search

Description

Returns the Unit's map ID.

Usage/Examples

function CheckMapId(event, player)
	if(player:GetMapId()==1) then
		player:SendBroadcastMessage("You are in Kalimdor!")
	end
end
 
RegisterServerHook(4, "CheckMapId")
Personal tools