mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
[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:
+1
-1
@@ -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))));
|
||||
|
||||
Reference in New Issue
Block a user