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

If you HAVE you do your if statement that way, try this. (Spacing should not look like this, this is just for looks.)

Code:
if ($ent->GetItemIDAt(2) == 2298
&& $ent->GetItemIDAt(7) == 2372
&& (($ent->GetItemIDAt(9) == 2376 && $ent->GetItemIDAt(10) == 31891)
|| ($ent->GetItemIDAt(9) == 2376 && $ent->GetItemIDAt(10) == 2376)
|| ($ent->GetItemIDAt(9) == 31891 && $ent->GetItemIDAt(10) == 2376)
|| ($ent->GetItemIDAt(9) == 31891 && $ent->GetItemIDAt(10) == 31891))
&& $ent->GetItemIDAt(12) == 2377
&& $ent->GetItemIDAt(17) == 2370
&& $ent->GetItemIDAt(18) == 2378
&& $ent->GetItemIDAt(19) == 2379)
Reply With Quote
  #2  
Old 10-16-2014, 01:28 PM
Asylum
Sarnak
 
Join Date: Jun 2013
Posts: 81
Default

Next question: is there a function or call that accomplishes the following, or can one of you experts create one to look into an item's file and find the assigned weapon type by value? I imagine it would mirror the function of
quest::isdisctome(item_id) # Checks if 'item_id' is a discipline tome.

Code:
#usage quest::isweapon_type($itemid, type) where you choose the value for slash, blunt, et cetera

$itemid = $client->GetItemIDAt(13); #Gets itemid in primary
if (quest::isweapon_type($itemid, type)) { # Checks if $itemid is a type weapon
    effect;
}
else {
    other effect;
}
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 08:21 AM.


 

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