No categories assigned

LUA:RemoveSpawnIDAccess

Explanation
This function removes 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
RemoveSpawnIDAccess([Spawn*] spawn, [int32] spawn_id, ([Zone*] zone))


Example

function hailed(NPC, Spawn)
    RemoveSpawnIDAccess(Spawn, 4700000)
end

When this function is called, the Spawn that hailed NPC will be removed from access to every spawn with the ID of 4700000 in their zone.



Back to Misc Functions