View Full Version : WaaaghBar
StrikingCobra
03-12-2009, 11:12 AM
Folks, I'm using the WaaaghBar by Lingy, but he has now stopped updating it. It needs a simple fix, that I think I can probably do (I'm a ex programmer, but have not used Lua), but I'm stuck as to how to get values.
I'm assuming that the Slayer and Choppa have some form of classIds (from looking at the code I think IronBreaker is 20 for example) , but I cannot see how I can get hold of the new values so that I can add them to the array.
Any ideas?
computerpunk
03-12-2009, 11:37 AM
I would say going by career lines:
local career = GameData.Player.career.line
and they are:
GameData.CareerLine.
WARRIOR = 14, -- Marauder
ARCHMAGE = 20,
SHAMAN = 7,
ASSASSIN = 22, -- Witch Elf
SHADE = 21, -- Black Guard
SHADOW_WARRIOR = 18,
IRON_BREAKER = 1,
KNIGHT = 10,
SLAYER = 2,
CHOPPA = 6,
BLOOD_PRIEST = 23,
MAGUS = 16,
SEER = 19,
SWORDMASTER = 17,
RUNE_PRIEST = 3,
CHOSEN = 13,
SQUIG_HERDER = 8,
WARRIOR_PRIEST = 12,
SORCERER = 24,
WITCH_HUNTER = 9,
BLACK_ORC = 5,
ZEALOT = 15,
BRIGHT_WIZARD = 11,
ENGINEER = 4,
StrikingCobra
03-12-2009, 11:55 AM
Thanks, those numbers certainly look more sensible than the ones I'm seeing. In the code I have...
local Career = {
[20] = "IRB", -- IronBreaker
[100] = "SWO", -- Swordmaster
[60] = "WIT", -- Witch Hunter
[102] = "LIO", -- White Lion
[62] = "WIZ", -- Bright Wizard
[23] = "ENG", -- Engineer
[101] = "SHD", -- Shadow Warrior
[63] = "WRP", -- Warrior Priest
[103] = "ARC", -- Archmage
[22] = "RUP", -- Rune Priest
[61] = "KBS", -- Knight of the Blazing Sun
[104] = "BKG", -- Blackguard
[66] = "ZEA", -- Zealot
[26] = "SHA", -- Shaman
[67] = "MAG", -- Magus
[107] = "SOC", -- Sorcerer
[27] = "SQH", -- Squig Herder
[106] = "DOK", -- Disciple of Khaine
[65] = "MAR", -- Marauder
[105] = "WEF", -- Witch Elf
[24] = "ORC", -- Black Orc
[64] = "CHO", -- Chosen
}
Which doesn't fit with the ones you have (although the ones you gave look more likely!) - do these mean anything to you?
Cheers
Mike
computerpunk
03-12-2009, 12:00 PM
If you have them set like that, I could give you the other two:
[25] On the Choppa
[21] On the Hammerer(Slayer)
There are two ways of checking career lines. I posted one, and you got the other one.
More info on the Contents of GameData (http://www.thewarwiki.com/wiki/API:Contents_of_GameData) @ WarWiki (http://thewarwiki.com/). Your way uses local variables which I would say are quicker than the way posted by me. Using both local and global ones.
StrikingCobra
03-12-2009, 12:12 PM
Thanks a lot, we have downtime here at the moment, so I can't test, but I wil see how it goes.
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.