PoxIRL said:I looked in the Gump file for where you had if baseweapon show button Weapon hits. I then looked further into it to see if I could change it to after you click on Magic attributes. To try and make it so if basejewel show fc/fcr/lmc buttons. But I couldnt even find those attributes. I dont want to limit magic attributes to just jewels. I want to be able to let players chose SC for a wep.
Sorry if this isn't clear.
I added the lines
HereCode:if (m_Item is BaseJewel)
Code:AddLabel(136, 93, TitleHue, @"Categories"); AddButton(75, 116, 4005, 4007, GetButtonID( 1, 0 ), GumpButtonType.Reply, 0); AddLabel(112, 117, LabelHue, @"Melee Attributes"); [COLOR="Red"]if (m_Item is BaseJewel)[/COLOR] AddButton(75, 138, 4005, 4007, GetButtonID( 1, 1 ), GumpButtonType.Reply, 0); AddLabel(112, 139, LabelHue, @"Magic Attributes"); AddButton(75, 160, 4005, 4007, GetButtonID( 1, 2 ), GumpButtonType.Reply, 0); AddLabel(112, 161, LabelHue, @"Character Stats"); AddButton(75, 182, 4005, 4007, GetButtonID( 1, 3 ), GumpButtonType.Reply, 0); AddLabel(112, 183, LabelHue, @"Resistances"); if (m_Item is BaseWeapon) AddButton(75, 204, 4005, 4007, GetButtonID( 1, 4 ), GumpButtonType.Reply, 0); AddLabel(112, 205, LabelHue, @"Weapon Hits"); AddButton(75, 226, 4005, 4007, GetButtonID( 1, 5 ), GumpButtonType.Reply, 0); AddLabel(112, 227, LabelHue, @"Misc. Attributes");
But that only makes it so that if targeted item is not basejewel, then you cant select magic attributes, making it so weapons cant have SC added to it.
I want to look further in the script for after that part is selected. I dont know where to go from here. Any help as to where to look would be greatly appreciated.
Look in LevelAttributes.cs this is where you assign a category to each attribute. To make it easy, simply move the ones that you want to have for all items (not just jewels) from AttributeCategory.Magic to another category. for example...
Spell Channeling...
Code:
new AttributeInfo( AosAttribute.SpellChanneling, "Spell Channeling", [B][COLOR="Red"]AttributeCategory.Magic[/COLOR][/B], 15, 1 ),
change to...
Code:
new AttributeInfo( AosAttribute.SpellChanneling, "Spell Channeling", [B][COLOR="red"]AttributeCategory.Misc[/COLOR][/B], 15, 1 ),
then leave your change in ItemExperienceGump.cs as is.