Page 1 of 1

Sound on low Morale

Posted: August 2nd, 2007, 10:42 am
by loregaba
I'de like to have a sound playing when I hit 20% on morale. Is it possible? Thx.

Posted: August 2nd, 2007, 11:17 am
by Tault_admin
Ill pass that along :)

Posted: September 9th, 2007, 2:24 pm
by ergotamine
you could prob find a code to do that with AutoIT pretty easily, if not find something similar and change it up for LOTRO

make it read the color of the pixels in your health bar and alert when it gets to a specific pixel...

if your a good coder you could make it Find the health bar first and go from there, otherwise your gona have to code it for your own screen settings and health bar locations ect... so prob just as easy to code your own rather than fixing someone elses code for your screen...

AutoIT has a "Window Info" tool that will tell you which window to put in focus and if you goto the mouse section of the window info tool it will tell you exactly which X,Y pixel your on and what color it is in Hex allowing you to figure out exactly what you want to work with...

Posted: September 9th, 2007, 10:06 pm
by pimpoo
yes it is possible with this version of LotroExtreme

Code: Select all

if GetPlayerHealth() < 20 then Call Sound.PlaySoundFile (GetEnv("windir") + "\Media\notify.wav")

GetPlayerHealth() is function implemented in LotroServices that returns player health in % of maximum health like 100,98,99 ...

Posted: September 10th, 2007, 7:45 am
by loregaba
Nice. Thx a lot. I'll try it out.