[Quest API] Add Bandolier Methods (#4635)

This commit is contained in:
Alex King authored and GitHub committed 2025-02-03 04:03:27 -06:00
1 parent f466964db8
commit 1cf7709c9d
6 files changed
+108

No files matched your search

+45
View File
@@ -13450,3 +13450,48 @@ std::string Client::GetAccountBucketRemaining(std::string bucket_name)
return DataBucket::GetDataRemaining(k);
}
std::string Client::GetBandolierName(uint8 bandolier_slot)
{
if (!EQ::ValueWithin(bandolier_slot, 0, 3)) {
return std::string();
}
return GetPP().bandoliers[bandolier_slot].Name;
}
uint32 Client::GetBandolierItemIcon(uint8 bandolier_slot, uint8 slot_id)
{
if (
!EQ::ValueWithin(bandolier_slot, 0, 3) ||
!EQ::ValueWithin(slot_id, 0, 3)
) {
return 0;
}
return GetPP().bandoliers[bandolier_slot].Items[slot_id].Icon;
}
uint32 Client::GetBandolierItemID(uint8 bandolier_slot, uint8 slot_id)
{
if (
!EQ::ValueWithin(bandolier_slot, 0, 3) ||
!EQ::ValueWithin(slot_id, 0, 3)
) {
return 0;
}
return GetPP().bandoliers[bandolier_slot].Items[slot_id].ID;
}
std::string Client::GetBandolierItemName(uint8 bandolier_slot, uint8 slot_id)
{
if (
!EQ::ValueWithin(bandolier_slot, 0, 3) ||
!EQ::ValueWithin(slot_id, 0, 3)
) {
return std::string();
}
return GetPP().bandoliers[bandolier_slot].Items[slot_id].Name;
}