View Single Post
  #1  
Old 01-16-2012, 03:52 AM
Noport
Opcode Ninja
 
Join Date: Mar 2009
Location: San francisco
Posts: 426
Default

5.How to add zone portals

Example using quest files for what ever zone you wish.

I made my own for Bazzar quest for Red and Blue Translocator

Translocator_Blue.pl
sub TL
{
movepc(1213.00,921.00,3.2; }
}
movepc(88.00,265.00,36.00); }
}

Translocator_Red.pl

sub TL
{
movepc(1212.00,-891.00,3.2; }
}
movepc(261.64,-91.47,36.00); }
}
----------------------------------
This is a quest for what ever zone

Example Dummy.pl for nexus

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("wish to go");

if($text=~/wish to go/i) {
quest::movepc(-882.00,132.00,51.47); #Arena <--- This will move a charter to another zone location.
}

sub EVENT_SPAWN {
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity($x - 170.68, $x - 261.52, $y - 156.31, $y + 0);<--- to spawn a ncp type in the location where you want him/her to show up.
{
}
To find the location type /loc in chat window.
Reply With Quote