Function has_item_equipped

Source
pub fn has_item_equipped(pid: u16, ref_id: &str) -> bool
Expand description

Check whether a player has equipped an item with a certain refId in any slot.

pid The player ID.
ref_id The refId of the item.

Returns whether the player has the item equipped.