You should maybe check, before charging, if the slot you want to charge is actually "slotted".
Lua Code:
And doing the recharge in the GetGems function does not make sense, but it's your code and addon. I'd rename that to TryRecharge instead as it will recharg in the end, and not get the soulgem info ;-) And as these kind of addons often heppn to get you disconnected due to death https://www.esoui.com/forums/showthread.php?t=10464 I'd check if the player is dead more than once here before calling the charge API function! Once before your GetGems func is called and once before ChargeItemWithSoulGem is executed then maybe, until this ZOs bug is fixed. |
Quote:
re: the actually slotted weap comment... i believe I am with the isitemchargeable which is in live version. It was commented out for testing purposes. I assume an empty slot isnt chargeable? |
Could be, or it throws an error or it will behave undefined :p So better do the check before, if there is an easy way like this, so it's not even trying to charge that slot.
|
missed this but got it added now.. it'll make the next update.
|
SO... its working great but im noticing its trying to charge twice.. 1st time recharges and 2nd kicks back a "item is already fully charged in top right of screen. In testing with msgs it is applying a recharge twice but no matter what I do I cant get it not to.. any suggestions? Its my last bug I can find in my addon. This is wearing a 2h lightning staff oaken build as well if it matters.
Ive been studying and trying diff ways using ipair/ipairs and indexing etc which is where i feel in my gut the issue is but no changes. Also additional question for the pros.. do or can the "for slotId........." and the "for _, weapon ipairs........" be local? Or they good as is? Ive localized everything in my addon except those types of functions. Code:
function xxx.Initialize() |
OK got it fixed... I had to seperate the get gems function and call to it as previously suggested so it wasn't trying to recharge for each stack of gems i had on me.
|
All times are GMT -6. The time now is 09:55 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI