Getting Client structure
#7

Struct ItemAll fo 010 Editor

typedef struct {
int32 CraftItemID;
int32 CraftItemAmount;
} CRAFT <read=CraftRead>;

string CraftRead(CRAFT &p)
{
string s;
SPrintf(s, "ID:%d|Amount:%d", p.CraftItemID, p.CraftItemAmount);
return s;
}

typedef struct {
int32 NameCount;
char Name[NameCount];
} STR;

typedef struct {
int32 ItemID;
STR ItemNAme;
int32 JobFlag;
int32 Weight;
int32 MaxUse;
int32 Level;
int32 Flag;
int32 Position;
int32 Type;
int32 SubType;
CRAFT Crafts[10];
int32 NeedSkill1ID;
int32 NeedSkill1Level;
int32 NeedSkill2ID;
int32 NeedSkill2Level;
int32 unk1;
int32 unk2;
int32 unk3;
int32 unk4;
int32 Price;
STR Smc;
int32 TexID;
int32 TexRow;
int32 TexCol;
STR Description;
STR Effect1;
STR Effect2;
STR Effect3;
int32 Set1;
int32 Set2;
int32 Set3;
int32 Set4;
int32 Set5;
int32 RareOption;
int32 RareChance;
} ITEM;

int IfLast(ITEM &p, int32 &Max)
{
if(p.ItemID == Max)
{
return 1;
} else
{
return 0;
}
}

int32 MaxID;

while( !FEof() )
{
ITEM Item;
if(IfLast(Item, MaxID))
{
break;
}
}



Messages In This Thread
[No subject] - by Nikolee - 03-30-2013, 11:38 PM
[No subject] - by Maxes727 - 07-01-2013, 07:30 AM
[No subject] - by filix_93 - 07-01-2013, 07:38 AM
[No subject] - by Maxes727 - 07-01-2013, 07:46 AM
[No subject] - by Wizatek - 07-01-2013, 07:58 AM
[No subject] - by someone - 07-01-2013, 09:08 AM
[No subject] - by Maxes727 - 07-01-2013, 09:14 AM
[No subject] - by HateMe - 07-01-2013, 11:28 AM
[No subject] - by someone - 07-01-2013, 03:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)