-
Notifications
You must be signed in to change notification settings - Fork 13
charitem object
HarpyWar edited this page Jan 16, 2019
·
2 revisions
charitem bytes can be saved as a standalone file and opened with ATMA V or Hero Editor.
Here is incomplete info for display Diablo 2 like description. It includes image, title, part of properties, and all raw properties.
If you need complete description then you can use https://github.com/nokka/d2s
Key | Data Type | Description |
---|---|---|
fileType |
string | Type of this object structure, should be "charitem" |
hash |
string[32] | (readonly) MD5 hash of data
|
data |
string | Base64 encoded raw bytes of this charitem |
displayData |
object | (readonly) General info about the item: title , uniqueSetName , imageFile , imagePath (path is relation to https://api.pvpgn.pro) |
itemCode |
string | |
id |
int | |
level |
int | Item level |
quality |
int | Item quality. Allowed values [0 = Unknown, 1 = Inferior, 2 = Normal, 3 = Superior, 4 = Magic, 5 = Set, 6 = Rare, 7 = Unique, 8 = Craft] |
uniqueSetId |
int | |
isEquipped |
bool | |
isInSocket |
bool | |
isIdentified |
bool | |
isSwitchIn |
bool | |
isSwitchOut |
bool | |
isBroken |
bool | |
isSocketed |
bool | |
isPotion |
bool | |
isStoreItem |
bool | |
isNotInSocket |
bool | |
isEar |
bool | Is item ear or not |
isStarterItem |
bool | |
isSimpleItem |
bool | |
isEthereal |
bool | Is item ethereal or not |
isPersonalized |
bool | Is item personalized or not |
isGamble |
bool | |
isRuneword |
bool | Is item runeword or not |
location |
int | Item location. Allowed values [0 = Stored, 1 = Equipped, 2 = Belt, 3 = Ground, 4 = Tohand, 5 = Dropping, 6 = Socketed] |
positionOnBody |
int | |
positionX |
int | Position X in a storage starting from 0 |
positionY |
int | Position Y in a storage starting from 0 |
storageId |
int | Storage id where item is in. Allowed valued [0 = Unknown, 1 = Inventory, 2 = UnknownB, 3 = UnknownC, 4 = Cube, 5 = Stash] |
goldAmountSmall |
int | |
goldAmountLarge |
int | |
socketsFilled |
int | Busy sockets, should equal to count in sockets
|
hasGraphic |
bool | |
graphic |
int | |
defense |
int | |
maxDurability |
int | |
durability |
int | |
isIndestructable |
bool | |
socketCount |
int | Available sockets, which can be filled with items |
quantity |
int | |
randomFlag |
bool | |
unknownGoldFlag |
bool | |
classFlag |
bool | |
classInfo |
int | |
inferiorQualityType |
int | |
superiorQualityType |
int | |
charmData |
int | |
spellId |
int | |
monsterId |
int | |
earClass |
int | |
earLevel |
int | |
earName |
string | (readonly) Name of the ear, not null if isEar = true |
personalizedName |
string | (readonly) |
runewordId |
int | |
prefixNameId |
int | [Affix] |
suffixNameId |
int | [Affix] |
prefixFlag0 |
bool | [Affix] |
prefixFlag1 |
bool | [Affix] |
prefixFlag2 |
bool | [Affix] |
suffixFlag0 |
bool | [Affix] |
suffixFlag1 |
bool | [Affix] |
suffixFlag2 |
bool | [Affix] |
magicPrefix |
int | [Affix] |
magicSuffix |
int | [Affix] |
prefix0 |
int | [Affix] |
prefix1 |
int | [Affix] |
prefix2 |
int | [Affix] |
suffix0 |
int | [Affix] |
suffix1 |
int | [Affix] |
suffix2 |
int | [Affix] |
properties |
itemproperty array | Item properties |
propertiesRuneword |
itemproperty array | Runeword properties |
propertiesSet |
itemproperty array | Set bonuses for wearing multiple parts |
sockets |
charitem array | If isSocketed true then it can contain child items called sockets |
Json Response Example
{
"fileType": "charitem",
"hash": "e13dd193d37f03e154bfa17baa4f8020",
"data": "Sk0QCIAAZQAAIhYWBgIAAACA8XERBnFzIwDQCKBBQHYCKgXUCqgWUDwMU6gxsjsoeIEA6D8=",
"sockets": [],
"properties": [
{
"id": 0,
"value": 20,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "to Strength"
},
{
"id": 2,
"value": 20,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "to Dexterity"
},
{
"id": 16,
"value": 200,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Enhanced Defense"
},
{
"id": 39,
"value": 30,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Fire Resist"
},
{
"id": 41,
"value": 30,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Lightning Resist"
},
{
"id": 43,
"value": 30,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Cold Resist"
},
{
"id": 45,
"value": 30,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Poison Resist"
},
{
"id": 60,
"value": 6,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Life stolen per hit"
},
{
"id": 83,
"value": 4,
"paramValue": 2,
"isAdditionalProperty": false,
"description": "to Amazon Skill Levels"
},
{
"id": 99,
"value": 30,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "Faster Hit Recovery"
},
{
"id": 119,
"value": 20,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "bonus to Attack Rating"
},
{
"id": 188,
"value": 0,
"paramValue": 16388,
"isAdditionalProperty": false,
"description": "+%d to Javelin and Spear Skills"
},
{
"id": 511,
"value": 0,
"paramValue": 0,
"isAdditionalProperty": false,
"description": "EOF"
}
],
"propertiesRuneword": [],
"propertiesSet": [],
"isEquipped": false,
"isInSocket": false,
"isIdentified": true,
"isSwitchIn": false,
"isSwitchOut": false,
"isBroken": false,
"isSocketed": true,
"isPotion": false,
"isStoreItem": false,
"isNotInSocket": false,
"isEar": false,
"isStarterItem": false,
"isSimpleItem": false,
"isEthereal": false,
"isPersonalized": false,
"isGamble": false,
"isRuneword": false,
"location": 0,
"positionOnBody": 0,
"positionX": 0,
"positionY": 0,
"storageId": 1,
"itemCode": "baa",
"goldAmountSmall": 0,
"goldAmountLarge": 0,
"socketsFilled": 0,
"id": 0,
"level": 99,
"quality": 7,
"hasGraphic": false,
"graphic": 0,
"uniqueSetId": 279,
"defense": 121,
"maxDurability": 55,
"durability": 55,
"isIndestructable": false,
"socketCount": 1,
"quantity": 0,
"randomFlag": false,
"unknownGoldFlag": false,
"classFlag": false,
"classInfo": 0,
"inferiorQualityType": 0,
"superiorQualityType": 0,
"charmData": 0,
"spellId": 0,
"monsterId": 0,
"earClass": 0,
"earLevel": 0,
"earName": null,
"personalizedName": null,
"runewordId": 0,
"prefixNameId": 0,
"suffixNameId": 0,
"prefixFlag0": false,
"prefixFlag1": false,
"prefixFlag2": false,
"suffixFlag0": false,
"suffixFlag1": false,
"suffixFlag2": false,
"magicPrefix": 0,
"magicSuffix": 0,
"prefix0": 0,
"prefix1": 0,
"prefix2": 0,
"suffix0": 0,
"suffix1": 0,
"suffix2": 0,
"displayData": {
"title": "Slayer Guard",
"uniqueSetName": "UNKNOWN SET",
"imageFile": "invba5",
"imagePath": "images/d2gfx/invba5.gif"
}
}