This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] [QUESTION] New inventory item type  (Read 2191 times)

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
[SOLVED] [QUESTION] New inventory item type
« 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
« Last Edit: August 11, 2014, 08:54:10 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #2 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #4 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.)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #5 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #6 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #7 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #8 on: August 11, 2014, 07:31:13 am »
Silly question but did you edit the item.dbc the server uses?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
Re: [QUESTION] New inventory item type
« Reply #9 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [SOLVED] [QUESTION] New inventory item type
« Reply #10 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [SOLVED] [QUESTION] New inventory item type
« Reply #11 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »