Page 1 of 1

Promised Renewal for hud

Posted: Wed Sep 26, 2007 6:40 pm
by feckxoff
im trying to make a timer or counter for promised renewal in my hud. i would like to have it count down to when it fades off of someone so i know if i need to add in another heal before it goes off.. PR is 18 sec but i cant seem to get the correct code.. anyone know?

thx in advance - and search dident have anyting that i could find usefull

Posted: Wed Sep 26, 2007 10:05 pm
by jacensolo
Are you casting this spell on yourself, or someone else?

If yourself, its easy. Tons of HUDs and lots of macros watch remaining buff duration. Check out ${Me.Buff[]} or if it's a song type buff, ${Me.Song[]}. Wiki is your friend.

If it's cast on another, I can think of 2 ways to do it right now. 1 is to use a macro to set a timer when it saw the casting event go off, the other is to use a command in a hotkey with your spell cast. If you got really creative with either method, you could probably get it to hold multiple casts, in case you cast it on different people. A major factor there would be if you wanted it to store for casts only on group members, or on anyone. Group would be much easier, obviously, because you would have a set max number of people.

Posted: Thu Sep 27, 2007 12:49 am
by feckxoff
well, i need it to give me a count down for other people.. mainly for group. i wanted to put it in my hud but a macro or someting like that will work fine. how would i use it in a hotkey?

Posted: Thu Sep 27, 2007 11:58 am
by jacensolo
I meant using the macro or hotkey to work things to display on your HUD.

Some notes to point you in the right direction: (because I am against the Silver-Platter theory of evolution)

1. Think array. Then think array of 6 (or possibly 5).

2. If you want to count down time, maybe you should look at the timer data type.

3. Logically walk through what you are asking your script to do. Notice me casting, figure out which group member I'm casting on, then store the correct info so it displays in HUD. "Notice me casting" means different things depending on if you are using a hotkey or a macro.

4. Add a HUD entry to watch if there is any information there, and if there is, show it.

For macros, it could get MUCH more complex than that, but to explain it here, without knowledge of the spell, or what info would be nice for it with your play style, I wouldn't be able to explain it.

If you give it a shot (wiki and search (both with the button and with logic) will help) and come back here with some code to post, I'll do my best to help fix any problems you get, or tweak it how you want.

Posted: Thu Sep 27, 2007 2:13 pm
by pw
Take a look at http://www.macroquest2.com/wiki/index.php/Necro_Helper for some ideas. It is based around Dotting a mob, but the principles would apply to what you want.

Also to consider

Posted: Mon Oct 15, 2007 11:50 pm
by Razma
I may be a newb, but I believe that spells like PR work not necessarily for 18 seconds, but 3 ticks. 1 tick = 6 seconds. This is important because if you cast PR right after a tick (lets say 1 second) then for 3 ticks it will actually take 6+6+6+5 = 23 seconds. If you cast it say 1 second just before a tick, it will occur in 6+6+6+1 = 19 seconds. This is because it is a buff. Actual spell casting like Complete healing occurs in real time 10 seconds = 10 seconds. Hope this makes sense.