Baltyre
07-26-2019, 06:27 PM
I'm looking for a way, to automaticly add all my toons in vuhdo private tank pannel and sort them by their slot number in isboxer.
I'm really no good in lua coding, never write an addon or anything. So i did try something really dirty that seems to work (at least, at first glance), i'm wondering if that could be of any interest for someone and if that could be done in a more proper way.
I've got something like this in my Vudho lua :
do_quickRaidReload = false
if IsAddOnLoaded("Isboxer" ) then
if isboxer_load == false and not InCombatLockdown() then
table.wipe(VUHDO_PLAYER_TARGETS);
end
for value, data in pairs( isboxer.CharacterSet ) do
if value == "Members" then
for slot, isboxerCharacterName in pairs( data ) do
isboxerCharacterName = gsub(isboxerCharacterName, "%-[^|]+", "")
if tName == isboxerCharacterName then tInfo["sortMaxHp"] = tInfo["sortMaxHp"]+(1000000*slot); end
if isboxer_load == false and not InCombatLockdown() then
VUHDO_PLAYER_TARGETS[isboxerCharacterName] = true;
do_quickRaidReload = true;
end
if VUHDO_RAID_NAMES[isboxerCharacterName] ~= nil then
VUHDO_PLAYER_TARGETS[isboxerCharacterName] = true;
do_quickRaidReload = true
end
end
end
end
if do_quickRaidReload == true then
isboxer_load = true;
VUHDO_quickRaidReload();
end
end
(full file here : https://pastebin.com/m7150cNU)
My character in private tank are set to be sort by max hp in reverse order.
Seems to work, but i probably did things wrong and idk if it result in unnecessary cpu increase.
I'm really no good in lua coding, never write an addon or anything. So i did try something really dirty that seems to work (at least, at first glance), i'm wondering if that could be of any interest for someone and if that could be done in a more proper way.
I've got something like this in my Vudho lua :
do_quickRaidReload = false
if IsAddOnLoaded("Isboxer" ) then
if isboxer_load == false and not InCombatLockdown() then
table.wipe(VUHDO_PLAYER_TARGETS);
end
for value, data in pairs( isboxer.CharacterSet ) do
if value == "Members" then
for slot, isboxerCharacterName in pairs( data ) do
isboxerCharacterName = gsub(isboxerCharacterName, "%-[^|]+", "")
if tName == isboxerCharacterName then tInfo["sortMaxHp"] = tInfo["sortMaxHp"]+(1000000*slot); end
if isboxer_load == false and not InCombatLockdown() then
VUHDO_PLAYER_TARGETS[isboxerCharacterName] = true;
do_quickRaidReload = true;
end
if VUHDO_RAID_NAMES[isboxerCharacterName] ~= nil then
VUHDO_PLAYER_TARGETS[isboxerCharacterName] = true;
do_quickRaidReload = true
end
end
end
end
if do_quickRaidReload == true then
isboxer_load = true;
VUHDO_quickRaidReload();
end
end
(full file here : https://pastebin.com/m7150cNU)
My character in private tank are set to be sort by max hp in reverse order.
Seems to work, but i probably did things wrong and idk if it result in unnecessary cpu increase.