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
  #7  
Old 01-16-2010, 09:59 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, I didn't want to get that far into explaining it just yet hehe. The reason that is, is because the ifs check from left to right and if it hits one that is false, it doesn't bother checking any of the others. So, that will let it return the items that were handed in, because the plugin will think that the items were not successfully turned in, I believe. By having them in the order I put them from left to right, it checks that the hand in is correct first, and so no matter what, the return items plugin won't return those items once the check_handin has been verified correct. So, in that case, if they fail to meet the qglobal, it won't reward them, but it also won't return their items.

I am basically just saying what Lillu had already said, but explaining the why of how it works so you can better understand how to write that type of check.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
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 06:04 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