Jump to content

Need help with DB2/DBC <-> CSV convert

By Intension
in Serverside

Recommended Posts

I want to convert "CharStartOutfit.db2" from Trinity 6.x with that maps

<?xml version="1.0" encoding="UTF-8"?>
<root>
	<CharStartOutfitEntry>
		<element>
			<name>ID</name>
			<type>uint32</type>
		</element>
		<element>
			<name>RaceID</name>
			<type>uint8</type>
		</element>
		<element>
			<name>ClassID</name>
			<type>uint8</type>
		</element>
		<element>
			<name>GenderID</name>
			<type>uint8</type>
		</element>
		<element>
			<name>OutfitID</name>
			<type>uint8_t</type>
		</element>
		<element>
			<name>ItemID[MAX_OUTFIT_ITEMS]</name>
			<type>int32</type>
		</element>
		<element>
			<name>PetDisplayID</name>
			<type>uint32</type>
		</element>
		<element>
			<name>PetFamilyID</name>
			<type>uint32</type>
		</element>
	</CharStartOutfitEntry>

</root>

but become a Mistake. 

Edited by Intension
Link to comment
Share on other sites

Here the DB2Structure.h from the Source 

Unbenannt-2423423.thumb.jpg.c1f64d3e0a3cview-29335490/Unbenannt-2423423.jpg.html

#define MAX_OUTFIT_ITEMS 24

...

int32 ItemID[MAX_OUTFIT_ITEMS] is equal

24x

  1. <element>
  2.     <name>ItemX</name>
  3.     <type>int32</type>
  4. </element>

 

Edited by luzifix
Link to comment
Share on other sites

:D

You most writ 24x 

  1. <element>
  2.     <name>ItemX</name>
  3.     <type>int32</type>
  4. </element>

in the map

 

Like

 

<element>
    <name>Item1</name>
    <type>int32</type>
</element>
<element>
    <name>Item2</name>
    <type>int32</type>
</element>
<element>
    <name>Item3</name>
    <type>int32</type>
</element>
<element>
    <name>Item4</name>
    <type>int32</type>
</element>
<element>
    <name>Item5</name>
    <type>int32</type>
</element>
...
<element>
    <name>Item24</name>
    <type>int32</type>
</element>
Edited by luzifix
Link to comment
Share on other sites

×
×
  • Create New...