Post Reply Home » Forums » Lord of the Rings Online » LOTRO - Bots and Hacks » LOTROExtreme

Sound on low Morale : LOTROExtreme

Posted: August 2nd, 2007
Total Posts:14 Joined:2005
I'de like to have a sound playing when I hit 20% on morale. Is it possible? Thx.
Posted: August 2nd, 2007
User avatar
administrator
Total Posts:29918 Joined:2002
Ill pass that along :)
Posted: September 9th, 2007
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
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
Total Posts:14 Joined:2005
Nice. Thx a lot. I'll try it out.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 4 guests
Post Reply