eq2emu-content/ZoneScripts/Starcrest.lua
2024-10-26 11:37:28 +00:00

28 lines
No EOL
909 B
Lua
Executable file

--[[
Script Name : ZoneScripts/Starcrest.lua
Script Author : Dorbin
Script Date : 2022.06.30 03:06:27
Script Purpose :
:
--]]
function init_zone_script(Zone)
SetLocationProximityFunction(Zone, 771.06, -18.49, 281.01, 15, "DeepReflection","LeaveLocation")
end
function player_entry(Zone, Player)
SendPopUpMessage(Player, "Starcrest Commune", 230, 230, 230)
if GetBoundZoneID(Player) == nil then
if GetRace(Player) == 3 or GetRace(Player) == 10 then
Bind(Player, GetX(Player),GetY(Player),GetZ(Player),GetHeading(Player))
else end
end
end
function DeepReflection(Zone,Player)
SendPopUpMessage(Player, "The Fountain of Deep Reflection", 255, 255, 0)
end
function enter_location(zone, spawn, grid)
SetLocationProximityFunction(Zone, 771.06, -18.49, 281.01, 10, "DeepReflection","LeaveLocation")
end