Hello,
I wanted to know if there is a way to get the player.target buffactive[] for people in party ?
the same way we get our own ones.
Thank you.
Posted 25 September 2015 - 11:35 AM
Hello,
I wanted to know if there is a way to get the player.target buffactive[] for people in party ?
the same way we get our own ones.
Thank you.
Posted 25 September 2015 - 07:18 PM
partybuffs[index].buffs[n]
index = the index id of the party member
n = is the buff slot number
here is some untested code
function check_for_party_buff(buff_name) if partybuffs[player.target_index] then for _,v in pairs(partybuffs[player.target_index].buff) do buff = gearswap.res.buffs[v].name if buff == buff_name then return true end end end end buff_name = the name of the buff you want to see if the party member has check like this if check_for_party_buff(buff_name) then --do somthing end
Posted 29 September 2015 - 09:33 AM
I just tried, it doesn't work.
The lua doesn't seem to find what's partybuffs table.
I get this error :
Posted 29 September 2015 - 10:08 PM
local name = windower.ffxi.get_mob_by_index(data:unpack('H',i*48+5+4)).name partybuffs[name] = { index = data:unpack('H',i*48+5+4), buffs = {} }
The table is indexed by name.
0 members, 1 guests, 0 anonymous users