Zone flags - Help!
Hey there. I'm trying to get an NPC to let players know when they are flagged. I thought this looked like proper syntax, but perhaps i'm wrong. Anyone able to assist me in getting this code to work? The zone has flag turned on, btw.
sub EVENT_SAY { my $Karnor = quest::saylink("karnor", 1, "karnor"); my $Charasis = quest::saylink("charasis", 1, "charasis"); my $Chardok = quest::saylink("chardok", 1, "chardok"); my $Sebilis = quest::saylink("sebilis", 1, "sebilis"); if ($text=~/hail/i){ $client->Message(10, "Toasty says, 'I can show your kunark progression. Click a zone to see your progress'"); $client->Message(1, " $Karnor"); $client->Message(1, " $Charasis"); $client->Message(1, " $Chardok"); $client->Message(1, " $Sebilis"); $client->Message(10, "Come back any time!"); } if ($text=~/karnor/i){ } if (quest::has_zone_flag(190) { $client->Message(15, "You are flagged for that zone"); } else { $client->Message(13, "You are not flagged for that zone"); $client->Message(10, "You must slay Naggy or Vox to gain access"); } } |
All times are GMT -4. The time now is 08:33 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.