You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Saturday, June 23rd 2012, 7:33pm

Healbot now works with new classes

My wife uses Healbot and when the new classes came out it started acting dumb. So I went through the code and fixed the class references. I had to change every line that referred to the class table including adding 2 colors for the new classes. Since it won't let me attach files for some reason I will post the code.

EDIT- I contacted the author and have updated these changes to a new version of Healbot. I will leave these instructions here for anyone that might have a reason not to update.

----------------------------------------------------
To install go to you edit these 2 files into your addons folder\Healbot. Make sure you back-up the existing files just in case.

In SetSkillTxt.lua do the following:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
classeZ = {
    [1] = "Priest";
    [2] = "Scout";
    [3] = "Rogue";
    [4] = "Warrior";
    [5] = "Knight";
    [6] = "Mage";
    [7] = "Warden";
    [8] = "Druid";
    [9] = "Champion"; [B]<--add this line[/B]
    [10] = "Warlock"; [B]<-- add this line[/B]
}

classeZZ = {
    [1] = "Priester";
    [2] = "Kundschafter";
    [3] = "Schurke";
    [4] = "Krieger";
    [5] = "Ritter";
    [6] = "Magier";
    [7] = "Bewahrer";
    [8] = "Druide";
    [9] = "Meister"; [B]<--add this line[/B]
    [10] = "Hexenmeister";  [B]<--add this line[/B]


If you are using German for some reason go to SetSkillTxtDe.lua and do the same thing in the appropriate blocks.

The main file Healbot.lua had several changes to it. I will list the changes below.
First find the line that says function Healbot_SkillColor and add the lines in bold.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function Healbot_SkillColor(c1)
    if c1 == 1 or c1 == 5 or c1 == 6 or c1 == 7 or c1 == 8 then
        return hbskcol[1]['r'],hbskcol[1]['g'],hbskcol[1]['b'],hbskcol[1]['a']
    elseif c1 == 2 then
        return hbskcol[3]['r'],hbskcol[3]['g'],hbskcol[3]['b'],hbskcol[3]['a']
    elseif c1 == 3 then
        return hbskcol[4]['r'],hbskcol[4]['g'],hbskcol[4]['b'],hbskcol[4]['a']
    elseif c1 == 4 then
        return hbskcol[2]['r'],hbskcol[2]['g'],hbskcol[2]['b'],hbskcol[2]['a']
    [B]elseif c1 == 9 then
        return hbskcol[2]['r'],hbskcol[2]['g'],hbskcol[2]['b'],hbskcol[2]['a']
    elseif c1 == 10 then
        return hbskcol[3]['r'],hbskcol[3]['g'],hbskcol[3]['b'],hbskcol[3]['a'][/B]
    end
end


Directly below that is a section called function indexClass. Make the corrections listed in the code.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function indexClass(arg1)
    local c1,c2 = UnitClass(arg1);
    
    for i = 1, 8 do[B] <--Change this line from "for i = 1, 8 do"  to  "for i = 1, 10 do[/B]"
        if c1 == classeZ[i] or c1 == classeZZ[i] then
            c1 = i;
        end
    end
    for j = 1, 8 do [B]<--Change this line from "for j = 1, 8 do"  to  "for j = 1, 10 do[/B]"
        if c2 == classeZ[j] or c2 == classeZZ[j] then
            c2 = j;
        elseif c2 == "" then
            c2 = 9; [B]<--Change this line to read "c2 = 11;[/B]"
        end
    end
    return c1,c2
end

OK! only 2 more changes to make...

Find the section called local skcol and add the lines numbered [9], [10], and [11]

Source code

1
2
3
4
5
6
7
8
9
10
11
12
local skcol = {
    [1] = "|cff77ccff";        --Priest    lt blue
    [2] = "|cff77cc44";        --Scout     green
    [3] = "|cffbbbbbb";        --Rogue     grey
    [4] = "|cffff6666";        --Warrior     red
    [5] = "|cffdddd33";        --Knight     yellow
    [6] = "|cff5588ff";        --Mage         dk blue
    [7] = "|cff77cc44";        --Warden     green
    [8] = "|cff77cc99";        --Druid     darker green
    [9] = "|cff778899";        --Champion     light slate gray
    [10] = "|cff800080";    --Warlock     purple
    [11] = "";                 --empty


And the last change, right below that section is one called function Healbot_ClassColor. Change the folloing line in that section.

Source code

1
    if c2 == 1 or c2 == 2 or c2 == 3 or c2 == 4 or c2 == 5 or c2 == 6 or c2 == 7 or c2 == 8 then


to read:

Source code

1
    if c2 == 1 or c2 == 2 or c2 == 3 or c2 == 4 or c2 == 5 or c2 == 6 or c2 == 7 or c2 == 8 or c2 == 9 or c2 == 10 then


I showed all the changes so that if someone was interested, they could make them and maybe learn a bit of code along with me.

Posts: 70

Location: Austin, Texas

Occupation: Quality Assurance Manager

  • Send private message

2

Sunday, July 15th 2012, 7:14am

Heal-Bot-2 manual fixes.

Manually edit the following files and this will fix Heal-Bot-2 for use with any Dwarf class players in the party/raid.

/heal-bot-2/Init/Init.lua

At line 248 in the "HB2.constants.color.classColor" array, add the following two lines of code following the Druid entry:

Source code

1
2
    ['HARPSYN']     = { r = 0.380 , g = 0.170 , b = 0.910 },
    ['PSYRON']      = { r = 0.190 , g = 0.150 , b = 0.950 },


heal-bot-2\Var_Lang\HB2.ENUS.lua (Same idea applies to the other translation files)

Copy the ['WARRIOR'] definition in the HB2.healingBuffs section and paste it two time at the end of the section, changing "WARRIOR" to read "PSYRON" and "HARPSYN" respectively.

Source code

1
2
3
4
5
6
7
8
[CODE]['PSYRON'] = {
        ['Regenerate']                 = { art = 2, skill = "Regenerate" },
        ['Holy Aura']                 = { art = 1, skill = "Holy Aura" },
     },
    ['HARPSYN'] = {
        ['Regenerate']                 = { art = 2, skill = "Regenerate" },
        ['Holy Aura']                 = { art = 1, skill = "Holy Aura" },
    },


Next in the HB2.healing section, copy the ['AUGUR'] definition (this is Priest) and paste it two times at the end of the section as ['PSYRON'] and ['HARPSYN']. I've removed the secondary class options for Warden, Druid, Scout and Knight as these classes aren't available to the Dwarf.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      ['PSYRON'] = {
        ['Urgent Heal']                 = { art  = 2, skill = "Urgent Heal" }, -- 1 = Casting w.o. targeting. 2 =  Casting w. targeting.
        ['Regenerate']                     = { art = 2, skill = "Regenerate" },
        ['Holy Aura']                     = { art = 1, skill = "Holy Aura" },
        ['Healing Salve']                 = { art = 2, skill = "Healing Salve" },
        ['Heal']                        = { art = 2, skill = "Heal" },
        ['Wave Armor']                     = { art = 2, skill = "Wave Armor" },
        ['Soul Source']                 = { art = 1, skill = "Soul Source" },
        ['Resurrection']                = { art = 3, skill = "Resurrection" }, -- 3 = Rezz... 
        ['Blessing of Humility']         = { art = 1, skill = "Blessing of Humility" },
        ['Group Heal']                     = { art = 1, skill = "Group Heal" },
        ['Holy Candle']                 = { art = 1, skill = "Holy Candle" },
        ['Cleanse']                     = { art = 2, skill = "Cleanse" },
        ['Remove Curse']                 = { art = 2, skill = "Remove Curse" },
    },
    ['HARPSYN'] = {
         ['Urgent Heal']                 = { art = 2, skill = "Urgent Heal"  }, -- 1 = Casting w.o. targeting. 2 = Casting w. targeting.
        ['Regenerate']                     = { art = 2, skill = "Regenerate" },
        ['Holy Aura']                     = { art = 1, skill = "Holy Aura" },
        ['Healing Salve']                 = { art = 2, skill = "Healing Salve" },
        ['Heal']                        = { art = 2, skill = "Heal" },
        ['Wave Armor']                     = { art = 2, skill = "Wave Armor" },
        ['Soul Source']                 = { art = 1, skill = "Soul Source" },
        ['Resurrection']                = { art = 3, skill = "Resurrection" }, -- 3 = Rezz... 
        ['Blessing of Humility']         = { art = 1, skill = "Blessing of Humility" },
        ['Group Heal']                     = { art = 1, skill = "Group Heal" },
        ['Holy Candle']                 = { art = 1, skill = "Holy Candle" },
        ['Cleanse']                     = { art = 2, skill = "Cleanse" },
        ['Remove Curse']                 = { art = 2, skill = "Remove Curse" },
    },

3

Sunday, July 15th 2012, 9:51pm

Interesting. I did not know there was an issue with raids. I will look at getting this into the next update. :cool:

If anyone has any other issues with healbot or fixes just let me know. I help maintain it and will look at getting fixes into to updates.

Posts: 70

Location: Austin, Texas

Occupation: Quality Assurance Manager

  • Send private message

4

Monday, July 16th 2012, 1:00pm

The first fix I listed above took care of the problem that HB2 had with Champions and Warlocks in the party or raid. As soon as it encountered one, it would not show them or any following players in the raid display. The second set of fixes took care of HB2 flat out refusing to load if the player had a Champion or Warlock primary class.