Guest User

Untitled

a guest
Oct 24th, 2016
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef __INC_METIN2_ITEM_LENGTH_H__
  2. #define __INC_METIN2_ITEM_LENGTH_H__
  3. #include "service.h"
  4. enum EItemMisc
  5. {
  6. ITEM_NAME_MAX_LEN = 24,
  7. ITEM_VALUES_MAX_NUM = 6,
  8. ITEM_SMALL_DESCR_MAX_LEN = 256,
  9. ITEM_LIMIT_MAX_NUM = 2,
  10. ITEM_APPLY_MAX_NUM = 3,
  11. ITEM_SOCKET_MAX_NUM = 3,
  12. ITEM_MAX_COUNT = 200,
  13. ITEM_ATTRIBUTE_MAX_NUM = 7,
  14. ITEM_ATTRIBUTE_MAX_LEVEL = 5,
  15. ITEM_AWARD_WHY_MAX_LEN = 50,
  16.  
  17. REFINE_MATERIAL_MAX_NUM = 5,
  18.  
  19. ITEM_ELK_VNUM = 50026,
  20. };
  21.  
  22. const BYTE ITEM_SOCKET_REMAIN_SEC = 0;
  23. enum EItemValueIdice
  24. {
  25. ITEM_VALUE_DRAGON_SOUL_POLL_OUT_BONUS_IDX = 0,
  26. ITEM_VALUE_CHARGING_AMOUNT_IDX = 0,
  27. ITEM_VALUE_SECONDARY_COIN_UNIT_IDX = 0,
  28. };
  29. enum EItemDragonSoulSockets
  30. {
  31. ITEM_SOCKET_DRAGON_SOUL_ACTIVE_IDX = 2,
  32. ITEM_SOCKET_CHARGING_AMOUNT_IDX = 2,
  33. };
  34. enum EItemUniqueSockets
  35. {
  36. ITEM_SOCKET_UNIQUE_SAVE_TIME = ITEM_SOCKET_MAX_NUM - 2,
  37. ITEM_SOCKET_UNIQUE_REMAIN_TIME = ITEM_SOCKET_MAX_NUM - 1
  38. };
  39.  
  40. enum EItemTypes
  41. {
  42. ITEM_NONE, //0
  43. ITEM_WEAPON, //1
  44. ITEM_ARMOR, //2
  45. ITEM_USE, //3
  46. ITEM_AUTOUSE, //4
  47. ITEM_MATERIAL, //5
  48. ITEM_SPECIAL, //6
  49. ITEM_TOOL, //7
  50. ITEM_LOTTERY, //8
  51. ITEM_ELK, //9
  52. ITEM_METIN, //10
  53. ITEM_CONTAINER, //11
  54. ITEM_FISH, //12
  55. ITEM_ROD, //13
  56. ITEM_RESOURCE, //14
  57. ITEM_CAMPFIRE, //15
  58. ITEM_UNIQUE, //16
  59. ITEM_SKILLBOOK, //17
  60. ITEM_QUEST, //18
  61. ITEM_POLYMORPH, //19
  62. ITEM_TREASURE_BOX, //20
  63. ITEM_TREASURE_KEY, //21
  64. ITEM_SKILLFORGET, //22
  65. ITEM_GIFTBOX, //23
  66. ITEM_PICK, //24
  67. ITEM_HAIR, //25
  68. ITEM_TOTEM, //26
  69. ITEM_BLEND, //27
  70. ITEM_COSTUME, //28
  71. ITEM_DS, //29
  72. ITEM_SPECIAL_DS, //30
  73. ITEM_EXTRACT, //31
  74. ITEM_SECONDARY_COIN, //32
  75. ITEM_RING, //33
  76. ITEM_BELT, //34
  77. };
  78.  
  79. enum EMetinSubTypes
  80. {
  81. METIN_NORMAL,
  82. METIN_GOLD,
  83. };
  84.  
  85. enum EWeaponSubTypes
  86. {
  87. WEAPON_SWORD,
  88. WEAPON_DAGGER,
  89. WEAPON_BOW,
  90. WEAPON_TWO_HANDED,
  91. WEAPON_BELL,
  92. WEAPON_FAN,
  93. WEAPON_ARROW,
  94. WEAPON_MOUNT_SPEAR,
  95. #ifdef ENABLE_WOLFMAN_CHARACTER
  96. WEAPON_CLAW,
  97. #endif
  98. WEAPON_NUM_TYPES,
  99. };
  100.  
  101. enum EArmorSubTypes
  102. {
  103. ARMOR_BODY,
  104. ARMOR_HEAD,
  105. ARMOR_SHIELD,
  106. ARMOR_WRIST,
  107. ARMOR_FOOTS,
  108. ARMOR_NECK,
  109. ARMOR_EAR,
  110. ARMOR_NUM_TYPES
  111. };
  112.  
  113. enum ECostumeSubTypes
  114. {
  115. COSTUME_BODY = ARMOR_BODY,
  116. COSTUME_HAIR = ARMOR_HEAD,
  117. COSTUME_NUM_TYPES,
  118. };
  119.  
  120. enum EDragonSoulSubType
  121. {
  122. DS_SLOT1,
  123. DS_SLOT2,
  124. DS_SLOT3,
  125. DS_SLOT4,
  126. DS_SLOT5,
  127. DS_SLOT6,
  128. DS_SLOT_MAX,
  129. };
  130.  
  131. enum EDragonSoulGradeTypes
  132. {
  133. DRAGON_SOUL_GRADE_NORMAL,
  134. DRAGON_SOUL_GRADE_BRILLIANT,
  135. DRAGON_SOUL_GRADE_RARE,
  136. DRAGON_SOUL_GRADE_ANCIENT,
  137. DRAGON_SOUL_GRADE_LEGENDARY,
  138. DRAGON_SOUL_GRADE_MAX,
  139.  
  140. };
  141.  
  142. enum EDragonSoulStepTypes
  143. {
  144. DRAGON_SOUL_STEP_LOWEST,
  145. DRAGON_SOUL_STEP_LOW,
  146. DRAGON_SOUL_STEP_MID,
  147. DRAGON_SOUL_STEP_HIGH,
  148. DRAGON_SOUL_STEP_HIGHEST,
  149. DRAGON_SOUL_STEP_MAX,
  150. };
  151. #define DRAGON_SOUL_STRENGTH_MAX 7
  152.  
  153. enum EDSInventoryMaxNum
  154. {
  155. DRAGON_SOUL_INVENTORY_MAX_NUM = DS_SLOT_MAX * DRAGON_SOUL_GRADE_MAX * DRAGON_SOUL_BOX_SIZE,
  156. };
  157.  
  158. enum EFishSubTypes
  159. {
  160. FISH_ALIVE,
  161. FISH_DEAD,
  162. };
  163.  
  164. enum EResourceSubTypes
  165. {
  166. RESOURCE_FISHBONE,
  167. RESOURCE_WATERSTONEPIECE,
  168. RESOURCE_WATERSTONE,
  169. RESOURCE_BLOOD_PEARL,
  170. RESOURCE_BLUE_PEARL,
  171. RESOURCE_WHITE_PEARL,
  172. RESOURCE_BUCKET,
  173. RESOURCE_CRYSTAL,
  174. RESOURCE_GEM,
  175. RESOURCE_STONE,
  176. RESOURCE_METIN,
  177. RESOURCE_ORE,
  178. };
  179.  
  180. enum EUniqueSubTypes
  181. {
  182. UNIQUE_NONE,
  183. UNIQUE_BOOK,
  184. UNIQUE_SPECIAL_RIDE,
  185. UNIQUE_SPECIAL_MOUNT_RIDE,
  186. };
  187.  
  188. enum EUseSubTypes
  189. {
  190. USE_POTION, // 0
  191. USE_TALISMAN,
  192. USE_TUNING,
  193. USE_MOVE,
  194. USE_TREASURE_BOX,
  195. USE_MONEYBAG,
  196. USE_BAIT,
  197. USE_ABILITY_UP,
  198. USE_AFFECT,
  199. USE_CREATE_STONE,
  200. USE_SPECIAL, // 10
  201. USE_POTION_NODELAY,
  202. USE_CLEAR,
  203. USE_INVISIBILITY,
  204. USE_DETACHMENT,
  205. USE_BUCKET,
  206. USE_POTION_CONTINUE,
  207. USE_CLEAN_SOCKET,
  208. USE_CHANGE_ATTRIBUTE,
  209. USE_ADD_ATTRIBUTE,
  210. USE_ADD_ACCESSORY_SOCKET, // 20
  211. USE_PUT_INTO_ACCESSORY_SOCKET,
  212. USE_ADD_ATTRIBUTE2,
  213. USE_RECIPE,
  214. USE_CHANGE_ATTRIBUTE2,
  215. USE_BIND,
  216. USE_UNBIND,
  217. USE_TIME_CHARGE_PER,
  218. USE_TIME_CHARGE_FIX, // 28
  219. USE_PUT_INTO_BELT_SOCKET, // 29
  220. USE_PUT_INTO_RING_SOCKET, // 30
  221. };
  222.  
  223. enum EExtractSubTypes
  224. {
  225. EXTRACT_DRAGON_SOUL,
  226. EXTRACT_DRAGON_HEART,
  227. };
  228.  
  229. enum EAutoUseSubTypes
  230. {
  231. AUTOUSE_POTION,
  232. AUTOUSE_ABILITY_UP,
  233. AUTOUSE_BOMB,
  234. AUTOUSE_GOLD,
  235. AUTOUSE_MONEYBAG,
  236. AUTOUSE_TREASURE_BOX
  237. };
  238.  
  239. enum EMaterialSubTypes
  240. {
  241. MATERIAL_LEATHER,
  242. MATERIAL_BLOOD,
  243. MATERIAL_ROOT,
  244. MATERIAL_NEEDLE,
  245. MATERIAL_JEWEL,
  246. MATERIAL_DS_REFINE_NORMAL,
  247. MATERIAL_DS_REFINE_BLESSED,
  248. MATERIAL_DS_REFINE_HOLLY,
  249. };
  250.  
  251. enum ESpecialSubTypes
  252. {
  253. SPECIAL_MAP,
  254. SPECIAL_KEY,
  255. SPECIAL_DOC,
  256. SPECIAL_SPIRIT,
  257. };
  258.  
  259. enum EToolSubTypes
  260. {
  261. TOOL_FISHING_ROD
  262. };
  263.  
  264. enum ELotterySubTypes
  265. {
  266. LOTTERY_TICKET,
  267. LOTTERY_INSTANT
  268. };
  269.  
  270. enum EItemFlag
  271. {
  272. ITEM_FLAG_REFINEABLE = (1 << 0),
  273. ITEM_FLAG_SAVE = (1 << 1),
  274. ITEM_FLAG_STACKABLE = (1 << 2),
  275. ITEM_FLAG_COUNT_PER_1GOLD = (1 << 3),
  276. ITEM_FLAG_SLOW_QUERY = (1 << 4),
  277. ITEM_FLAG_UNUSED01 = (1 << 5),
  278. ITEM_FLAG_UNIQUE = (1 << 6),
  279. ITEM_FLAG_MAKECOUNT = (1 << 7),
  280. ITEM_FLAG_IRREMOVABLE = (1 << 8),
  281. ITEM_FLAG_CONFIRM_WHEN_USE = (1 << 9),
  282. ITEM_FLAG_QUEST_USE = (1 << 10),
  283. ITEM_FLAG_QUEST_USE_MULTIPLE = (1 << 11),
  284. ITEM_FLAG_QUEST_GIVE = (1 << 12),
  285. ITEM_FLAG_LOG = (1 << 13),
  286. ITEM_FLAG_APPLICABLE = (1 << 14),
  287. };
  288.  
  289. enum EItemAntiFlag
  290. {
  291. ITEM_ANTIFLAG_FEMALE = (1 << 0),
  292. ITEM_ANTIFLAG_MALE = (1 << 1),
  293. ITEM_ANTIFLAG_WARRIOR = (1 << 2),
  294. ITEM_ANTIFLAG_ASSASSIN = (1 << 3),
  295. ITEM_ANTIFLAG_SURA = (1 << 4),
  296. ITEM_ANTIFLAG_SHAMAN = (1 << 5),
  297. ITEM_ANTIFLAG_GET = (1 << 6),
  298. ITEM_ANTIFLAG_DROP = (1 << 7),
  299. ITEM_ANTIFLAG_SELL = (1 << 8),
  300. ITEM_ANTIFLAG_EMPIRE_A = (1 << 9),
  301. ITEM_ANTIFLAG_EMPIRE_B = (1 << 10),
  302. ITEM_ANTIFLAG_EMPIRE_C = (1 << 11),
  303. ITEM_ANTIFLAG_SAVE = (1 << 12),
  304. ITEM_ANTIFLAG_GIVE = (1 << 13),
  305. ITEM_ANTIFLAG_PKDROP = (1 << 14),
  306. ITEM_ANTIFLAG_STACK = (1 << 15),
  307. ITEM_ANTIFLAG_MYSHOP = (1 << 16),
  308. ITEM_ANTIFLAG_SAFEBOX = (1 << 17),
  309. #ifdef ENABLE_WOLFMAN_CHARACTER
  310. ITEM_ANTIFLAG_WOLFMAN = (1 << 18),
  311. #endif
  312. };
  313.  
  314. enum EItemWearableFlag
  315. {
  316. WEARABLE_BODY = (1 << 0),
  317. WEARABLE_HEAD = (1 << 1),
  318. WEARABLE_FOOTS = (1 << 2),
  319. WEARABLE_WRIST = (1 << 3),
  320. WEARABLE_WEAPON = (1 << 4),
  321. WEARABLE_NECK = (1 << 5),
  322. WEARABLE_EAR = (1 << 6),
  323. WEARABLE_UNIQUE = (1 << 7),
  324. WEARABLE_SHIELD = (1 << 8),
  325. WEARABLE_ARROW = (1 << 9),
  326. WEARABLE_HAIR = (1 << 10),
  327. WEARABLE_ABILITY = (1 << 11),
  328. WEARABLE_COSTUME_BODY = (1 << 12),
  329. };
  330.  
  331. enum ELimitTypes
  332. {
  333. LIMIT_NONE,
  334.  
  335. LIMIT_LEVEL,
  336. LIMIT_STR,
  337. LIMIT_DEX,
  338. LIMIT_INT,
  339. LIMIT_CON,
  340. LIMIT_PCBANG,
  341. LIMIT_REAL_TIME,
  342. LIMIT_REAL_TIME_START_FIRST_USE,
  343. LIMIT_TIMER_BASED_ON_WEAR,
  344.  
  345. LIMIT_MAX_NUM
  346. };
  347.  
  348. enum EAttrAddonTypes
  349. {
  350. ATTR_ADDON_NONE,
  351. ATTR_DAMAGE_ADDON = -1,
  352. };
  353.  
  354. enum ERefineType
  355. {
  356. REFINE_TYPE_NORMAL,
  357. REFINE_TYPE_NOT_USED1,
  358. REFINE_TYPE_SCROLL,
  359. REFINE_TYPE_HYUNIRON,
  360. REFINE_TYPE_MONEY_ONLY,
  361. REFINE_TYPE_MUSIN,
  362. REFINE_TYPE_BDRAGON,
  363. };
  364.  
  365. #endif
RAW Paste Data