ESODecoded

ChargeItemWithSoulGem

ESO Lua API function — used by 30 of the 3,030 addons we indexed (combined 5,088,978 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

ChargeItemWithSoulGem([Bag|#Bag] itemToChargeBagId, integer itemToChargeSlotIndex, [Bag|#Bag] soulGemToConsumeBagId, integer soulGemToConsumeSlotIndex)

Real usage — from Auto Recharge (and repair)

		Recharge.noChargeChangeEvents[slotIndex] = true
		ChargeItemWithSoulGem(bagId,slotIndex,gem.bag,gem.index)

Short excerpt from the shipping addon Auto Recharge (and repair)its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Auto Recharge (and repair)1,014,626
AlphaGear 2 (Builds, Gear, Skills, Banking)848,683
WPamA (What Pledges at my Alts)735,283
Dressing Room for Stonethorn527,263
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232
Wizard's Wardrobe481,038