Is there a way to link a lua script to a zone loading?
In partical for the begining zone, i need some configuration scripting.
I was unable to find this information.
Thanks for help.
Thank for EQ2Emu
Great fantasm that come real
Moderator: Team Members
Code: Select all
--[[
Script Name : ZoneScripts/QueensColony.lua
Script Purpose : Location Pop-ups
Script Author : John Adams
Script Date : 2009.05.07
Script Notes : Sample ZoneScript
--]]
function init_zone_script(Zone)
SetLocationProximityFunction(Zone, 70, -4.25, 168.5, 30, "SunsetMeadow")
SetLocationProximityFunction(Zone, 175, -3, 135, 30, "SunsetMeadow")
SetLocationProximityFunction(Zone, 203, -3.3, 144.5, 30, "SunsetMeadow")
end
function SunsetMeadow(Zone, Player)
SendPopUpMessage(Player, "Sunset Meadow", 255, 255, 0)
endCode: Select all
function player_entry(Zone, Player)
SendMessage(Player, "Welcome to the zone " .. GetName(Player) .. "!")
endUsers browsing this forum: No registered users and 0 guests