Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: Bradwin 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 (https://trinitycore.atlassian.net/wiki/display/tc/item_template" onclick="window.open(this.href);return false;) 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?
-
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:
https://www.youtube.com/watch?v=lO-5NHW ... AcLv3ZGzWG (https://www.youtube.com/watch?v=lO-5NHWrYYs&index=4&list=PL7EfBqwxNjwd7rsl3abxbqwAcLv3ZGzWG" onclick="window.open(this.href);return false;)
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:
https://www.youtube.com/watch?v=rHdK-P4 ... MD&index=2 (https://www.youtube.com/watch?v=rHdK-P4g-SY&list=PL7EfBqwxNjweSMt0AgLIoQsYuOc2C_AMD&index=2" onclick="window.open(this.href);return false;)
-
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 (http://imgur.com/a/dlaip" onclick="window.open(this.href);return false;)
-
Delete Cache folder. Why I explain here:
https://youtu.be/l9LYi3cDBU4?t=24s (https://youtu.be/l9LYi3cDBU4?t=24s" onclick="window.open(this.href);return false;)
I use NPC names as an example, but this applies to item names, descriptions, stats and so on as well.
-
Many thanks, this fixed the issue.