Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: Serifaz on August 10, 2014, 11:11:35 pm
-
Hey guys, I have acouple new slots I made for the paper doll frame.
I am trying to figure out how the numbers are assigned to the item types.
I have been through all the DBCs I thought would be relative and I'm pretty sure it is a DBC thing,
I have done all the UI work, and core modifications. aswell as assigned a new texture to the item slot in
PaperDollItemFrame.dbc
where I am confused is how the items are assigned to certain slots.
I understand that the following is correct. but how do these values get assigned?
1 Head
2 Neck
3 Shoulders
4 Shirt
5 Vest
6 Waist
7 Legs
ect
-
I'd say your new slots are 20-23.
Could try making items with those values see if it works.
-
Ill try :)
Would that be the item subclass or the inventory slot?
ok I think it is specified in my core when I did the edits.
I noticed that there are values for the item types.
but when I put in the values into my db it does not assign the type
-
Ill try :)
Would that be the item subclass or the inventory slot?
ok I think it is specified in my core when I did the edits.
I noticed that there are values for the item types.
but when I put in the values into my db it does not assign the type
It would be the inventory slot.
-
If you get problems serverwise, make sure to build in debug and post logs here. Maybe I can resolve them then. (If it is TC, that is.)
-
I got the item type working. I just need to figure out how to assign the skill to use it to a class through skillraceclassinfo.dbc
any ideas?
If you get problems serverwise, make sure to build in debug and post logs here. Maybe I can resolve them then. (If it is TC, that is.)
also thank you for the offer :) I think Im pretty close. I do need a system built in trinitycore for upgrading the items if you think you can help with that. I already have all the slot and item type values setup in core though :)
I'm pretty close.
I just need to figure out how to make a skill that can use the item type now
-
I got the item type working. I just need to figure out how to assign the skill to use it to a class through skillraceclassinfo.dbc
any ideas?
If you get problems serverwise, make sure to build in debug and post logs here. Maybe I can resolve them then. (If it is TC, that is.)
also thank you for the offer :) I think Im pretty close. I do need a system built in trinitycore for upgrading the items if you think you can help with that. I already have all the slot and item type values setup in core though :)
I'm pretty close.
I just need to figure out how to make a skill that can use the item type now
Could try to copy the relic skill and attach it to your rune skill.
-
I think I may have fixed it. not sure Im about to re run the server
I had a mixup in my src. I put the wrong equip id in the wrong place haha
The server is spitting back an error with the equip id that I made.
says the inventory id is wrong
-
Silly question but did you edit the item.dbc the server uses?
-
I finally figured it out and it was soo stupid
I simply can't make a new item type I need to make a new item subtype of rune.
so it will be type 4 / armor ... subtype 17 / rune
-
But isn't the equip-data fixed size inside all structs and you'd overwrite other fields, of not trigger assertions when changing the count?
-
ItemPrototype.h, Ln227
enum InventoryType
after
INVTYPE_RELIC = 28
add
INVTYPE_RUNE = 29
ItemPrototype.h, Ln260:
#define MAX_INVTYPE 29
Set
#define MAX_INVTYPE 30
Fixes problem on serverside.
I am not sure if assert is triggered for client.