Originally Posted by
mrbob
Trying to get Starfall to pop with 15 seconds of Incarnation: Chosen of Elune buff left but after hours of trying and no guides on how to do basic stuff im stuck and need some help.
if UnitBuffID("player", 102560) - GetTime() < 16 then
return true
end
Tried so many different methods without success, so a some help would be appreciated.
You need to define what you're wanting to check in UnitBuff. Take a look at the return arguments API UnitBuff - WoWWiki - Your guide to the World of Warcraft and count from 1 in order from top to bottom, whichever argument you want to check is the number you're going to use in your check.
PHP Code:
if select(7, UnitBuffID("player", 102560)) - GetTime() <= 15 then
CastSpellByName(tostring(GetSpellInfo(48505)))
end