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: Custom Item  (Read 1137 times)

Bradwin

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 20
    • View Profile
Custom Item
« on: February 17, 2017, 07:00:00 pm »
After having checked WoW-V and seen that it had gone down, I dedcided give it a try manually. I used HeidiSQL to acces the Database, went to item_template and then went to Data. Scrolled all the way down to the item with the entry 54857, created a new entry with entry 54858. Noticed there were 2 more rows after the one I first mentioned, but the entries were not the same as any other. I filled in the lines with what was necessary to creating a sword ( looked on https://trinitycore.atlassian.net/wiki/ ... m_template before ). After that I opened my server to see if it would work. It spanwned the item, it had the correct name, type of weapon and display but the icon, the stats as well as the description were not there. I look at other items of the same type in specified tabel, and it didn't seem like I made any mistake or left any field that was essential unedited. Is there another tabel I must edit for the item to be correctly added, or is it something else?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Custom Item
« Reply #1 on: February 17, 2017, 07:42:14 pm »
Icons and stuff being used by spells (for example "requires meelee weapon") are not actually readen from database, but from item.dbc. You need to add your item into your item.dbc as well in order to get its icon displayed (as long as there is icon set in your item's displayID in itemdisplayinfo.dbc).

Stats are database thing. Make sure you have set StatsCount attribute correctly in your item_template. It should contain value as high as your amount of stats on your item are. If you have StatsCount 0, then all stats will be ignored, even if they are set.


If you don't know how to change DBCs:


A tool for keeping WMV's item database and your item.dbc up to date with your item_template table, so you don't have to keep adding your new items there:
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Bradwin

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 20
    • View Profile
Re: Custom Item
« Reply #2 on: February 19, 2017, 06:12:43 pm »
Thanks, I did what you said and the icon displayed successfully in game, but it still didn't show weapon dmg and the stats. Here are the photos from my item_template table http://imgur.com/a/dlaip
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Custom Item
« Reply #3 on: February 19, 2017, 11:24:23 pm »
Delete Cache folder. Why I explain here:
https://youtu.be/l9LYi3cDBU4?t=24s

I use NPC names as an example, but this applies to item names, descriptions, stats and so on as well.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Bradwin

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 20
    • View Profile
Re: Custom Item
« Reply #4 on: February 20, 2017, 04:56:09 pm »
Many thanks, this fixed the issue.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »