Log in

View Full Version : Get ItemType through Perl?


Hateborne
07-03-2014, 04:22 PM
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 (http://cpp.pastebin.mozilla.org/5514813) 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.