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

Title: [SOLVED] [QUESTION] New inventory item type
Post 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
Title: Re: [QUESTION] New inventory item type
Post by: phantomx on August 10, 2014, 11:20:15 pm
I'd say your new slots are 20-23.

Could try making items with those values see if it works.
Title: Re: [QUESTION] New inventory item type
Post by: Serifaz on August 10, 2014, 11:25:47 pm
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
Title: Re: [QUESTION] New inventory item type
Post by: phantomx on August 10, 2014, 11:56:37 pm
Quote from: "Serifaz"
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.
Title: Re: [QUESTION] New inventory item type
Post by: Ascathos on August 11, 2014, 12:12:00 am
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.)
Title: Re: [QUESTION] New inventory item type
Post by: Serifaz on August 11, 2014, 01:46:48 am
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?
Quote from: "Ascathos"
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
Title: Re: [QUESTION] New inventory item type
Post by: phantomx on August 11, 2014, 06:18:04 am
Quote from: "Serifaz"
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?
Quote from: "Ascathos"
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.
Title: Re: [QUESTION] New inventory item type
Post by: Serifaz on August 11, 2014, 06:41:44 am
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
Title: Re: [QUESTION] New inventory item type
Post by: phantomx on August 11, 2014, 07:31:13 am
Silly question but did you edit the item.dbc the server uses?
Title: Re: [QUESTION] New inventory item type
Post by: Serifaz on August 11, 2014, 08:19:10 am
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
Title: Re: [SOLVED] [QUESTION] New inventory item type
Post by: schlumpf on August 11, 2014, 09:51:06 am
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?
Title: Re: [SOLVED] [QUESTION] New inventory item type
Post by: Ascathos on August 12, 2014, 04:38:13 pm
ItemPrototype.h, Ln227
enum InventoryType
after
Code: [Select]
   INVTYPE_RELIC                               = 28add
Code: [Select]
   INVTYPE_RUNE                               = 29
ItemPrototype.h, Ln260:
#define MAX_INVTYPE                               29
Set
Code: [Select]
#define MAX_INVTYPE                               30
Fixes problem on serverside.

I am not sure if assert is triggered for client.