Buff IDs?

Langues: JP EN DE FR
users online
Forum » Windower » Support » Buff IDs?
Buff IDs?
 Lakshmi.Elidyr
Offline
Serveur: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2016-01-14 09:32:10
Link | Citer | R
 
Is there a function to compare on a buff gain event if it matches a string instead of giving the ID? Maybe I am missing it?
 Ragnarok.Kenshi
Offline
Serveur: Ragnarok
Game: FFXI
user: KenshiDRK
Posts: 123
By Ragnarok.Kenshi 2016-01-14 10:11:57
Link | Citer | R
 
Code
res = require 'resources'

windower.register_event('gain buff', function(buff)
    
    local buff_name = res.buffs[buff].name
    
    if buff_name == 'Protect' then
        print('foo')
    end
    
end)
 Lakshmi.Elidyr
Offline
Serveur: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2016-01-14 10:15:24
Link | Citer | R
 
Thank you very much.
 Lakshmi.Elidyr
Offline
Serveur: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2016-01-14 23:06:37
Link | Citer | R
 
Got any info on Party buffs? I cant sign up to windower forums so have to use here.
Log in to post.