https://www.eq2emulator.net/phpBB3/view ... ity#p17718
the current enter_location and leave_location lua scripting in zone script really only deals with enter and leaving a grid ID
as seen in a zone script
Code: Select all
function enter_location(zone, spawn, grid)
end
function leave_location(zone, spawn, grid)
endCode: Select all
if(appearance.pos.grid_id != grid_id)
{
LogWrite(PLAYER__DEBUG, 0, "Player", "%s left grid %u and entered grid %u", appearance.name, appearance.pos.grid_id, grid_id);
const char* zone_script = world.GetZoneScript(GetZone()->GetZoneID());
if (zone_script && lua_interface)
{
lua_interface->RunZoneScript(zone_script, "enter_location", GetZone(), this, grid_id);
lua_interface->RunZoneScript(zone_script, "leave_location", GetZone(), this, appearance.pos.grid_id);
}
appearance.pos.grid_id = grid_id;
}enter_poi_location(zone, spawn, location)
leave_poi_location((zone, spawn, location)
where location would be the location_id from the locations table
thoughts and or concerns before i try and implement
1. i have is we could just use the grid in enter_location as a grid but i think too many people might get confused and we dont want the posibility of grid and location_id getting mixed up