[Feature] Add humanoid and non-wielded restrictions to pick pocket (#2276)

* Add humanoid and non-wielded restructions to pick pocket

* Use constants for message string and char color

* Fixed more magic #s

* Fix to include valie bodytypes

* Fix incorrect scope of final else

* My extra message was not needed.  Client handles based on packet reply

* Removed string ID I added - issued by client

* Use existing pick pocket reply function / clean up
This commit is contained in:
Paul Coene
2022-07-02 23:02:43 -04:00
committed by GitHub
parent 30f35a920b
commit 5c60913583
2 changed files with 14 additions and 19 deletions
+1 -1
View File
@@ -1867,7 +1867,7 @@ void NPC::PickPocket(Client* thief)
continue;
auto item_test = database.GetItem(item_iter->item_id);
if (item_test->Magic || !item_test->NoDrop || item_test->IsClassBag() || thief->CheckLoreConflict(item_test))
if (item_test->Magic || !item_test->NoDrop || item_test->IsClassBag() || thief->CheckLoreConflict(item_test) || item_iter->equip_slot != EQ::invslot::SLOT_INVALID)
continue;
loot_selection.push_back(std::make_pair(item_test, ((item_test->Stackable) ? (1) : (item_iter->charges))));