Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2010, 05:43 PM
Veyn
Fire Beetle
 
Join Date: Jul 2004
Posts: 3
Default 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");

}
}
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:50 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3