Buff IDs?

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » Buff IDs?
Buff IDs?
 Lakshmi.Elidyr
Offline
サーバ: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2016-01-14 09:32:10  
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
サーバ: Ragnarok
Game: FFXI
user: KenshiDRK
Posts: 123
By Ragnarok.Kenshi 2016-01-14 10:11:57  
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
サーバ: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2016-01-14 10:15:24  
Thank you very much.
 Lakshmi.Elidyr
Offline
サーバ: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2016-01-14 23:06:37  
Got any info on Party buffs? I cant sign up to windower forums so have to use here.
Log in to post.