LUA:ZoneScripts
- Last edited 9 years ago by I need to Update My Profile
LUA - Zone Scripts
Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Zone scripts are used for events within the zone, there are 6 events that will make a call to the zone script, dawn, dusk, enter location, init zone, leave location, and player entry.
Dawn is called when the game time passes dawn time, which is set in rules
function dawn(Zone, Spawn) end
Dusk is called when the game time passes dusk time, which is set in rules
function dusk(Zone, Spawn) end
Enter Location is called when the player enters a new grid, the new grid id is passes as the third parameter
function enter_location(Zone, Spawn, int32) end
Init Zone Script is called when the zone first starts up, this is where you would set up any proximity functions
function init_zone_script(Zone) end
Leave Location is called when the player leaves a grid, the grid id that the player is leaving is passed as the third parameter
function leave_location(Zone, Spawn, int32) end
Player Entry is called when a players enters the zone
function player_entry(Zone, Spawn) end