PDA

View Full Version : Adding "new zone line" ?


rhyotte
07-16-2012, 01:38 PM
Hi folks,

I have been researching on how to add in "new zone lines". I realize that zone lines are "hard coded" ( thanks Trevius! ), so I will need to add in an invisable NPC to proximity sense and teleport the Player.

Can some one post up a Newbie Friendly How to? I am more than willing to learn!

Thank you!
Gary
P.S. The zone line I was trying to add was SoD+ client: the north west Highpasshold unused zone "cave" directly across from the newish Blightfire zone. I want to zone into Bloodfields to the south east cave marked on the map as "Tarvash Scriller" and of course the other way around as well.

chrsschb
07-16-2012, 11:25 PM
A quick and sloppy proximity, abuse it however you wish. Set the x or y values to define your proximity. A zone line running north to south would probably look something like x-5, x+5, y-3000, y+3000 (or however long the zone line should be).

The move char function below is set for just outside the wizard spire in North Ro. The first number is the zone number (34), the next values are X, Y, Z, and Heading (H). Heading is not required, I believe the default heading is 270 degrees.

Also remember the /loc command shows Y, X, Z where as #loc shows X, Y, Z. No idea why...


sub EVENT_SPAWN
{
my $x = $npc->GetX();
my $y = $npc->GetY();
quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50);
}

sub EVENT_ENTER
{
quest::movepc(34, 828, 1418.1,5.2,134.4);
}