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 10-15-2014, 07:01 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

Okay, I'd like to see how you're going to use this. Unless you're just using it for the MPG trials.
Reply With Quote
  #2  
Old 10-15-2014, 07:52 PM
Asylum
Sarnak
 
Join Date: Jun 2013
Posts: 81
Default

No, the MPG trials were an afterthought use. I plan on utilizing this check to implement a way to force usage of "resist gear" beyond the simple type resist checks. I.e., if you equip (not just own) 3 of 8 pieces of this gear, you only get hit with 5 of the 8 iterations of a DD, for example; whereas if you have the entire set on (lore to be added) the DD does not harm you.

I'll post the event when completed. Thanks again.
Reply With Quote
  #3  
Old 10-15-2014, 08:54 PM
Asylum
Sarnak
 
Join Date: Jun 2013
Posts: 81
Default

Results of testing:

Trying your suggested code for npc and plugin, the code merely checks for the proper item on the client's head (the lowest value slot in which an item can appear from the @itemlist). If that passes, returns a 1 and check ends. If that fails, returns a 0 and check ends. I.e., the for loop 1-22 is not executing past a true

Code:
if ($client->GetItemIDAt($i) == $item) {
    return 1;
}
as none of the other sent items in @itemlist are numerically correct to correspond with $i, returning a 0.

My quest continues...
Reply With Quote
Reply

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 04:36 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