[Quest API] Add HasItemOnCorpse() to Perl/Lua (#3824)

# Perl
- Add `$client->HasItemOnCorpse(item_id)`.

# Lua
- Add `client:HasItemOnCorpse(item_id)`.

# Notes
- Allows operators to see if a player has an item on any of their corpses.
- May need to address having to allocate and deallocate memory for every corpse that could possibly exist for a player.
This commit is contained in:
Alex King
2023-12-30 23:09:48 -05:00
committed by GitHub
parent 87e63e1e36
commit 6c18cd0bee
7 changed files with 52 additions and 8 deletions
+1
View File
@@ -487,6 +487,7 @@ public:
void RemoveEbonCrystals(uint32 amount);
void RemoveRadiantCrystals(uint32 amount);
void SummonItemIntoInventory(luabind::object item_table);
bool HasItemOnCorpse(uint32 item_id);
void ApplySpell(int spell_id);
void ApplySpell(int spell_id, int duration);