Page 1 of 1

Zone points into and out of Darklight

Posted: Thu Mar 12, 2009 1:00 pm
by Jabantiz
Not sure if this is the right place for this or not so sorry if I posted it in the wrong forum. I noticed on Tess that the zone points into and out of Darklight don't work, seeing as these are zone points where you just run into them to zone and not a clickable item like most others I am not sure if you plan to handle these a special way or not. On my server I used the zone scripts to achieve this. Hope they are useful to you guys if even just a temp solution.

Darklight.lua

Code: Select all

function init_zone_script(zone)
	SetLocationProximityFunction(zone, -691.31, -56.46, -87.97, 10, "ZoneNeriak")
	SetLocationProximityFunction(zone, -62.44, -33.30, 356.88, 10, "ZoneCL")
	SetLocationProximityFunction(zone, 731.24, -66.26, 93.42, 10, "ZoneNek")
end

function ZoneNeriak(zone, spawn)
	Zone(GetZone(184), spawn, 9.65, 17.21, -68.72, 184)
end

function ZoneCL(zone, spawn)
	Zone(GetZone(33), spawn, 191.72, -45.65, -858.52, 178.64)
end

function ZoneNek(zone, spawn)
	Zone(GetZone(179), spawn, -1345.74, 15.83, -1409.49, 151.77)
end
Neriak.lua

Code: Select all

function init_zone_script(zone)
	SetLocationProximityFunction(zone, 3.82, 17.36, -93.08, 10, "ZoneDarklight")
end

function ZoneDarklight(zone, spawn)
	Zone(GetZone(34), spawn, -653.95, -57.32, -86.53, 262.55)
end
Nektulos.lua

Code: Select all

function init_zone_script(zone)
	SetLocationProximityFunction(zone, -1343.12, 15.88, -1431.21, 10, "ZoneDarklight")
end

function ZoneDarklight(zone, spawn)
	Zone(GetZone(34), spawn, 709.68, -66.36, 85.34, 91.67)
end
Commonlands.lua

Code: Select all

function init_zone_script(zone)
	SetLocationProximityFunction(zone, 188.53, -47.38, -888.40, 10, "ZoneDarklight")
end

function ZoneDarklight(zone, spawn)
	Zone(GetZone(34), spawn, -74.06, -34.43, 335.46, 357.72)
end
I would recomend leaving the range at 10 for the Nektulos to Darklight, setting it to 20 can cause the player to trigger it from above or off to the side.

If these are useful let me know and I will work on the other zone points like this, but these should be the only ones in the classic world.

Re: Zone points into and out of Darklight

Posted: Thu Mar 12, 2009 6:41 pm
by John Adams
Awesome, Jabantiz. Yes, that is the kind of thing we were going to do - only before zone_scripts came along, I was going to use "teleporters". There is a specific kind of teleporter (like for the mage tower pads) that can warp or zone the player to a destination. This works too, so thanks for that.

I'll let Scat tell me which option is best.

Re: Zone points into and out of Darklight

Posted: Thu Mar 12, 2009 6:49 pm
by Scatman
What would the other option be for the zone lines that don't have something to click or an object to walk over though? (Like Commonlands to Darklight Wood)

Re: Zone points into and out of Darklight

Posted: Thu Mar 12, 2009 6:57 pm
by John Adams
Talking about this functionality: Teleporters

Re: Zone points into and out of Darklight

Posted: Fri Mar 13, 2009 11:06 am
by Scatman
Ya but those require you do click something or walk over an object for it to trigger a zone (or some kind of interaction with an object). What about the zones that have nothing near them and don't even look like they are zone lines until you see "Loading Zone". :) Like for example, Sinking Sands to Pillars of Flames.

Re: Zone points into and out of Darklight

Posted: Fri Mar 13, 2009 11:38 am
by John Adams
Correct me if I'm wrong, but couldn't you "walk over" a zone spot and be teleported to the next zone?

Re: Zone points into and out of Darklight

Posted: Fri Mar 13, 2009 11:51 am
by Scatman
I think I'm totally confused lol sorry. I was under the >>assumption<< that the teleporters could only be used if an object was implicity interacted with (clicking a lift button, clicking a door, etc). I would like to use the server code as much as possible since it's faster and will give us less scripts.

Re: Zone points into and out of Darklight

Posted: Fri Mar 13, 2009 11:57 am
by John Adams
According to LE's post, the "teleport pads in mage tower" you simply step on and warp somewhere. I thought we had asked if that also included crossing to a new zone, but I could not find those posts - so maybe I just dreamed it.

If they work through zone, then we have multiple ways to do this... we will just pick one.

Re: Zone points into and out of Darklight

Posted: Mon Mar 16, 2009 1:57 pm
by LethalEncounter
Yup, they allow you to warp to different zones as well. If for some reason it doesn't work please let me know, but that was designed into it.

Re: Zone points into and out of Darklight

Posted: Wed Sep 23, 2009 6:19 am
by bolly
Thanks for this info I now have working Zone in script - great example! Added to the wiki for reference!