View Single Post
02/26/23, 07:12 PM   #19
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
i appreciate all the help but nothing has helped at all and its still doing the exactly the same thing.. recharging everything but main hand that needs it. Ive even resorted to try this and not charging it..

Code:
function RidinDirty.GetGems()
	local minimumWeaponCharge = 97
	
	for slotId = 0, GetBagSize(BAG_BACKPACK) do
		if IsItemSoulGem(SOUL_GEM_TYPE_FILLED, BAG_BACKPACK, slotId) then
			local gemSlot = slotId
			local charge, maxCharge = GetChargeInfoForItem(BAG_WORN, EQUIP_SLOT_MAIN_HAND)
			if charge <= minimumWeaponCharge then --and IsItemChargeable(BAG_WORN, weapon) then --and maxCharge ~= 0 then
				ChargeItemWithSoulGem(BAG_WORN, EQUIP_SLOT_MAIN_HAND, BAG_BACKPACK, gemSlot)
				df("CHARGING WORN:" .. BAG_WORN .. " Weap:" .. EQUIP_SLOT_MAIN_HAND .. " BAG:" .. BAG_BACKPACK .. " GEMSLOT:" .. gemSlot)
			end
		end
	end
end
  Reply With Quote