Download
(8 Kb)
Download
Updated: 02/17/24 10:34 AM
Pictures
File Info
Compatibility:
Scions of Ithelia (9.3.0)
Endless Archive (9.2.5)
Updated:02/17/24 10:34 AM
Created:06/04/14 03:42 PM
Monthly downloads:467
Total downloads:102,647
Favorites:225
MD5:
Categories:Combat Mods, Action Bar Mods, Buff, Debuff, Spell
9.3.0
Harven's Potions Alert  Popular! (More than 5000 hits)
Version: 2.2.0
by: Harven, votan
Version 2.0.0 is a major update
Please backup your Saved Variable.
Check your settings afterwards.
DependenciesDescription
This addon will automatically select a presetted quickslot when one of player attibutes drop below defined value. It will also show an alert window with selected quickslot item icon and reminder message to press the quickslot key. There are three quickslots that can be defined in the addon setting window together with threshold values (health, magicka and stamina). The alert window position can be changed by dragging it. Health alert has the highest priority.

Addon idea by JadeKnightblazer: http://www.esoui.com/forums/showthread.php?t=1703

Special Thanks
- Votan for providing some cool ideas and code that works

Donations
If you like my work you can make me happy by sending some in-game gold/items to @theharven on EU server (but please, no lockpicks ), eventually you can help me pay my monthly subscription by donating some money.

[Edit 09.31.2015]
Since monthly subscription is no longer required to play the game I decided to transfer all future dontations to charity. There is a polish site where you can chose a person you would like to support (mostly children) https://www.siepomaga.pl/. I will be anonymously transfering your donations there, to a person of my choosing and then I will post a link in The Great Donor Hall so you will know who gets your money I would love to help this people so I hope this doesn't discourages you from donating.



version 2.2.0:
- New features:
* Store slot settings per group role.
* Save and restore slot settings at armory station.

Both off by default.

version 2.1.1:
- Fixed issue with selecting potions outside configuration.

version 2.1.0:
- Update for Necrom: Fixed slot selection wheel in the settings.

version 2.0.0:
- Major update for High Isle. Please backup your Saved Variables before updating!

Version 1.10
- Removed LibStub,
- Removed embedded LibHarvensAddonsSettings, please download it separately,
- API version changed to 100030.

Version 1.9
- Fixed radial menu behaviour when closed with esc key,
- Fixed libHarvensAddonSettings library,
- API version changed to 100024

Version 1.8b
- LibStub updated to the latest version,
- API version changed to 100020

Version 1.8a
- API version changed to 100019

Version 1.8
- Fixed "slot not saving" issue (it was actually saving but UI showed wrong name on the button and icon in the popup),
- API version changed to 100018

Version 1.7a
- API version changed to 100017

Version 1.7
- API version changed to 100016,
- Updated LHAS, thanks Votan :)

Version 1.6c
- API version changed to 100015.

Version 1.6b
- API version changed to 100014.

Version 1.6a
- API version changed to 100013.

Version 1.6
- API version changed to 100012,
- New version of LibHarvensAddonSettings - thanks to Votan :)

Version 1.5a
- Fix: disabled cooldown alert notification mouse input when the notification is hidden.

Version 1.5
- Votan made nicer slot selection radial menu with key-binds - thanks!

Version 1.4
- API version changed to 100011,
- Added potion readiness alert

Version 1.3
- Changed the alert display condition. Should work more reliable now.

Version 1.2
- Added an option to scale the alert window (by mouse wheel and by a slider in the options menu) thanks to Votan.

Version 1.1d
- API version changed to 100010,
- New version of LibHarvensAddonSettings (thanks to Garkin).

Version 1.1c
- API version changed to 100009.

Version 1.1b
- Show the alert only while in combat (turned off for debugging and forgot to turn it back on :))

Version 1.1a
- API version changed to 100008.

Version 1.1
- Settings moved to "Add-ons" menu (using Harven's Addon Settings library),
- Slightly changed slot selection in the options menu due to API changes (I think it's better now :) ),
- API version changed,
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.11
8kB
06/18/22 04:21 PM
Patch


Archived Files (25)
File Name
Version
Size
Uploader
Date
2.1.1
7kB
votan
07/30/23 07:15 AM
2.1.0
7kB
votan
06/18/23 10:46 AM
2.0.0
7kB
votan
06/19/22 05:24 AM
1.10
6kB
Harven
03/29/20 02:10 PM
1.9
13kB
Harven
08/15/18 05:24 PM
1.8b
13kB
Harven
08/14/17 03:12 PM
1.8a
13kB
Harven
05/23/17 12:58 PM
1.8
13kB
Harven
02/12/17 09:47 AM
1.7a
13kB
Harven
10/05/16 02:26 PM
1.7
13kB
Harven
08/01/16 03:01 PM
1.6c
14kB
Harven
06/02/16 02:00 PM
1.6b
13kB
Harven
03/07/16 05:41 PM
1.6a
13kB
Harven
11/02/15 09:58 AM
1.6
13kB
Harven
09/01/15 04:37 PM
1.5a
12kB
Harven
04/22/15 01:48 PM
1.5
12kB
Harven
03/27/15 05:41 PM
1.4
11kB
Harven
03/04/15 02:46 PM
1.3
11kB
Harven
12/09/14 07:37 AM
1.2
11kB
Harven
12/05/14 02:26 PM
1.1d
10kB
Harven
11/04/14 02:45 PM
1.1c
10kB
Harven
09/16/14 04:41 PM
1.1b
10kB
Harven
08/05/14 04:36 PM
1.1a
10kB
Harven
08/05/14 04:19 PM
1.1
10kB
Harven
06/25/14 03:03 PM
1.0
4kB
Harven
06/04/14 03:42 PM


Post A Reply Comment Options
Unread 11/04/14, 02:43 PM  
Harven
 
Harven's Avatar
AddOn Author - Click to view AddOns

Forum posts: 135
File comments: 275
Uploads: 31
Hey Votan,
I can't agree with your explanation. Let's say your last alert was highest priority health alert but your health is now above the threshold so the popup dissapeared. HarvensPotionsAlert.isAlertHidden is true now, so this whole condition:
Lua Code:
  1. if not HarvensPotionsAlert.isAlertHidden
  2.         and HarvensPotionsAlert.alertPowerType ~= powerType
  3.         and HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then
is false because the first condition isn't met, and for example some lower priority alert can be displayed. This condition is here so lower priority alerts will not popup when there is a higher priority alert already visible.

Originally Posted by votan
Originally Posted by ferzal
I have to add that this also doesn't work for me. No alert. No pot change. I've set the pots correctly and changed the threshold just to be sure there's a value written and the addon seems to do nothing. Is it working for anyone?
Yes and no. There is a bug: HarvensPotionsAlert.alertPowerType never resets to "normal". Once the highest prio slot was activated no lower prio is handled anymore and the highest prio is not shown, because it is already "active".

Try to change these lines in PowerUpdate
Code:
	if not HarvensPotionsAlert.isAlertHidden 
		and HarvensPotionsAlert.alertPowerType ~= powerType
		and HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then
			return
	end
	
	local val = 100*powerValue/powerMax
	if val > HarvensPotionsAlert.sv.slots[powerType].treshold then
		return
	end
to
Code:
  if not HarvensPotionsAlert.isAlertHidden and HarvensPotionsAlert.alertPowerType ~= powerType then
    if HarvensPotionsAlert.alertPowerType ~= POWERTYPE_INVALID and HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] ~= nil then
      if HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then return end
    end
  end

  local val = 100*powerValue/powerMax
  if val > HarvensPotionsAlert.sv.slots[powerType].treshold then
    -- Highest priority and nothing to do => reset to "normal"
    HarvensPotionsAlert.alertPowerType = POWERTYPE_INVALID
    return
  end
Report comment to moderator  
Reply With Quote
Unread 11/04/14, 02:52 PM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1674
Uploads: 40
Originally Posted by Teryl
I got the following error this evening after installing eso 1.5.2 update


2014-11-04T20:15:10.139+12:00 |cff0000Lua Error: EsoUI/Common/ZO_Options/ZO_SharedOptions.lua:23: attempt to index a nil value
stack traceback:
EsoUI/Common/ZO_Options/ZO_SharedOptions.lua:23: in function 'ZO_SharedOptions:InitializeControl'
EsoUI/Common/ZO_Options/Keyboard/ZO_Options_Keyboard.lua:61: in function 'ZO_KeyboardOptions:InitializeControl'
EsoUI/Common/ZO_Options/Keyboard/ZO_Options_Keyboard.lua:98: in function 'ZO_OptionsWindow_InitializeControl'
user:/AddOns/HarvensPotionsAlert/libs/LHAS/LibHarvensAddonSettings.lua:628: in function 'AddonSettings:AddToOptionsPanel'
user:/AddOns/HarvensPotionsAlert/libs/LHAS/LibHarvensAddonSettings.lua:806: in function 'OptionsWindowFragmentStateChange'
EsoUI/Libraries/Utility/ZO_CallbackObject.lua:86: in function 'ZO_CallbackObject:FireCallbacks'
EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:234: in function 'ZO_Scene:SetState'
EsoUI/Libraries/ZO_Scene/ZO_SceneManager.lua:113: in function 'ZO_SceneManager:ShowScene'
EsoUI/Libraries/ZO_Scene/ZO_SceneManager.lua:327: in function 'ZO_SceneManager:OnSceneStateChange'
EsoUI/Ingame/Scenes/IngameSceneManager.lua:221: in function 'ZO_IngameSceneManager:OnSceneStateChange'|r
It is an API change effecting the Harven's Addon Settings.
I reposted your issue there and did a hotfix. Hope it helps.
Last edited by votan : 11/06/14 at 10:31 AM.
Report comment to moderator  
Reply With Quote
Unread 11/04/14, 03:01 PM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1674
Uploads: 40
Originally Posted by Harven
Hey Votan,
I can't agree with your explanation. Let's say your last alert was highest priority health alert but your health is now above the threshold so the popup dissapeared. HarvensPotionsAlert.isAlertHidden is true now, so this whole condition:
Lua Code:
  1. if not HarvensPotionsAlert.isAlertHidden
  2.         and HarvensPotionsAlert.alertPowerType ~= powerType
  3.         and HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then
is false because the first condition isn't met, and for example some lower priority alert can be displayed. This condition is here so lower priority alerts will not popup when there is a higher priority alert already visible.

Originally Posted by votan
Originally Posted by ferzal
I have to add that this also doesn't work for me. No alert. No pot change. I've set the pots correctly and changed the threshold just to be sure there's a value written and the addon seems to do nothing. Is it working for anyone?
Yes and no. There is a bug: HarvensPotionsAlert.alertPowerType never resets to "normal". Once the highest prio slot was activated no lower prio is handled anymore and the highest prio is not shown, because it is already "active".

Try to change these lines in PowerUpdate
Code:
	if not HarvensPotionsAlert.isAlertHidden 
		and HarvensPotionsAlert.alertPowerType ~= powerType
		and HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then
			return
	end
	
	local val = 100*powerValue/powerMax
	if val > HarvensPotionsAlert.sv.slots[powerType].treshold then
		return
	end
to
Code:
  if not HarvensPotionsAlert.isAlertHidden and HarvensPotionsAlert.alertPowerType ~= powerType then
    if HarvensPotionsAlert.alertPowerType ~= POWERTYPE_INVALID and HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] ~= nil then
      if HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then return end
    end
  end

  local val = 100*powerValue/powerMax
  if val > HarvensPotionsAlert.sv.slots[powerType].treshold then
    -- Highest priority and nothing to do => reset to "normal"
    HarvensPotionsAlert.alertPowerType = POWERTYPE_INVALID
    return
  end
Hi Harven,

a pleasure to meet you.
Well, it seems, that the animation sometimes get stuck (I saw it) and OnStop is not called and HarvensPotionsAlert.isAlertHidden is still false.
And really, sometimes nothing happens. May I interpreted the code wrong. Timing issues are hard to debug.

I hope you are not pissed off, somehow?
Report comment to moderator  
Reply With Quote
Unread 11/04/14, 03:10 PM  
Harven
 
Harven's Avatar
AddOn Author - Click to view AddOns

Forum posts: 135
File comments: 275
Uploads: 31
Nice to meet you too. I'm not pissed off at all , sorry if you had such an impression when reading my comment.
If that is the case then I must find some other reliable way to make sure that HarvensPotionsAlert.isAlertHidden is in the right state at all time. Unfortunately I can't figure it out right now because my sub is over and I can't renew it in this month.

P.S.
Thanks for the info about my addon settings library. I already included this fixed version in all my addons

Originally Posted by votan
Originally Posted by Harven
Hey Votan,
I can't agree with your explanation. Let's say your last alert was highest priority health alert but your health is now above the threshold so the popup dissapeared. HarvensPotionsAlert.isAlertHidden is true now, so this whole condition:
Lua Code:
  1. if not HarvensPotionsAlert.isAlertHidden
  2.         and HarvensPotionsAlert.alertPowerType ~= powerType
  3.         and HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then
is false because the first condition isn't met, and for example some lower priority alert can be displayed. This condition is here so lower priority alerts will not popup when there is a higher priority alert already visible.

Originally Posted by votan
Originally Posted by ferzal
I have to add that this also doesn't work for me. No alert. No pot change. I've set the pots correctly and changed the threshold just to be sure there's a value written and the addon seems to do nothing. Is it working for anyone?
Yes and no. There is a bug: HarvensPotionsAlert.alertPowerType never resets to "normal". Once the highest prio slot was activated no lower prio is handled anymore and the highest prio is not shown, because it is already "active".

Try to change these lines in PowerUpdate
Code:
	if not HarvensPotionsAlert.isAlertHidden 
		and HarvensPotionsAlert.alertPowerType ~= powerType
		and HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then
			return
	end
	
	local val = 100*powerValue/powerMax
	if val > HarvensPotionsAlert.sv.slots[powerType].treshold then
		return
	end
to
Code:
  if not HarvensPotionsAlert.isAlertHidden and HarvensPotionsAlert.alertPowerType ~= powerType then
    if HarvensPotionsAlert.alertPowerType ~= POWERTYPE_INVALID and HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] ~= nil then
      if HarvensPotionsAlert.powerTypes[powerType] > HarvensPotionsAlert.powerTypes[HarvensPotionsAlert.alertPowerType] then return end
    end
  end

  local val = 100*powerValue/powerMax
  if val > HarvensPotionsAlert.sv.slots[powerType].treshold then
    -- Highest priority and nothing to do => reset to "normal"
    HarvensPotionsAlert.alertPowerType = POWERTYPE_INVALID
    return
  end
Hi Harven,

a pleasure to meet you.
Well, it seems, that the animation sometimes get stuck (I saw it) and OnStop is not called and HarvensPotionsAlert.isAlertHidden is still false.
And really, sometimes nothing happens. May I interpreted the code wrong. Timing issues are hard to debug.

I hope you are not pissed off, somehow?
Report comment to moderator  
Reply With Quote
Unread 11/04/14, 03:23 PM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1674
Uploads: 40
Originally Posted by Harven
Nice to meet you too. I'm not pissed off at all , sorry if you had such an impression when reading my comment.
If that is the case then I must find some other reliable way to make sure that HarvensPotionsAlert.isAlertHidden is in the right state at all time.
I already try my on approach. Because without this addon I am lost.

Originally Posted by Harven
Unfortunately I can't figure it out right now because my sub is over and I can't renew it in this month.
Oh sorry.
Last edited by votan : 11/04/14 at 03:53 PM.
Report comment to moderator  
Reply With Quote
Unread 11/06/14, 12:39 AM  
Jeminai

Forum posts: 0
File comments: 3
Uploads: 0
great addon

Great addon. wouldnt be without it.
has saved my life many times.

1 request: can we scale the alert notification?
Report comment to moderator  
Reply With Quote
Unread 12/06/14, 02:33 AM  
Jeminai

Forum posts: 0
File comments: 3
Uploads: 0
scaleable

thx for the scaling of the alert option. fantastic!
Report comment to moderator  
Reply With Quote
Unread 01/18/15, 03:41 AM  
Brandalf
 
Brandalf's Avatar

Forum posts: 6
File comments: 29
Uploads: 0
Originally Posted by Harven
Hey Brandalf, Morgenes
looks like the slot selection doesn't work with mouse binding. Try to bind some secondary key to quick slot menu and then press that key when selecting the slot from the addon menu.
I haven't checked on add-ons in quite some time so I just caught this reply. I'll give that a try, thanks!
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 02:57 PM  
blacklight25

Forum posts: 0
File comments: 1
Uploads: 0
Hello, Great add-on!

but the pop up alerts do not work for me either, any suggestions?
Report comment to moderator  
Reply With Quote
Unread 03/27/15, 03:52 AM  
Harven
 
Harven's Avatar
AddOn Author - Click to view AddOns

Forum posts: 135
File comments: 275
Uploads: 31
Hey,
are you sure it's configured correctly?

Originally Posted by blacklight25
Hello, Great add-on!

but the pop up alerts do not work for me either, any suggestions?
Report comment to moderator  
Reply With Quote
Unread 04/04/15, 11:15 PM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 178
Uploads: 0
I set the addon up last night and tested it by sprinting until out of stamina and then entered combat. The popup appeared for using a stamina potion. Tonight, I logged on and didn't get the popup when I was about to die. I checked the settings and everything was at the default again. Will test further.

EDIT: Little odd, but after I set it up again, then went back to the settings, the sliders were at the correct spot but the field for selecting the potion to use was empty. It still worked though, so maybe a visual issue. I then quit the client and logged back in and everything looks correct now; the sliders are in the correct spots and it shows the correct potions to use. Not sure why the sliders were set to 0 earlier.
Last edited by BigMons : 04/04/15 at 11:23 PM.
Report comment to moderator  
Reply With Quote
Unread 04/15/15, 09:37 PM  
Izuela
 
Izuela's Avatar

Forum posts: 1
File comments: 10
Uploads: 0
Will this plugin work with Greymind Quick Slot bar?
Report comment to moderator  
Reply With Quote
Unread 04/19/15, 05:01 AM  
Harven
 
Harven's Avatar
AddOn Author - Click to view AddOns

Forum posts: 135
File comments: 275
Uploads: 31
Hey Izuela,
I don't know. You can try and then let us know
Report comment to moderator  
Reply With Quote
Unread 04/21/15, 01:31 AM  
Balver
 
Balver's Avatar
AddOn Author - Click to view AddOns

Forum posts: 39
File comments: 70
Uploads: 2
Hi Harven
I found kind of a bug. Something prevented me of picking locks, so I used "/script d(WINDOW_MANAGER:GetMouseOverControl():GetName())" to see who's the bad guy and this was the result:


The default position of the "potion ready notification" is exactly over the lock pick window. Normally nothing happens because the notification window isn't there, but after it's shown once it blocks lock picking because the notification window gets hidden but not removed.
Report comment to moderator  
Reply With Quote
Unread 04/22/15, 03:58 AM  
Harven
 
Harven's Avatar
AddOn Author - Click to view AddOns

Forum posts: 135
File comments: 275
Uploads: 31
Hey Balver,
I'm not convinced that my addon is the case here. When you pick a lock your mouse is captured by the lock picking scene and that scene should be drawn on top of everything else. Besides the notification window can't be removed - there is no such thing in the eso api, you can only set it to visible or hidden. Could you please disable my addon and then canfirm that the problem is gone?
I'm also using my addon with default notification window position and I never had a problem with lock picking.

Originally Posted by Balver
Hi Harven
I found kind of a bug. Something prevented me of picking locks, so I used "/script d(WINDOW_MANAGER:GetMouseOverControl():GetName())" to see who's the bad guy and this was the result:


The default position of the "potion ready notification" is exactly over the lock pick window. Normally nothing happens because the notification window isn't there, but after it's shown once it blocks lock picking because the notification window gets hidden but not removed.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: