I am trying to implement a function (possibly user function?) that allows for swapping class for dailies pick up on a higher class, turn in on a lower, for example Butterflies, running through the zone with a level 42 character in wrong gear might mean a lot of death.
What I would like to do is have a generic way to swap the equpipment (SwapEquipmentItem(x);) where x is conveniently matched to the class/gear. So if I had a level 70 set on 1, and level 44 on 2, I could run through Xaviera without being "naked" in 72 gear while on the level 44 class. I'd like this to be generic so that I can use it with any character, with any equipment setup (for example, next character might have lvl70 gear on 3, and 44 on 1)
The current idea is to have variables in the profile such as LVL70 = 0, LVL44 = 1, but I was wondering if anyone solved this problem already?
(Side note, I've gotten my level 70 character killed in goblins because it was wearing the level 10 gear of the third class, so this function/feature could have all kinds of safety impacts)
Swapping equipment for class swap, generic style
Re: Swapping equipment for class swap, generic style
If it was me I would do up a userfunction and in the profile onload call a function that will cycle through the swapequipment things and populate a table of a few things like, RequiredLvl, Weapon type, armor type.
That sort of thing.
The equipment info looks like this
Code: Select all
local equipment = CEquipment()
local highestlvl = 1
for i = 0,equipment.MaxSlots,1 do
if equipment.BagSlot[i].RequiredLvl > highestlvl then
highestlvl = equipment.BagSlot[i].RequiredLvl
end
end
-- do something here with the highest lvl required
The equipment info looks like this
Code: Select all
1: table: 03947100
Icon:
Name: Bloody Cloth Gloves
MaxDurability: 77
Empty: false
RequiredLvl: 55
BaseItemAddress: 877819648
Worth: 649.7
Value: 6497
Available: true
Id: 225495
BoundStatus: 0
Color: 4289225896
Stats: table: 039471A0
1: table: 039471F0
Name: Stamina I
Id: 510360
2: table: 03947240
Name: Flame I
Id: 510460
3: table: 03947290
Name: Ability of the Lost VI
Id: 512838
4: table: 03947308
Name: Guard VII
Id: 512081
5: table: 03947358
Name: Mage VII
Id: 512311
6: table: 03947380
Name: Wit VII
Id: 512071
BagId: 1
SlotNumber: 1
Location: equipment
ObjType: 1
ItemCount: 1
LastMovedTime: 0
MaxStack: 1
ObjSubType: 3
Bound: true
Quality: 3
ItemShopItem: false
Address: 10350792
LastTimeUsed: 0
CoolDownTime: 0
Durability: 69.22
ItemLink: |Hitem:370d7|h|cffa864a8[Bloody Cloth Gloves]|r
CanBeSold: true
ObjSubSubType: 4
InUse: false
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual