EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Get ItemType through Perl? (https://www.eqemulator.org/forums/showthread.php?t=38444)

Hateborne 07-03-2014 04:22 PM

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

Kingly_Krab 07-03-2014 04:59 PM

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.

Hateborne 07-04-2014 03:47 PM

Awesome! Thank you!

-Hate

Kingly_Krab 07-04-2014 03:51 PM

You're welcome.


All times are GMT -4. The time now is 10:35 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.