So the ghanja's code works, but it sends me to the zone safe spots rather than the druid ring. Would it make sense to add the x,y,z,h values into the $porthash array and call them in a quest::movenpc rather than a quest::zone command? Something like this:
Code:
sub EVENT_SAY {
my %porthash = (
"surefall" => ["Surefall Glade", 3, -391, -209, 4.75, 0],
"butcher" => ["Butcherblock Mountains",68, 1984, -2135, 0],
"feerrott" => ["The Feerrott",47, -1885, 367, 13.57, 0],
"northkarana" => ["North Karana",13, -1494, -2706, -7.5, 0],
"lavastorm" => ["Lavastorm Mountains",27, 460, 460, -84.88, 0],
"misty" => ["Misty Thicket",33, -1896, -490, 120.34, 0],
"sro" => ["South Ro",35, 317, -2034, -22.64, 0],
"steamfont" => ["Steamfont Mountains",56, 1668, -1779, -108.07, 0]
"commons" => ["West Commonlands", 21, 1427, 479, -51, 0],
"toxxulia" => ["Toxxulia Forest", 56, -357, 1099, -57.93, 0],
);
if ($text=~/Hail/i) {
plugin::Whisper("Hail! Where would you like to go? ");
foreach my $key (keys %porthash) {
$client->Message(315, "[".quest::saylink($key, 1, $porthash{$key})."]");
}
}
elsif (defined $porthash{$text}) {
plugin::Whisper("Off to ".$porthash{$text}." you go!");
quest::doanim(43);
$client->SpellEffect(43,10);
castdelay(5);
quest::selfcast(34);
#quest::zone($text);
quest::movenpc($porthash{$key}[1],[2],[3],[4],[5]);
}
}
... which is broke, probably a syntax thing on my part. This is more a 'am I on a path that makes sense' question. I'm still figuring out hash arrays. I've at least found some references but you know how it is. Reading, doing and understanding are 3 completely different things
