Zone points into and out of Darklight

Discussions of the design and development of in-game content.

Moderator: Team Members

Post Reply
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Zone points into and out of Darklight

Post by Jabantiz » Thu Mar 12, 2009 1:00 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Zone points into and out of Darklight

Post by John Adams » Thu Mar 12, 2009 6:41 pm

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.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Zone points into and out of Darklight

Post by Scatman » Thu Mar 12, 2009 6:49 pm

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)

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Zone points into and out of Darklight

Post by John Adams » Thu Mar 12, 2009 6:57 pm

Talking about this functionality: Teleporters

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Zone points into and out of Darklight

Post by Scatman » Fri Mar 13, 2009 11:06 am

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Zone points into and out of Darklight

Post by John Adams » Fri Mar 13, 2009 11:38 am

Correct me if I'm wrong, but couldn't you "walk over" a zone spot and be teleported to the next zone?

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Zone points into and out of Darklight

Post by Scatman » Fri Mar 13, 2009 11:51 am

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Zone points into and out of Darklight

Post by John Adams » Fri Mar 13, 2009 11:57 am

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.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: Zone points into and out of Darklight

Post by LethalEncounter » Mon Mar 16, 2009 1:57 pm

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.

bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Re: Zone points into and out of Darklight

Post by bolly » Wed Sep 23, 2009 6:19 am

Thanks for this info I now have working Zone in script - great example! Added to the wiki for reference!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests