Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-28-2012, 08:46 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

besides missing the opening parenthesis and having an extra closing one your 'if' statement, you don't have anything for the script to do if it evaluates to true (nothing in curly braces, just ends with a semicolon). additionally, the following 'elsif' statement doesn't have anything to evaluate at all (should likely just be an 'else'), and the code to execute following isn't enclosed in curly braces.

you're probably looking for something like this:

Code:
if ($faction >= 6) {
    quest::shout2("Hey, $name. I'm going to hunt you down... make you pay. There is a bounty on your head.");
}
else {
    quest::shout2("$name, I ain't looking fer you today... move along.");
}
EVENT_ENTER only works when the client enters a set proximity to the npc, not when they enter the zone.

if you're wanting to check when a player enters the zone, you'll need to use EVENT_ENTERZONE in that zone's player.pl script. you should be able to check faction using $client->GetCharacterFactionLevel(), $client->GetFactionLevel(), or $client->GetModCharacterFactionLevel().
Reply With Quote
 


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 03:09 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