You are viewing an old version of this page. Return to the latest version.
Version of 11:31, 7 September 2013 by I need to Update My Profile
Difference between revisions of "LUA:AddSpawnIDAccess"
(Created page with "'''Explanation''' This function grants spawn access to a spawn, with every spawn in a zone with a certain spawn id. The third param (zone) is optional, if not set this function w...") |
|||
| Line 1: | Line 1: | ||
'''Explanation''' | '''Explanation''' | ||
This function grants spawn access to a spawn, with every spawn in a zone with a certain spawn id. The third param (zone) is optional, if not set this function will use the zone of the spawn param. | This function grants spawn access to a spawn, with every spawn in a zone with a certain spawn id. The third param (zone) is optional, if not set this function will use the zone of the spawn param. | ||
| + | |||
| + | |||
<br> | <br> | ||
'''Syntax'''<br> | '''Syntax'''<br> | ||
AddSpawnIDAccess([Spawn*] spawn, [int32] spawn_id, ([Zone*] zone))<br> | AddSpawnIDAccess([Spawn*] spawn, [int32] spawn_id, ([Zone*] zone))<br> | ||
| + | |||
'''Example''' | '''Example''' | ||
Revision as of 11:31, 7 September 2013
Explanation This function grants spawn access to a spawn, with every spawn in a zone with a certain spawn id. The third param (zone) is optional, if not set this function will use the zone of the spawn param.
Syntax
AddSpawnIDAccess([Spawn*] spawn, [int32] spawn_id, ([Zone*] zone))
Example
function hailed(NPC, Spawn)
AddSpawnIDAccess(Spawn, 4700000)
end
When this function is called, the Spawn that hailed NPC will be granted access to every spawn with the ID of 4700000 in their zone.