I have tried to get offer quest to work with a Zone Script. Is this possible to do? I am trying to emulate getting a quest to pop up when you get to a specific area.
Code: Select all
--[[
Script Name : ZoneScripts/QueensColony.lua
Script Purpose : Location Pop-ups
Script Author : John Adams
Script Date : 2009.05.07
Script Notes :
--]]
function init_zone_script(Zone)
SetLocationProximityFunction(Zone, -15.18, -5.18, 205, 10, "InRange")
end
function InRange(Zone, Player)
OfferQuest(Zone, Player, 1)
end
function enter_location(Zone, Player, GridID)
if GridID == 771354606 then
SendPopUpMessage(Player, "Sunset Meadow", 255, 255, 0)
end
endAlso, do you remember being a command you can use that would spit out the grid ID to the game chat window, or console?