07-01-2013, 09:14 AM
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;
}
}

