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 07-03-2014, 04:22 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Question Get ItemType through Perl?

Afternoon ladies/gents/trolls,

I am trying to see if one can dig up the itemtype of an item in a bag?

I am trying to accomplish this because I want to create a system where players can place temporary items in this bag, summon a pet, and have the weapons "cloned" on to the pet. I am asking because I need to ensure that a player isn't dropping two 2h weapons in there or two shields.


-Hate
Reply With Quote
  #2  
Old 07-03-2014, 04:59 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

You can use $client->GetItemStat($client->GetItemIDAt(Slot ID), "itemtype");

251-330 Is for bag slots, check item.cpp for slots like shared bank bags, bank bags, cursor bags, etc.
Reply With Quote
  #3  
Old 07-04-2014, 03:47 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default

Awesome! Thank you!

-Hate
Reply With Quote
  #4  
Old 07-04-2014, 03:51 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

You're welcome.
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 02:35 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