mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+181
-140
@@ -16,7 +16,9 @@ struct
|
||||
|
||||
CHAR8 szCharData[MAX_CHAR_DATA_LENGTH+1];
|
||||
MERCPROFILEGEAR curMercStartingGear;
|
||||
MERCPROFILEGEAR * curArray;
|
||||
MERCPROFILEGEAR (*curArray)[NUM_MERCSTARTINGGEAR_KITS];
|
||||
UINT8 curIndex; // Holds the number of the current profile for whom we're reading gear.
|
||||
UINT8 curGears; // Holds the number of gears read so far for one index number.
|
||||
UINT32 maxArraySize;
|
||||
|
||||
UINT32 currentDepth;
|
||||
@@ -39,6 +41,8 @@ MercStartingGearStartElementHandle(void *userData, const XML_Char *name, const X
|
||||
//memset(pData->curArray,0,sizeof(MERCPROFILEGEAR)*pData->maxArraySize);
|
||||
|
||||
pData->maxReadDepth++; //we are not skipping this element
|
||||
|
||||
pData->curIndex = 0;
|
||||
}
|
||||
else if(strcmp(name, "MERCGEAR") == 0 && pData->curElement == ELEMENT_LIST)
|
||||
{
|
||||
@@ -48,10 +52,25 @@ MercStartingGearStartElementHandle(void *userData, const XML_Char *name, const X
|
||||
//memset(&pData->curMercStartingGear,0,sizeof(MERCPROFILEGEAR));
|
||||
|
||||
pData->maxReadDepth++; //we are not skipping this element
|
||||
|
||||
pData->curGears = 0;
|
||||
}
|
||||
else if(pData->curElement == ELEMENT &&
|
||||
(strcmp(name, "mIndex") == 0 ||
|
||||
strcmp(name, "mName") == 0 ||
|
||||
(strcmp(name, "mIndex") == 0 ||
|
||||
strcmp(name, "mName") == 0 ))
|
||||
{
|
||||
pData->curElement = ELEMENT_PROPERTY;
|
||||
|
||||
pData->maxReadDepth++;
|
||||
}
|
||||
else if(strcmp(name, "GEARKIT") == 0 && pData->curElement == ELEMENT)
|
||||
{
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
|
||||
pData->maxReadDepth++;
|
||||
}
|
||||
else if(pData->curElement == ELEMENT_SUBLIST &&
|
||||
(strcmp(name, "mPriceMod") == 0 ||
|
||||
strcmp(name, "mHelmet") == 0 ||
|
||||
strcmp(name, "mHelmetStatus") == 0 ||
|
||||
strcmp(name, "mHelmetDrop") == 0 ||
|
||||
@@ -115,7 +134,7 @@ MercStartingGearStartElementHandle(void *userData, const XML_Char *name, const X
|
||||
strcmp(name, "lBPack") == 0 ||
|
||||
strcmp(name, "lBPackStatus") == 0 ))
|
||||
{
|
||||
pData->curElement = ELEMENT_PROPERTY;
|
||||
pData->curElement = ELEMENT_SUBLIST_PROPERTY;
|
||||
|
||||
pData->maxReadDepth++; //we are not skipping this element
|
||||
}
|
||||
@@ -155,16 +174,12 @@ MercStartingGearEndElementHandle(void *userData, const XML_Char *name)
|
||||
else if(strcmp(name, "MERCGEAR") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT_LIST;
|
||||
|
||||
if(pData->curMercStartingGear.mIndex < pData->maxArraySize)
|
||||
{
|
||||
pData->curArray[pData->curMercStartingGear.mIndex] = pData->curMercStartingGear; //write the armour into the table
|
||||
}
|
||||
}
|
||||
else if(strcmp(name, "mIndex") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curMercStartingGear.mIndex = (UINT16) atol(pData->szCharData);
|
||||
pData->curIndex = (UINT8) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mName") == 0)
|
||||
{
|
||||
@@ -183,314 +198,331 @@ MercStartingGearEndElementHandle(void *userData, const XML_Char *name)
|
||||
//DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("itemEndElementHandle: itemname[%d] = %s, temp = %s",i,&pData->curItem.szItemName[i],&temp));
|
||||
}
|
||||
}
|
||||
else if(strcmp(name, "GEARKIT") == 0 )
|
||||
{
|
||||
// Write the gear into memory.
|
||||
if(pData->curIndex < pData->maxArraySize && pData->curGears < NUM_MERCSTARTINGGEAR_KITS)
|
||||
{
|
||||
pData->curArray[pData->curIndex][pData->curGears] = pData->curMercStartingGear; //write the armour into the table
|
||||
}
|
||||
|
||||
pData->curElement = ELEMENT;
|
||||
// Increase the number of gears read.
|
||||
pData->curGears++;
|
||||
}
|
||||
else if(strcmp(name, "mPriceMod") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.PriceModifier = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mHelmet") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[HELMETPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mVest") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[VESTPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mLeg") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[LEGPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mWeapon") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[HANDPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig0") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[BIGPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig1") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[BIGPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig2") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[BIGPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig3") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[BIGPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall0") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall1") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall2") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall3") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall4") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK5POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall5") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK6POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall6") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK7POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall7") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.inv[SMALLPOCK8POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mHelmetStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[HELMETPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mVestStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[VESTPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mLegStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[LEGPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mWeaponStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[HANDPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig0Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[BIGPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig1Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[BIGPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig2Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[BIGPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig3Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[BIGPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall0Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall1Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall2Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall3Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall4Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK5POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall5Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK6POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall6Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK7POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall7Status") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iStatus[SMALLPOCK8POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mHelmetDrop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[HELMETPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mVestDrop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[VESTPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mLegDrop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[LEGPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mWeaponDrop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[HANDPOS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig0Drop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[BIGPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig1Drop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[BIGPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig2Drop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[BIGPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig3Drop") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iDrop[BIGPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig0Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[BIGPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig1Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[BIGPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig2Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[BIGPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mBig3Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[BIGPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall0Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK1POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall1Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK2POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall2Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK3POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall3Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK4POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall4Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK5POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall5Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK6POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall6Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK7POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "mSmall7Quantity") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.iNumber[SMALLPOCK8POS] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lVest") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lbe[0] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lLeftThigh") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lbe[1] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lRightThigh") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lbe[2] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lCPack") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lbe[3] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lBPack") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lbe[4] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lVestStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lStatus[0] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lLeftThighStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lStatus[1] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lRightThighStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lStatus[2] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lCPackStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lStatus[3] = (int) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "lBPackStatus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curElement = ELEMENT_SUBLIST;
|
||||
pData->curMercStartingGear.lStatus[4] = (int) atol(pData->szCharData);
|
||||
}
|
||||
|
||||
@@ -540,14 +572,19 @@ BOOLEAN ReadInMercStartingGearStats(STR fileName)
|
||||
|
||||
|
||||
memset(&pData,0,sizeof(pData));
|
||||
|
||||
pData.curArray = gMercProfileGear;
|
||||
|
||||
pData.maxArraySize = NUM_PROFILES;
|
||||
|
||||
XML_SetUserData(parser, &pData);
|
||||
|
||||
for(int i=0; i<NUM_PROFILES; ++i)
|
||||
{
|
||||
gMercProfileGear[i].clearInventory();
|
||||
for(int i2=0; i2<NUM_MERCSTARTINGGEAR_KITS; ++i2)
|
||||
{
|
||||
gMercProfileGear[i][i2].clearInventory();
|
||||
}
|
||||
}
|
||||
if(!XML_Parse(parser, lpcBuffer, uiFSize, TRUE))
|
||||
{
|
||||
@@ -568,6 +605,8 @@ BOOLEAN ReadInMercStartingGearStats(STR fileName)
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
/*
|
||||
BOOLEAN WriteMercStartingGearStats()
|
||||
{
|
||||
//DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"writemercstartinggearstats");
|
||||
@@ -580,7 +619,7 @@ BOOLEAN WriteMercStartingGearStats()
|
||||
return( FALSE );
|
||||
|
||||
{
|
||||
UINT32 cnt;
|
||||
UINT32 cnt, gearkit;
|
||||
CHAR16 str[100];
|
||||
|
||||
FilePrintf(hFile,"<MERCGEARLIST>\r\n");
|
||||
@@ -588,18 +627,17 @@ BOOLEAN WriteMercStartingGearStats()
|
||||
{
|
||||
|
||||
FilePrintf(hFile,"\t<MERCGEAR>\r\n");
|
||||
|
||||
FilePrintf(hFile,"\t\t<mIndex>%d</mIndex>\r\n", cnt );
|
||||
// FilePrintf(hFile,"\t\t<mName>%d</mName>\r\n", gMercProfileGear[cnt].mName );
|
||||
//FilePrintf(hFile,"\t\t<mName>%d</mName>\r\n", gMercProfileGear[cnt].mName );
|
||||
|
||||
|
||||
int j = -1;
|
||||
for (int i=0;i<80;i++)
|
||||
{
|
||||
j++;
|
||||
if ( i<(int)strlen(gMercProfileGear[cnt].mName))
|
||||
if ( i<(int)strlen(gMercProfileGear[cnt][gearkit].mName))
|
||||
{
|
||||
str[i] = gMercProfileGear[cnt].mName [j];
|
||||
str[i] = gMercProfileGear[cnt][gearkit].mName [j];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -651,69 +689,71 @@ BOOLEAN WriteMercStartingGearStats()
|
||||
}
|
||||
}
|
||||
FilePrintf(hFile,"</mName>\r\n");
|
||||
FilePrintf(hFile,"\t\t<mHelmet>%d</mHelmet>\r\n", gMercProfileGear[cnt].inv[HELMETPOS] );
|
||||
FilePrintf(hFile,"\t\t<mVest>%d</mVest>\r\n", gMercProfileGear[cnt].inv[VESTPOS] );
|
||||
FilePrintf(hFile,"\t\t<mLeg>%d</mLeg>\r\n", gMercProfileGear[cnt].inv[LEGPOS] );
|
||||
FilePrintf(hFile,"\t\t<mWeapon>%d</mWeapon>\r\n", gMercProfileGear[cnt].inv[HANDPOS] );
|
||||
FilePrintf(hFile,"\t\t<mHelmetStatus>%d</mHelmetStatus>\r\n", gMercProfileGear[cnt].iStatus[HELMETPOS] );
|
||||
FilePrintf(hFile,"\t\t<mVestStatus>%d</mVestStatus>\r\n", gMercProfileGear[cnt].iStatus[VESTPOS] );
|
||||
FilePrintf(hFile,"\t\t<mLegStatus>%d</mLegStatus>\r\n", gMercProfileGear[cnt].iStatus[LEGPOS] );
|
||||
FilePrintf(hFile,"\t\t<mWeaponStatus>%d</mWeaponStatus>\r\n", gMercProfileGear[cnt].iStatus[HANDPOS] );
|
||||
FilePrintf(hFile,"\t\t<mHelmetDrop>%d</mHelmetDrop>\r\n", gMercProfileGear[cnt].iDrop[HELMETPOS] );
|
||||
FilePrintf(hFile,"\t\t<mVestDrop>%d</mVestDrop>\r\n", gMercProfileGear[cnt].iDrop[VESTPOS] );
|
||||
FilePrintf(hFile,"\t\t<mLegDrop>%d</mLegDrop>\r\n", gMercProfileGear[cnt].iDrop[LEGPOS] );
|
||||
FilePrintf(hFile,"\t\t<mWeaponDrop>%d</mWeaponDrop>\r\n", gMercProfileGear[cnt].iDrop[HANDPOS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0>%d</mBig0>\r\n", gMercProfileGear[cnt].inv[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1>%d</mBig1>\r\n", gMercProfileGear[cnt].inv[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2>%d</mBig2>\r\n", gMercProfileGear[cnt].inv[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3>%d</mBig3>\r\n", gMercProfileGear[cnt].inv[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0Quantity>%d</mBig0Quantity>\r\n", gMercProfileGear[cnt].iNumber[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1Quantity>%d</mBig1Quantity>\r\n", gMercProfileGear[cnt].iNumber[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2Quantity>%d</mBig2Quantity>\r\n", gMercProfileGear[cnt].iNumber[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3Quantity>%d</mBig3Quantity>\r\n", gMercProfileGear[cnt].iNumber[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0Status>%d</mBig0Status>\r\n", gMercProfileGear[cnt].iStatus[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1Status>%d</mBig1Status>\r\n", gMercProfileGear[cnt].iStatus[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2Status>%d</mBig2Status>\r\n", gMercProfileGear[cnt].iStatus[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3Status>%d</mBig3Status>\r\n", gMercProfileGear[cnt].iStatus[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0Drop>%d</mBig0Drop>\r\n", gMercProfileGear[cnt].iDrop[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1Drop>%d</mBig1Drop>\r\n", gMercProfileGear[cnt].iDrop[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2Drop>%d</mBig2Drop>\r\n", gMercProfileGear[cnt].iDrop[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3Drop>%d</mBig3Drop>\r\n", gMercProfileGear[cnt].iDrop[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall0>%d</mSmall0>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall1>%d</mSmall1>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall2>%d</mSmall2>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall3>%d</mSmall3>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall4>%d</mSmall4>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK5POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall5>%d</mSmall5>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK6POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall6>%d</mSmall6>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK7POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall7>%d</mSmall7>\r\n", gMercProfileGear[cnt].inv[SMALLPOCK8POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall0Quantity>%d</mSmall0Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall1Quantity>%d</mSmall1Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall2Quantity>%d</mSmall2Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall3Quantity>%d</mSmall3Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall4Quantity>%d</mSmall4Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK5POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall5Quantity>%d</mSmall5Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK6POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall6Quantity>%d</mSmall6Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK7POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall7Quantity>%d</mSmall7Quantity>\r\n", gMercProfileGear[cnt].iNumber[SMALLPOCK8POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall0Status>%d</mSmall0Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall1Status>%d</mSmall1Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall2Status>%d</mSmall2Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall3Status>%d</mSmall3Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall4Status>%d</mSmall4Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK5POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall5Status>%d</mSmall5Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK6POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall6Status>%d</mSmall6Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK7POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall7Status>%d</mSmall7Status>\r\n", gMercProfileGear[cnt].iStatus[SMALLPOCK8POS] );
|
||||
FilePrintf(hFile,"\t\t<lVest>%d</lVest>\r\n", gMercProfileGear[cnt].lbe[0] );
|
||||
FilePrintf(hFile,"\t\t<lLeftThigh>%d</lLeftThigh>\r\n", gMercProfileGear[cnt].lbe[1] );
|
||||
FilePrintf(hFile,"\t\t<lRightThigh>%d</lRightThigh>\r\n", gMercProfileGear[cnt].lbe[2] );
|
||||
FilePrintf(hFile,"\t\t<lCPack>%d</lCPack>\r\n", gMercProfileGear[cnt].lbe[3] );
|
||||
FilePrintf(hFile,"\t\t<lBPack>%d</lBPack>\r\n", gMercProfileGear[cnt].lbe[4] );
|
||||
FilePrintf(hFile,"\t\t<lVestStatus>%d</lVestStatus>\r\n", gMercProfileGear[cnt].lStatus[0] );
|
||||
FilePrintf(hFile,"\t\t<lLeftThighStatus>%d</lLeftThighStatus>\r\n", gMercProfileGear[cnt].lStatus[1] );
|
||||
FilePrintf(hFile,"\t\t<lRightThighStatus>%d</lRightThighStatus>\r\n", gMercProfileGear[cnt].lStatus[2] );
|
||||
FilePrintf(hFile,"\t\t<lCPackStatus>%d</lCPackStatus>\r\n", gMercProfileGear[cnt].lStatus[3] );
|
||||
FilePrintf(hFile,"\t\t<lBPackStatus>%d</lBPackStatus>\r\n", gMercProfileGear[cnt].lStatus[4] );
|
||||
|
||||
for(gearkit = 0; gearkit < NUM_MERCSTARTINGGEAR_KITS; gearkit++)
|
||||
{
|
||||
FilePrintf(hFile,"\t\t<mHelmet>%d</mHelmet>\r\n", gMercProfileGear[cnt][gearkit].inv[HELMETPOS] );
|
||||
FilePrintf(hFile,"\t\t<mVest>%d</mVest>\r\n", gMercProfileGear[cnt][gearkit].inv[VESTPOS] );
|
||||
FilePrintf(hFile,"\t\t<mLeg>%d</mLeg>\r\n", gMercProfileGear[cnt][gearkit].inv[LEGPOS] );
|
||||
FilePrintf(hFile,"\t\t<mWeapon>%d</mWeapon>\r\n", gMercProfileGear[cnt][gearkit].inv[HANDPOS] );
|
||||
FilePrintf(hFile,"\t\t<mHelmetStatus>%d</mHelmetStatus>\r\n", gMercProfileGear[cnt][gearkit].iStatus[HELMETPOS] );
|
||||
FilePrintf(hFile,"\t\t<mVestStatus>%d</mVestStatus>\r\n", gMercProfileGear[cnt][gearkit].iStatus[VESTPOS] );
|
||||
FilePrintf(hFile,"\t\t<mLegStatus>%d</mLegStatus>\r\n", gMercProfileGear[cnt][gearkit].iStatus[LEGPOS] );
|
||||
FilePrintf(hFile,"\t\t<mWeaponStatus>%d</mWeaponStatus>\r\n", gMercProfileGear[cnt][gearkit].iStatus[HANDPOS] );
|
||||
FilePrintf(hFile,"\t\t<mHelmetDrop>%d</mHelmetDrop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[HELMETPOS] );
|
||||
FilePrintf(hFile,"\t\t<mVestDrop>%d</mVestDrop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[VESTPOS] );
|
||||
FilePrintf(hFile,"\t\t<mLegDrop>%d</mLegDrop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[LEGPOS] );
|
||||
FilePrintf(hFile,"\t\t<mWeaponDrop>%d</mWeaponDrop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[HANDPOS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0>%d</mBig0>\r\n", gMercProfileGear[cnt][gearkit].inv[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1>%d</mBig1>\r\n", gMercProfileGear[cnt][gearkit].inv[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2>%d</mBig2>\r\n", gMercProfileGear[cnt][gearkit].inv[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3>%d</mBig3>\r\n", gMercProfileGear[cnt][gearkit].inv[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0Quantity>%d</mBig0Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1Quantity>%d</mBig1Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2Quantity>%d</mBig2Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3Quantity>%d</mBig3Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0Status>%d</mBig0Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1Status>%d</mBig1Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2Status>%d</mBig2Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3Status>%d</mBig3Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig0Drop>%d</mBig0Drop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[BIGPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig1Drop>%d</mBig1Drop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[BIGPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig2Drop>%d</mBig2Drop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[BIGPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mBig3Drop>%d</mBig3Drop>\r\n", gMercProfileGear[cnt][gearkit].iDrop[BIGPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall0>%d</mSmall0>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall1>%d</mSmall1>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall2>%d</mSmall2>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall3>%d</mSmall3>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall4>%d</mSmall4>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK5POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall5>%d</mSmall5>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK6POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall6>%d</mSmall6>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK7POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall7>%d</mSmall7>\r\n", gMercProfileGear[cnt][gearkit].inv[SMALLPOCK8POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall0Quantity>%d</mSmall0Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall1Quantity>%d</mSmall1Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall2Quantity>%d</mSmall2Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall3Quantity>%d</mSmall3Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall4Quantity>%d</mSmall4Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK5POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall5Quantity>%d</mSmall5Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK6POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall6Quantity>%d</mSmall6Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK7POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall7Quantity>%d</mSmall7Quantity>\r\n", gMercProfileGear[cnt][gearkit].iNumber[SMALLPOCK8POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall0Status>%d</mSmall0Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK1POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall1Status>%d</mSmall1Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK2POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall2Status>%d</mSmall2Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK3POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall3Status>%d</mSmall3Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK4POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall4Status>%d</mSmall4Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK5POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall5Status>%d</mSmall5Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK6POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall6Status>%d</mSmall6Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK7POS] );
|
||||
FilePrintf(hFile,"\t\t<mSmall7Status>%d</mSmall7Status>\r\n", gMercProfileGear[cnt][gearkit].iStatus[SMALLPOCK8POS] );
|
||||
FilePrintf(hFile,"\t\t<lVest>%d</lVest>\r\n", gMercProfileGear[cnt][gearkit].lbe[0] );
|
||||
FilePrintf(hFile,"\t\t<lLeftThigh>%d</lLeftThigh>\r\n", gMercProfileGear[cnt][gearkit].lbe[1] );
|
||||
FilePrintf(hFile,"\t\t<lRightThigh>%d</lRightThigh>\r\n", gMercProfileGear[cnt][gearkit].lbe[2] );
|
||||
FilePrintf(hFile,"\t\t<lCPack>%d</lCPack>\r\n", gMercProfileGear[cnt][gearkit].lbe[3] );
|
||||
FilePrintf(hFile,"\t\t<lBPack>%d</lBPack>\r\n", gMercProfileGear[cnt][gearkit].lbe[4] );
|
||||
FilePrintf(hFile,"\t\t<lVestStatus>%d</lVestStatus>\r\n", gMercProfileGear[cnt][gearkit].lStatus[0] );
|
||||
FilePrintf(hFile,"\t\t<lLeftThighStatus>%d</lLeftThighStatus>\r\n", gMercProfileGear[cnt][gearkit].lStatus[1] );
|
||||
FilePrintf(hFile,"\t\t<lRightThighStatus>%d</lRightThighStatus>\r\n", gMercProfileGear[cnt][gearkit].lStatus[2] );
|
||||
FilePrintf(hFile,"\t\t<lCPackStatus>%d</lCPackStatus>\r\n", gMercProfileGear[cnt][gearkit].lStatus[3] );
|
||||
FilePrintf(hFile,"\t\t<lBPackStatus>%d</lBPackStatus>\r\n", gMercProfileGear[cnt][gearkit].lStatus[4] );
|
||||
}
|
||||
FilePrintf(hFile,"\t</MERCGEAR>\r\n");
|
||||
}
|
||||
FilePrintf(hFile,"</MERCGEARLIST>\r\n");
|
||||
@@ -722,3 +762,4 @@ BOOLEAN WriteMercStartingGearStats()
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user