You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Thursday, November 27th 2014, 1:16am

Buff Time Left

Is there a way to return a buff time left value from a macro?

I have been playing with this function, but can't seem to get what I want: GetPlayerBuffLeftTime

I would like to identify the buff by name or ID, then have it return a number of seconds left on the buff, but I can't seem to make it happen. Thanks for any ideas.

2

Thursday, November 27th 2014, 1:44am

Given a buff named "search_name" --- such as "Enhanced Armor"

Source code

1
/run for i=1,50 do local buff_name, buff_icon,buff_count, buff_ID, buff_params = UnitBuff("player",i) if buff_name == search_name then Msg(tostring(UnitBuffLeftTime("player", i))) end end


or an ID "Buff_ID" --- such as 500141

Source code

1
/run for i=1,50 do local buff_name, buff_icon,buff_count, buff_ID,buff_params = UnitBuff("player",i) if buff_ID == search_ID then Msg(tostring(UnitBuffLeftTime("player", i))) end end



This posts the time in chat window. Modify as necessary.

3

Thursday, November 27th 2014, 1:40pm

Extra actionbar add-on ghastly a timer built-in that shows on the bar time remaining on the buff
Zymologist wl/ch/m/p
Matronmalice p/s/m
Ceviche wl/ch