Something useful?

07/03/2021 23:57 Sandro1029#1
Hi there. Figured out something, so maybe newbie devs will get this useful. Enjoy, guys!


Item:
Class
WARNING!
It is not wear_type. These ones are just definitions of the item, nothing else.
Name Code Explaining
CLASS_ETC 0 Misc
CLASS_DOUBLE_AXE 95 Double Axe
CLASS_DOUBLE_SWORD 96 Double Sword
CLASS_DOUBLE_DAGGER 98 Double Dirks
CLASS_EVERY_WEAPON 99 Not exist
CLASS_ETCWEAPON 100 Other Weapons; Not exist
CLASS_ONEHAND_SWORD 101 One Handed Sword
CLASS_TWOHAND_SWORD 102 Two Handed Sword
CLASS_DAGGER 103 Dagger
CLASS_TWOHAND_SPEAR 104 Spear
CLASS_TWOHAND_AXE 105 Two Handed Axe
CLASS_ONEHAND_MACE 106 One Handed Mace
CLASS_TWOHAND_MACE 107 Two Handed Mace
CLASS_HEAVY_BOW 108 Longbow
CLASS_LIGHT_BOW 109 Shortbow(Not exist in game but exist in structure)
CLASS_CROSSBOW 110 Crossbow
CLASS_ONEHAND_STAFF 111 One Handed Staff
CLASS_TWOHAND_STAFF 112 Two Handed Staff
CLASS_ONEHAND_AXE 113 One Handed Axe
CLASS_ARMOR 200 Common armor
CLASS_FIGHTER_ARMOR 201 Fighter armor
CLASS_HUNTER_ARMOR 202 Hunter armor
CLASS_MAGICIAN_ARMOR 203 Magician armor
CLASS_SUMMONER_ARMOR 204 Summoner armor
CLASS_SHIELD 210 Common shield
CLASS_HELM 220 Common helmet
CLASS_BOOTS 230 Common boots
CLASS_FIGHTER_BOOTS 231 Fighter boots
CLASS_HUNTER_BOOTS 232 Hunter boots
CLASS_MAGICIAN_BOOTS 233 Magician boots
CLASS_SUMMONER_BOOTS 234 Summoner boots
CLASS_GLOVE 240 Common gloves
CLASS_FIGHTER_GLOVE 241 Fighter gloves
CLASS_HUNTER_GLOVE 242 Hunter gloves
CLASS_MAGICIAN_GLOVE 243 Magician gloves
CLASS_SUMMONER_GLOVE 244 Summoner gloves
CLASS_BELT 250 Common belt
CLASS_FIGHTER_BELT 251 Fighter belt
CLASS_HUNTER_BELT 252 Hunter belt
CLASS_MAGICIAN_BELT 253 Magician belt
CLASS_SUMMONER_BELT 254 Summoner belt
CLASS_MANTLE 260 Common mantle
CLASS_FIGHTER_MANTLE 261 Fighter mantle
CLASS_HUNTER_MANTLE 262 Hunter mantle
CLASS_MAGICIAN_MANTLE 263 Magician mantle
CLASS_SUMMONER_MANTLE 264 Summoner mantle
CLASS_QUIVER 265 Quiver
CLASS_BOOSTER 266 Booster Slot
CLASS_ETC_ACCESSORY 300 "guitar accessories" (not exist)
CLASS_RING 301 Ring
CLASS_EARRING 302 Earrings
CLASS_ARMULET 303 Necklace
CLASS_EYEGLASS 304 Face equip slot; calls "face"
CLASS_MASK 305 Not exist
CLASS_CUBE 306 I don't know
CLASS_BOOST_CHIP 400 Chips (Luna, Force, Soul)
CLASS_SOULSTONE 401 Soul Stone
CLASS_CRACKER 402 Animal Cracker
CLASS_FARM_TICKET 403 Creature stable pass
CLASS_USE_CASH_ITEM 502 HV pass & all-in-one-deathmatch-potion
CLASS_DECO_WEAPON 600 deprecated
CLASS_DECO_SHIELD 601 Decorative Shield
CLASS_DECO_ARMOR 602 Decorative Armor
CLASS_DECO_HELM 603 Decorative Head
CLASS_DECO_GLOVE 604 Decorative Gloves
CLASS_DECO_BOOTS 605 Decorative Boots
CLASS_DECO_MALTLE 606 Decorative Cape
CLASS_DECO_SHOULDER 607 Wings
CLASS_DECO_HAIR 608 Hairstyle
CLASS_DECO_ONEHAND_SWORD 609 Decorative One Handed Sword
CLASS_DECO_TWOHAND_SWORD 610 Decorative Two Handed Sword
CLASS_DECO_DAGGER 611 Decorative Dirk
CLASS_DECO_TWOHAND_SPEAR 612 Decorative Spear
CLASS_DECO_TWOHAND_AXE 613 Decorative Two Handed Axe
CLASS_DECO_ONEHAND_MACE 614 Decorative One Handed Mace
CLASS_DECO_TWOHAND_MACE 615 Decorative Two Handed Mace
CLASS_DECO_HEAVY_BOW 616 Longbow deco?
CLASS_DECO_LIGHT_BOW 617 Not even exist lol
CLASS_DECO_CROSSBOW 618 Decorative Crossbow/XBow
CLASS_DECO_ONEHAND_STAFF 619 Decorative One Handed Staff
CLASS_DECO_TWOHAND_STAFF 620 Decorative Two Handed Staff
CLASS_DECO_ONEHAND_AXE 621 Decorative One Handed Axe
CLASS_ETC_SHARDS 700 Jewels; Elite shards


Wear Type
WARNING!
These ones contains wear_type. Use carefully.
Name Code Explaining
WEAR_CANTWEAR -1 No equipment
WEAR_NONE -1 Not equipped
WEAR_STORAGE -2 Warehouse storage
WEAR_WEAPON 0 Right hand only (such as shield)
WEAR_SHIELD 1 Shield
WEAR_ARMOR 2 Armor
WEAR_HELM 3 Helmet
WEAR_GLOVE 4 Gloves
WEAR_BOOTS 5 Boots
WEAR_BELT 6 Belt (NOT CONTAINS SLOTS)
WEAR_MANTLE 7 Cape
WEAR_ARMULET 8 Necklace
WEAR_RING 9 Ring
NULL 10 Second Ring Slot
WEAR_EAR 11 Earrings
WEAR_FACE 12 Decorative Face
WEAR_DECO_HAIR 13 Hairstyle
WEAR_DECO_WEAPON 14 Decorative Weapon
WEAR_DECO_SHIELD 15 Decorative Shield
WEAR_DECO_ARMOR 16 Decorative Armor
WEAR_DECO_HELM 17 Decorative Helmet
WEAR_DECO_GLOVE 18 Decorative Gloves
WEAR_DECO_BOOTS 19 Decorative Boots
WEAR_DECO_MANTLE 20 Decorative cape
WEAR_DECO_SHOULDER 21 Wings
WEAR_RIDE_ITEM 22 Mount slot
WEAR_BAG_SLOT 23 Slot for bag
WEAR_SWAP_WEAPON 24 Swap condition with weapon
WEAR_SWAP_SHIELD 25 Swap condition with shield
WEAR_SWAP_DECO_SHIELD 27 Same with shield, but using for earrings
WEAR_SWAP_DECO_WEAPON 26 Swap condition with decorative weapon
WEAR_BOOSTER 28 Booster
WEAR_RSV 29 Booster too
WEAR_BELT_SLOT 198 Belt slot definition for cards
WEAR_DECO_TWOHAND 199 Deco weapon + shield
WEAR_EAR_EYE 90 Ear+Eye
WEAR_EAR_MOUTH 91 Ear+Mouth
WEAR_EYE_MOUTH 92 Eyes+Mouth
WEAR_EYE_EAR_MOUTH 93 Eyes+Ears+Mouth
WEAR_TWOFINGER_RING 94 Consumes two rings???
WEAR_TWOHAND 99 2-Handed
WEAR_SKILL 100 Skill
WEAR_SUMMON_ONLY 200 Exclusive for creatures only
WEAR_RIGHTHAND WEAR_WEAPON Right hand ONLY(Assignment)
WEAR_LEFTHAND WEAR_SHIELD Left hand ONLY(Assignment)
WEAR_BULLET WEAR_SHIELD Arrows(Assignment)
WEAR_BELT00 1000 It is not part of the server. 1st belt slot
WEAR_BELT01 1001 It is not part of the server. 2nd belt slot
WEAR_BELT02 1002 It is not part of the server. 3rd belt slot
WEAR_BELT03 1003 It is not part of the server. 4rd belt slot
WEAR_BELT04 1004 It is not part of the server. 5th belt slot
WEAR_BELT05 1005 It is not part of the server. 6th belt slot


Optional
These ones contains opt/base variables.
Name Code Explaining
ATTACK_POINT 11 Physical Attack
MAGIC_POINT 12 Magical Attack
ACCURACY 13 Physical Accuracy
ATTACK_SPEED 14 Attack Speed
DEFENCE 15 Physical Defence
MAGIC_DEFENCE 16 Magical Defence
AVOID 17 Evasion
MOVE_SPEED 18 Move Speed
BLOCK_CHANGE 19 Change to block
CARRY_WEIGHT 20 Maximum Weight
BLOCK_DEFENCE 21 Block Defence
CASTING_SPEED 22 Cast speed
MAGIC_ACCURACY 23 Magical Accuracy
MAGIC_AVOID 24 Magical Resistance
COOLTIME_SPEED 25 Reduces skill cooldown
BELT_SLOT 26 Only for belts. Defines slots count
MAX_CHAOS 27 Still not tested. Should be maximum LAKs for chaos stone
MAX_HP 30 Maximum HP
MAX_MP 31 Maximum MP
MP_REGEN_POINT 33 Mana Regeneration
PBLOCK_CHANCE 35 Perfect block chance
ADEF_IGNORE 36 Ignore Physical Defence
MDEF_IGNORE 37 Ignore Magical Defence
ADEM_PENETRATION 38 Penetration of Physical Defence
MDEM_PENETRATION 39 Penetration of Magical Defence
TAMED_ITEM 95 Rental only
INC_PARAMETER_A 96 + to parameter "A" type(common states)
INC_PARAMETER_B 97 + to parameter "B" type
AMP_PARAMETER_A 98 + % to parameter "A" type(common states)
AMP_PARAMETER_B 99 + % to parameter "B" type
INC_SOCKET_COUNT_A 130 The number of additional jewel sockets (type A) IDK if it works
INC_SOCKET_COUNT_B 131 The number of additional jewel sockets (type B) IDK if it works
APPLY_EFFECT 133 Apply continuous effect type performance; IDK if it works
INC_DOUBLE_ATTACK 140 Increasing double attack ratio (Like assassin impact)
INC_COOLTIME_SPEED 141 Decreasing cooldown (Should be similiar to 25)
INC_CASTING_SPEED 142 Increase cast speed (Should be similiar to 22)
RESIST_NEGATIVE 143 Resistance to all control-type effects (Stun, fear, nightmare, etc)
INC_CREATURE_FCM 144 Increasing creature stats


MIX (Combine)
These ones only for mix resource/sub_x values.
Name Code Explaining
MIX_CHECK_ITEM_GROUP 1 Item category check
MIX_CHECK_ITEM_CLASS 2 Item class check
MIX_CHECK_ITEM_ID 3 Item ID check
MIX_CHECK_ITEM_RANK 4 Item rank check
MIX_CHECK_ITEM_LEVEL 5 Item Level check
MIX_CHECK_INSTANCE_FLAG_ON 6 Instance check (0 or 31)
MIX_CHECK_INSTANCE_FLAG_OFF 7 Instance check (0 or 31)
MIX_CHECK_ENHANCE_MATCH 8 Check if enhance matches ( = )
MIX_CHECK_ENHANCE_DISMATCH 9 Check if enhance not matches ( != )
MIX_CHECK_ITEM_COUNT 10 Item count check
MIX_CHECK_ELEMENTAL_EFFECT_MATCH 11 Removed from game
MIX_CHECK_ELEMENTAL_EFFECT_MISMATCH 12 Removed from game
MIX_CHECK_ITEM_WEAR_POSITION_MATCH 13 Removed from game
MIX_CHECK_ITEM_WEAR_POSITION_MISMATCH 14 Removed from game
MIX_CHECK_ITEM_COUNT_GE 15 Seems like another item count check
MIX_CHECK_ITEM_ETHEREAL_DURABILITY_E 16 Ethereal dura count check
MIX_CHECK_ITEM_ETHEREAL_DURABILITY_NE 17 Ethereal dura count check if !=
MIX_CHECK_ITEM_GRADE 18 Item Grade check
MIX_CHECK_SAME_ITEM_ID 19 Similiar Item ID in mix check
MIX_CHECK_SAME_SUMMON_CODE 20 Similiar Item ID in mix check (for creature cards)
MIX_CHECK_ITEM_EXPIRED_TIME_GE 21 Check if time >= value
MIX_CHECK_ITEM_EXPIRED_TIME_LE 22 Check if time <= value
MIX_CHECK_ITEM_FIRST_SOCKET_CODE_MATCH 23 Check for 1st socket (belt)
MIX_CHECK_SAME_ITEM_ENHANCE 24 Similiar enhance value check
MIX_CHECK_SAME_SKILL_ID 25 Same skill ID check(auxiliary material cross-reference type)
MIX_CHECK_ITEM_MAX_ETHEREAL_DURABILITY_E 26 Maximum possible dura value check
MIX_CHECK_ITEM_MAX_ETHEREAL_DURABILITY_NE 27 Maximum possible dura value != check
MIX_CHECK_ITEM_FIRST_SOCKET_CODE_G 28 Check for 1st belt socket < value
MIX_CHECK_ITEM_FIRST_SOCKET_CODE_L 29 Check for 1st belt socket < value
MIX_CHECK_ITEM_TYPE 30 Item Type check
MIX_CHECK_SAME_ITEM_CLASS 31 Item Class check
MIX_CHECK_ITEM_GROUP_NE 32 Item group check != value
MIX_CHECK_INCLUDE_RACE_LIMIT 33 Race limitations check
MIX_CHECK_AWAKEN_ITEM 34 Checks the status of awakened item
MIX_CHECK_SAME_SUMMON_RATE 35 Check if creature has same rank as item
MIX_CHECK_BASE_FLAG_ON 36 Base flags check (I doubt it work)
MIX_CHECK_DESIGNER_DEFIEND_TYPE 37 Not understandable
MIX_CHECK_BASE_FLAG_OFF 38 Base flags checks != value(I doubt it work)


MIX (Combine)
These ones only for mix resource/mix_type values.
Name Code Explaining
MIX_ENHANCE 101 Enhance items with cubes
MIX_ENHANCE_SKILL_CARD 102 Enhance for skill cards
MIX_ENHANCE_WITHOUT_FAIL 103 Enhance items (can not be broken this way)
MIX_ENHANCE_CREATURE_CARD 104 Enhance for creature cards
MIX_ENHANCE_CREATURE_CARD_WITH_JOKER 105 Enhance for creature cards (with joker)
MIX_ENHANCE_SKILL_CARD_WITHOUT_FAIL 106 Enhance for skill cards (Only 1 of them gonna dissapear if fail)
MIX_ULTIMATE_ENHANCE 111 Enhance gear from +20 up to +25
MIX_SET_LEVEL 201 Increasing level of gear
MIX_SET_LEVEL_CREATE_ITEM 202 For crafting ancient cubes
MIX_SET_LEVEL_SET_FLAG 211 I literally don't understand; There are no such Mixes
MIX_SET_LEVEL_SET_FLAG_CREATE_ITEM 212 Something like destroying item
MIX_SET_LEVEL_SET_FLAG_CREATE_ITEM_WITH_MAIN_MATERIAL_LEVEL 213 I literally don't understand; There are no such Mixes
MIX_SET_LEVEL_ON_SUB_MATERIAL_LEVEL_SET_FLAG 214 For transfering and reducing/increasing item enhances
MIX_SET_LEVEL_SET_FLAG_CREATE_ITEM_WITH_MAIN_MATERIAL_LEVEL_SET_ZERO 215 Seems like mix to get chaos stone from neck
MIX_ADD_LEVEL 301 Enhance; Add level count to enhancing item
MIX_ADD_LEVEL_CREATE_ITEM 302 Creates an item with fixed level
MIX_ADD_LEVEL_SET_FLAG 311 Can't understand; There is MIX for unsealing item from unit card
MIX_ADD_LEVEL_SET_FLAG_CREATE_ITEM 312 I literally don't understand; There are no such Mixes
MIX_RECYCLE 401 I literally don't understand; There are no such Mixes
MIX_RECYCLE_ENHANCE 402 To get back cubes from broken items
MIX_RESTORE_ENHANCE_SET_FLAG 501 To repair broken items (Enhancing)
MIX_CREATE_ITEM 601 Creating an item from another ones in combination window
MIX_REPLACE_WITH 602 Replacing item id but keeping existing stats
MIX_CHANGE_APPEARANCE_CODE 603 Changing the item appearance, but keeping existing stats
MIX_CHANGE_USABLE_PERIOD 604 Resets timer for timed items to specifix(fixed) value
MIX_CREATE_ITEM_IN_MASS 605 601 mix id, but combines all items which you place here
MIX_SET_ELEMENTAL_EFFECT 701 Removed from game
MIX_SET_ELEMENTAL_EFFECT_PARAMETER 702 Removed from game
MIX_SET_SOCKET 703 Additional belt socket
MIX_REPLACE_SOCKET_WITH 704 Transfering belt sockets to another one
MIX_SACRIFICE_ITEM_FOR_ETHEREAL_DURABILITY_WITH_MESSAGE 801 Not exist; charging ethereal stone
MIX_TRANSMIT_ETHEREAL_DURABILITY 802 Clearly not understandable
MIX_RECOVER_EXHAUSTED_ETHEREAL_DURABILITY 803 Seems like full charge of ethereal stone
MIX_SACRIFICE_ITEM_FOR_ETHEREAL_DURABILITY 804 Restore item dura via another one(Used to recover special pets like koala)
MIX_SACRIFICE_ITEM_FOR_ETHEREAL_STONE_DURABILITY 805 Charging ethereal stone via items
MIX_TRANSMIT_ETHEREAL_DURABILITY_FROM_ETHEREAL_STONE 806 Clearly not understandable
MIX_AWAKEN_ITEM 807 Item Awakening
MIX_DELETE_AWAKEN_OPTION 808 Remove awakening
MIX_ITEM_IDENTIFY_FOR_RANDOM_OPTION 901 Definition of undefined gear



States (Type A)
These ones contains variables for stats with 96&&98 in item effect/opt&&base vars; 1&&2 in states, etc, etc.
Note: You can double them via summ. For example: To get accuracy+agility in one single state, you should use 16384 + 8 = 16392. By the way, you can use @[Only registered and activated users can see links. Click Here To Register...]'s Grimoire. It has bit flag editor utility.
Name Binary Decimal
STR(Strength) 1 1
VIT(Vitality) 1<<1 2
DEX(Dexterity) 1<<2 4
AGI(Agility) 1<<3 8
INT(Intelligence) 1<<4 16
MEN(Wisdom) 1<<5 32
LUCK(Luck) 1<<6 64
PHYSICS(P.Attack) 1<<7 128
MAGIC(M.Attack) 1<<8 256
PHY_DEF(P.Defence) 1<<9 512
MGC_DEF(M.Defence) 1<<10 1024
A_SPEED(Attack Speed) 1<<11 2048
C_SPEED(Cast Speed) 1<<12 4096
M_SPEED(Move Speed) 1<<13 8192
ACCURACY(P.Accuracy) 1<<14 16384
MGS_ACRC(M.Accuracy) 1<<15 32768
CRI(Crit. Ratio) 1<<16 65536
BLOCK(Block Ratio) 1<<17 131072
BLC_DEF(Block Def) 1<<18 262144
AVOIDANCE(Evasion) 1<<19 524288
MGS_RESIST(Magical Resist) 1<<20 1048576
MAXHP(Max HP) 1<<21 2097152
MAXMP(Max MP) 1<<22 4194304
MAXSP(Max SP) 1<<23 8388608
HP_RECVRY(HP Recov) 1<<24 16777216
MP_RECVRY(Mp Recov) 1<<25 33554432
SP_RECVRY(Sp Recov) 1<<26 67108864
HP_REGEN(HP Regen) 1<<27 134217728
MP_REGEN(MP Regen) 1<<28 268435456
CRI_POWER(Critical power) 1<<29 536870912
POSSESS(Max Weight) 1<<30 1073741824


States (Type B)
These ones contains variables for stats with 97&&99 in item effect/opt&&base vars, as far as I know
Name Binary Decimal
NOR_RESIST(Non-Elemental Resistance) 1 1
FIRE_RESIST(Fire Resistance) 1<<1 2
WATER_RESIST(Water Resistance) 1<<2 4
WIND_RESIST(Air Resistance) 1<<3 8
EARTH_RESIST(Earth Resistance) 1<<4 16
LIGHT_RESIST(Holy Resistance) 1<<5 32
DARK_RESIST(Darkness Resistance) 1<<6 64
PBLOCK_CHANCE(Perf.Block ratio) 1<<9 512
ADEF_IGNORE(P. Ignore) 1<<10 1024
MDEF_IGNORE(M. Ignore) 1<<11 2048
ADEM_PENETRATION(P. Pierce) 1<<12 4096
MDEM_PENETRATION(M. Pierce) 1<<13 8192
NOR_CONTN(Non-Elemental Lasting Damage) 1<<14 16384
FIRE_CONTN(Fire Lasting Damage) 1<<15 32768
WATER_CONTN(Water Lasting Damage) 1<<16 65536
WIND_CONTN(Air Lasting Damage) 1<<17 131072
EARTH_CONTN(Earth Lasting Damage) 1<<18 262144
LIGHT_CONTN(Holy Lasting Damage) 1<<19 524288
DARK_CONTN(Shade Lasting Damage) 1<<20 1048576
NOR_DAG(Non-Elemental Additional Damage) 1<<21 2097152
FIRE_DAG(Fire Additional Damage) 1<<22 4194304
WATER_DAG(Water Additional Damage) 1<<23 8388608
WIND_DAG(Air Additional Damage) 1<<24 16777216
EARTH_DAG(Earth Additional Damage) 1<<25 33554432
LIGHT_DAG(Holy Additional Damage) 1<<26 67108864
DARK_DAG(Shade Additional Damage) 1<<27 134217728
CRI_DAG(Critical Power) 1<<28 268435456
HP_REGEN_STOP(HP Regeneration stop) 1<<29 536870912
MP_REGEN_STOP(MP Regeneration stop) 1<<30 1073741824

Item Flags (e8.1+)
These ones contains item_use_flag variables. Works as states types (item_use_flag = 6 means FLAG_CANT_STORAGE (2) + FLAG_CANT_ENHANCE (4)
Name Decimal
FLAG_CANT_DONATE 1
FLAG_CANT_STORAGE 2
FLAG_CANT_ENHANCE 4
FLAG_USE 8
FLAG_CARD 16
FLAG_SOCKET 32
FLAG_JOIN 64
FLAG_TARGET_USE 128
FLAG_WARP 256
FLAG_CANT_TRADE 512
FLAG_CANT_SELL 1024
FLAG_QUEST 2048
FLAG_CANT_USE_OVERWEIGHT 4096
FLAG_CASHITEM 8192
FLAG_CANT_USE_RIDING 16384
FLAG_CANT_DROP 32768
FLAG_CANT_USE_MOVING 65536
FLAG_QUEST_DISTRIBUTE 131072
FLAG_CANT_USE_SIT 262144
FLAG_CANT_USE_IN_RAID_SIEGE 524288
FLAG_CANT_USE_IN_SECROUTE 524288
FLAG_CANT_USE_IN_EVENTMAP 1048576
FLAG_CANT_USE_IN_HUNTAHOLIC 2097152
FLAG_USABLE_IN_ONLY_HUNTAHOLIC 4194304
FLAG_CANT_USE_IN_DEATHMATCH 8388608
FLAG_USABLE_IN_ONLY_DEATHMATCH 16777216
FLAG_NOT_ERASABLE 33554432
FLAG_USABLE_ON_ONLY_SIT 67108864
FLAG_CANT_USE_IN_SECRET_DUNGEON 134217728
FLAG_CANT_USE_IN_BATTLE_ARENA 268435456
FLAG_CANT_DECOMPOSE 536870912
FLAG_RANDOMIZABLE 1073741824
07/04/2021 09:09 Sherock#2
This thing is useful, and needs to be added to the useful links thread
07/07/2021 14:36 CHlNAMAN#3
Thank you for sharing this. I've been looking for this information. Definitely needs a pin!
07/11/2021 06:59 Sandro1029#4
UPD: Added states both types
10/20/2021 01:41 Sandro1029#5
UPD: Added Item Flags