I'm having trouble adding high-value items. I get an error about the format being incorrect. How can I fix this?
Not sure how you are adding items but I am guessing it is using the shopitems.xml file. Make sure to follow the layout of an existing item in the same category exaactly.
<item id="299" name="Orcish Poleaxe" category="Weapon"><MinCount val="1" /><MaxCount val="1" /><BuyLow val="2800000" /><BuyHigh val="3500000" /><SellLow val="3800000" /><SellHigh val="5000000" /><Level val="1" /></item> Make sure the category matches exactly as they are used in the code.
Make sure the counts (min/max), as well as the Buy/Sell low and high also have a value. They are quoted in the XML but need to be numbers.
Lastly the Level is a number assigned to the item grade. 1 through 5 equals D through S grade. This is used to limit the type of items available in Dion only. Every item as a grade associated, even craft mats. Dion gets 1 and 2 (D and C grade) only. Giran has no restriction
It you share exactly what you are wanting to add and what you have so far, I am sure we can get it figured out.
EDIT: This will make life a little easier. This link is for a MySQL dump of the current shopitems table used to create the XML items.
https://pastebin.com/kQf0PPdrAdd your new items to the table using your favorite MySQL tool. You can also update prices on existing items to fit your server
When finished the following query will output the items in the correct XML format. If you only want to create one or two just add a where clause to the query so it only outputs those items. All that is left is to paste then in the XML file and reload the server.
SELECT
CONCAT(
'<item id="', id, '" name="', NAME, '" category="', category, '">',
'<MinCount val="', MinCount, '" />',
'<MaxCount val="', MaxCount, '" />',
'<BuyLow val="', BuyLow, '" />',
'<BuyHigh val="', BuyHigh, '" />',
'<SellLow val="', SellLow, '" />',
'<SellHigh val="', SellHigh, '" />',
'<Level val="', LEVEL, '" />',
'</item>'
) AS xml_row
FROM shopitems;