Neth
BETA Tester
Hi, i've been stuck for a good 20 minutes, i've been looking over the internet but I can't seem to type the correct keyword to findthe solution to my problem.
my problem is the following :
bad argument #2 to 'EquipItem' (number expected, got table)
but I really want to use my table, not numbers.
I have 9 more of them(empty tho), my question is : how can I add my table on EquipItem method ?
my problem is the following :
bad argument #2 to 'EquipItem' (number expected, got table)
Code:
for k, v in ipairs(On.Menu["Class"]) do
player:EquipItem(On.Menu, On.Slots)
end
but I really want to use my table, not numbers.
Code:
On = {}
On.Menu = {
["Class"] = {
{"Warrior", 1},
{"PaladOn", 2},
{"Hunter", 3},
{"Rogue", 4},
{"Priest", 5},
{"DeathKnight", 6},
{"Shaman", 7},
{"Mage", 8},
{"Warlock", 9},
{"Druid", 11};
},
[1] = { -- Warrior gear S8
{"Wrathful Gladiator's Plate Chestpiece", 51541},
{"Wrathful Gladiator's Plate Gauntlets", 51542},
{"Wrathful Gladiator's Plate Helm", 51543},
{"Wrathful Gladiator's Plate Legguards", 51544},
{"Wrathful Gladiator's Plate Shoulders", 51545};
},