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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2008, 10:14 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default Using && in perl ?

Is there any thing that could cause the && function not to work. the || function works fine as far as just about everything else I try. I am out of ideas on why the function will cause any quest not to work period.

Here is just a simple example I wrote to test it.

Quote:
sub EVENT_SAY
{
if ($text=~/hail/i)
{
$JA = int 6;
$JO = int 7;
}

if {{$JO == 7}&&{$JA == 6}}
{
quest::say("Test Worked!");
}

}
Thanks
Reply With Quote
  #2  
Old 06-19-2008, 10:23 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

It should be

Code:
if (($JO==7)&&($JA==6))
You're using brackets instead of parantheses.

Last edited by Andrew80k; 06-20-2008 at 06:24 AM.. Reason: Spelling..../sigh
Reply With Quote
  #3  
Old 06-19-2008, 10:39 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default Thanks

Wow, thank you so much. I was pulling my hair out over that. The tiny font on most websites made the () and {} look the same in all the examples.
Reply With Quote
  #4  
Old 06-19-2008, 11:10 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

hehe. Yep, I've noticed that too. Have fun.
Reply With Quote
  #5  
Old 06-20-2008, 02:42 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

If you use Firefox, you can always hold down CTRL and use the scroll on your mouse to increase or decrease font size for any website. Comes in quite handy when you need it.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #6  
Old 06-20-2008, 10:06 AM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default

Quote:
If you use Firefox, you can always hold down CTRL and use the scroll on your mouse to increase or decrease font size for any website.
This works in IE too.
Reply With Quote
  #7  
Old 06-20-2008, 10:22 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

This is a great Perl editor for windows
http://enginsite.com/Perl.htm
It's free, and has a registered version with more features.
Once you get the hang of it, it will show you where you screwed up with your typos (has built in Syntax Check, Expressions Tester,etc).
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 01:28 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3