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
  #4  
Old 10-28-2012, 09:18 AM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Smile Woo, thanks for this!!

Quote:
Originally Posted by c0ncrete View Post
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().
Yep!.. great, thanks a lot!, I know I'm not brilliant with perl.. (still a bit of a noob actually)!
So I value any hints! its nice to have a great support from this forum, my players and I salute you all
Reply With Quote
 

Thread Tools
Display Modes

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 06:21 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