Guest User

Untitled

a guest
Oct 20th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.84 KB | None | 0 0
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3.  
  4. #ifndef _MMO_H_
  5. #define _MMO_H_
  6.  
  7. #include "cbasetypes.h"
  8. #include "../common/db.h"
  9. #include <time.h>
  10.  
  11. // server->client protocol version
  12. // 0 - pre-?
  13. // 1 - ? - 0x196
  14. // 2 - ? - 0x78, 0x79
  15. // 3 - ? - 0x1c8, 0x1c9, 0x1de
  16. // 4 - ? - 0x1d7, 0x1d8, 0x1d9, 0x1da
  17. // 5 - 2003-12-18aSakexe+ - 0x1ee, 0x1ef, 0x1f0, ?0x1c4, 0x1c5?
  18. // 6 - 2004-03-02aSakexe+ - 0x1f4, 0x1f5
  19. // 7 - 2005-04-11aSakexe+ - 0x229, 0x22a, 0x22b, 0x22c
  20. // 20061023 - 2006-10-23aSakexe+ - 0x6b, 0x6d
  21. // 20070521 - 2007-05-21aSakexe+ - 0x283
  22. // 20070821 - 2007-08-21aSakexe+ - 0x2c5
  23. // 20070918 - 2007-09-18aSakexe+ - 0x2d7, 0x2d9, 0x2da
  24. // 20071106 - 2007-11-06aSakexe+ - 0x78, 0x7c, 0x22c
  25. // 20080102 - 2008-01-02aSakexe+ - 0x2ec, 0x2ed , 0x2ee
  26. // 20081126 - 2008-11-26aSakexe+ - 0x1a2
  27. // 20090408 - 2009-04-08aSakexe+ - 0x44a (dont use as it overlaps with RE client packets)
  28. // 20080827 - 2008-08-27aRagexeRE+ - First RE Client
  29. // 20081217 - 2008-12-17aRagexeRE+ - 0x6d (Note: This one still use old Char Info Packet Structure)
  30. // 20081218 - 2008-12-17bRagexeRE+ - 0x6d (Note: From this one client use new Char Info Packet Structure)
  31. // 20090603 - 2009-06-03aRagexeRE+ - 0x7d7, 0x7d8, 0x7d9, 0x7da
  32. // 20090617 - 2009-06-17aRagexeRE+ - 0x7d9
  33. // 20090922 - 2009-09-22aRagexeRE+ - 0x7e5, 0x7e7, 0x7e8, 0x7e9
  34. // 20091103 - 2009-11-03aRagexeRE+ - 0x7f7, 0x7f8, 0x7f9
  35. // 20100105 - 2010-01-05aRagexeRE+ - 0x133, 0x800, 0x801
  36. // 20100126 - 2010-01-26aRagexeRE+ - 0x80e
  37. // 20100223 - 2010-02-23aRagexeRE+ - 0x80f
  38. // 20100413 - 2010-04-13aRagexeRE+ - 0x6b
  39. // 20100629 - 2010-06-29aRagexeRE+ - 0x2d0, 0xaa, 0x2d1, 0x2d2
  40. // 20100721 - 2010-07-21aRagexeRE+ - 0x6b, 0x6d
  41. // 20100727 - 2010-07-27aRagexeRE+ - 0x6b, 0x6d
  42. // 20100803 - 2010-08-03aRagexeRE+ - 0x6b, 0x6d, 0x827, 0x828, 0x829, 0x82a, 0x82b, 0x82c, 0x842, 0x843
  43. // 20101124 - 2010-11-24aRagexeRE+ - 0x856, 0x857, 0x858
  44. // 20110111 - 2011-01-11aRagexeRE+ - 0x6b, 0x6d
  45. // 20110928 - 2011-09-28aRagexeRE+ - 0x6b, 0x6d
  46. // 20111025 - 2011-10-25aRagexeRE+ - 0x6b, 0x6d
  47. // 20120307 - 2012-03-07aRagexeRE+ - 0x970
  48.  
  49. #ifndef PACKETVER
  50. #define PACKETVER 20120410
  51. //#define PACKETVER 20130320
  52. //#define PACKETVER 20111116
  53. #endif
  54.  
  55. //Remove/Comment this line to disable sc_data saving. [Skotlex]
  56. #define ENABLE_SC_SAVING
  57. //Remove/Comment this line to disable server-side hot-key saving support [Skotlex]
  58. //Note that newer clients no longer save hotkeys in the registry!
  59. #define HOTKEY_SAVING
  60.  
  61. #if PACKETVER < 20090603
  62. // (27 = 9 skills x 3 bars) (0x02b9,191)
  63. #define MAX_HOTKEYS 27
  64. #elif PACKETVER < 20090617
  65. // (36 = 9 skills x 4 bars) (0x07d9,254)
  66. #define MAX_HOTKEYS 36
  67. #else
  68. // (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268)
  69. #define MAX_HOTKEYS 38
  70. #endif
  71.  
  72. #define MAX_MAP_PER_SERVER 1500 // Increased to allow creation of Instance Maps
  73. #define MAX_INVENTORY 100
  74. //Max number of characters per account. Note that changing this setting alone is not enough if the client is not hexed to support more characters as well.
  75. #define MAX_CHARS 9
  76. //Number of slots carded equipment can have. Never set to less than 4 as they are also used to keep the data of forged items/equipment. [Skotlex]
  77. //Note: The client seems unable to receive data for more than 4 slots due to all related packets having a fixed size.
  78. #define MAX_SLOTS 4
  79. //Max amount of a single stacked item
  80. #define MAX_AMOUNT 30000
  81. #define MAX_ZENY 1000000000
  82. #define MAX_FAME 1000000000
  83. #define MAX_CART 100
  84. #define MAX_SKILL 5020
  85. #define GLOBAL_REG_NUM 256 // max permanent character variables per char
  86. #define ACCOUNT_REG_NUM 64 // max permanent local account variables per account
  87. #define ACCOUNT_REG2_NUM 16 // max permanent global account variables per account
  88. //Should hold the max of GLOBAL/ACCOUNT/ACCOUNT2 (needed for some arrays that hold all three)
  89. #define MAX_REG_NUM 256
  90. #define DEFAULT_WALK_SPEED 150
  91. #define MIN_WALK_SPEED 0
  92. #define MAX_WALK_SPEED 1000
  93. #define MAX_STORAGE 600
  94. #define MAX_GUILD_STORAGE 600
  95. #define MAX_PARTY 12
  96. #define MAX_GUILD 16+10*6 // increased max guild members +6 per 1 extension levels [Lupus]
  97. #define MAX_GUILDPOSITION 20 // increased max guild positions to accomodate for all members [Valaris] (removed) [PoW]
  98. #define MAX_GUILDEXPULSION 32
  99. #define MAX_GUILDALLIANCE 16
  100. #define MAX_GUILDSKILL 15 // increased max guild skills because of new skills [Sara-chan]
  101. #define MAX_GUILDLEVEL 50
  102. #define MAX_GUARDIANS 8 //Local max per castle. [Skotlex]
  103. #define MAX_QUEST_DB 2700 //Max quests that the server will load
  104. #define MAX_QUEST_OBJECTIVES 3 //Max quest objectives for a quest
  105.  
  106. // for produce
  107. #define MIN_ATTRIBUTE 0
  108. #define MAX_ATTRIBUTE 4
  109. #define ATTRIBUTE_NORMAL 0
  110. #define MIN_STAR 0
  111. #define MAX_STAR 3
  112.  
  113. #define MAX_STATUS_TYPE 5
  114.  
  115. #define WEDDING_RING_M 2634
  116. #define WEDDING_RING_F 2635
  117.  
  118. //For character names, title names, guilds, maps, etc.
  119. //Includes null-terminator as it is the length of the array.
  120. #define NAME_LENGTH (23 + 1)
  121. //For item names, which tend to have much longer names.
  122. #define ITEM_NAME_LENGTH 50
  123. //For Map Names, which the client considers to be 16 in length including the .gat extension
  124. #define MAP_NAME_LENGTH (11 + 1)
  125. #define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)
  126. //Pincode Length
  127. #define PINCODE_LENGTH 4
  128.  
  129. #define MAX_FRIENDS 40
  130. #define MAX_MEMOPOINTS 3
  131. #define MAX_SKILLCOOLDOWN 20
  132.  
  133. //Size of the fame list arrays.
  134. #define MAX_FAME_LIST 10
  135.  
  136. //Limits to avoid ID collision with other game objects
  137. #define START_ACCOUNT_NUM 2000000
  138. #define END_ACCOUNT_NUM 100000000
  139. #define START_CHAR_NUM 150000
  140.  
  141. //Guilds
  142. #define MAX_GUILDMES1 60
  143. #define MAX_GUILDMES2 120
  144.  
  145. //Base Homun skill.
  146. #define HM_SKILLBASE 8001
  147. #define MAX_HOMUNSKILL 43
  148. #define MAX_HOMUNCULUS_CLASS 52 //[orn], Increased to 60 from 16 to allow new Homun-S.
  149. #define HM_CLASS_BASE 6001
  150. #define HM_CLASS_MAX (HM_CLASS_BASE+MAX_HOMUNCULUS_CLASS-1)
  151.  
  152. //Mail System
  153. #define MAIL_MAX_INBOX 30
  154. #define MAIL_TITLE_LENGTH 40
  155. #define MAIL_BODY_LENGTH 200
  156.  
  157. //Mercenary System
  158. #define MC_SKILLBASE 8201
  159. #define MAX_MERCSKILL 40
  160. #define MAX_MERCENARY_CLASS 61
  161.  
  162. //Elemental System
  163. #define MAX_ELEMENTALSKILL 42
  164. #define EL_SKILLBASE 8401
  165. #define MAX_ELESKILLTREE 3
  166. #define MAX_ELEMENTAL_CLASS 12
  167. #define EL_CLASS_BASE 2114
  168. #define EL_CLASS_MAX (EL_CLASS_BASE+MAX_ELEMENTAL_CLASS-1)
  169.  
  170. enum item_types {
  171. IT_HEALING = 0,
  172. IT_UNKNOWN, //1
  173. IT_USABLE, //2
  174. IT_ETC, //3
  175. IT_WEAPON, //4
  176. IT_ARMOR, //5
  177. IT_CARD, //6
  178. IT_PETEGG, //7
  179. IT_PETARMOR,//8
  180. IT_UNKNOWN2,//9
  181. IT_AMMO, //10
  182. IT_DELAYCONSUME,//11
  183. IT_CASH = 18,
  184. IT_MAX
  185. };
  186.  
  187.  
  188. //Questlog system [Kevin] [Inkfish]
  189. typedef enum quest_state { Q_INACTIVE, Q_ACTIVE, Q_COMPLETE } quest_state;
  190.  
  191. struct quest {
  192. int quest_id;
  193. unsigned int time;
  194. int count[MAX_QUEST_OBJECTIVES];
  195. quest_state state;
  196. };
  197.  
  198. struct item {
  199. int id;
  200. short nameid;
  201. short amount;
  202. unsigned short equip; // location(s) where item is equipped (using enum equip_pos for bitmasking)
  203. char identify;
  204. char refine;
  205. char attribute;
  206. short card[MAX_SLOTS];
  207. unsigned int expire_time;
  208. char favorite, bound;
  209. uint64 unique_id;
  210. };
  211.  
  212. struct point {
  213. unsigned short map;
  214. short x,y;
  215. };
  216.  
  217. enum e_skill_flag
  218. {
  219. SKILL_FLAG_PERMANENT,
  220. SKILL_FLAG_TEMPORARY,
  221. SKILL_FLAG_PLAGIARIZED,
  222. SKILL_FLAG_REPLACED_LV_0, // temporary skill overshadowing permanent skill of level 'N - SKILL_FLAG_REPLACED_LV_0',
  223. SKILL_FLAG_PERM_GRANTED, // permanent, granted through someway e.g. script
  224. SKILL_FLAG_TMP_COMBO, //@FIXME for homon combo atm
  225. //...
  226. };
  227.  
  228. struct s_skill {
  229. unsigned short id;
  230. unsigned char lv;
  231. unsigned char flag; // see enum e_skill_flag
  232. };
  233.  
  234. struct global_reg {
  235. char str[32];
  236. char value[256];
  237. };
  238.  
  239. //Holds array of global registries, used by the char server and converter.
  240. struct accreg {
  241. int account_id, char_id;
  242. int reg_num;
  243. struct global_reg reg[MAX_REG_NUM];
  244. };
  245.  
  246. //For saving status changes across sessions. [Skotlex]
  247. struct status_change_data {
  248. unsigned short type; //SC_type
  249. long val1, val2, val3, val4, tick; //Remaining duration.
  250. };
  251.  
  252. struct skill_cooldown_data {
  253. unsigned short skill_id;
  254. long tick;
  255. };
  256.  
  257. struct storage_data {
  258. int storage_amount;
  259. struct item items[MAX_STORAGE];
  260. };
  261.  
  262. struct guild_storage {
  263. int dirty;
  264. int guild_id;
  265. short storage_status;
  266. short storage_amount;
  267. struct item items[MAX_GUILD_STORAGE];
  268. unsigned short lock;
  269. };
  270.  
  271. struct s_pet {
  272. int account_id;
  273. int char_id;
  274. int pet_id;
  275. short class_;
  276. short level;
  277. short egg_id;//pet egg id
  278. short equip;//pet equip name_id
  279. short intimate;//pet friendly
  280. short hungry;//pet hungry
  281. char name[NAME_LENGTH];
  282. char rename_flag;
  283. char incuvate;
  284. };
  285.  
  286. struct s_homunculus { //[orn]
  287. char name[NAME_LENGTH];
  288. int hom_id;
  289. int char_id;
  290. short class_;
  291. short prev_class;
  292. int hp,max_hp,sp,max_sp;
  293. unsigned int intimacy; //[orn]
  294. short hunger;
  295. struct s_skill hskill[MAX_HOMUNSKILL]; //albator
  296. short skillpts;
  297. short level;
  298. unsigned int exp;
  299. short rename_flag;
  300. short vaporize; //albator
  301. int str ;
  302. int agi ;
  303. int vit ;
  304. int int_ ;
  305. int dex ;
  306. int luk ;
  307.  
  308. char spiritball; //for homun S [lighta]
  309. };
  310.  
  311. struct s_mercenary {
  312. int mercenary_id;
  313. int char_id;
  314. short class_;
  315. int hp, sp;
  316. unsigned int kill_count;
  317. unsigned int life_time;
  318. };
  319.  
  320. struct s_elemental {
  321. int elemental_id;
  322. int char_id;
  323. short class_;
  324. int mode;
  325. int hp, sp, max_hp, max_sp, matk, atk, atk2;
  326. short hit, flee, amotion, def, mdef;
  327. int life_time;
  328. };
  329.  
  330. struct s_friend {
  331. int account_id;
  332. int char_id;
  333. char name[NAME_LENGTH];
  334. };
  335.  
  336. #ifdef HOTKEY_SAVING
  337. struct hotkey {
  338. unsigned int id;
  339. unsigned short lv;
  340. unsigned char type; // 0: item, 1: skill
  341. };
  342. #endif
  343.  
  344. struct mmo_charstatus {
  345. int char_id;
  346. int account_id;
  347. int partner_id;
  348. int father;
  349. int mother;
  350. int child;
  351.  
  352. unsigned int base_exp,job_exp;
  353. int zeny;
  354.  
  355. short class_;
  356. unsigned int status_point,skill_point;
  357. int hp,max_hp,sp,max_sp;
  358. unsigned int option;
  359. short manner;
  360. unsigned char karma;
  361. short hair,hair_color,clothes_color;
  362. int party_id,guild_id,pet_id,hom_id,mer_id,ele_id;
  363. int fame;
  364.  
  365. // Mercenary Guilds Rank
  366. int arch_faith, arch_calls;
  367. int spear_faith, spear_calls;
  368. int sword_faith, sword_calls;
  369.  
  370. short weapon; // enum weapon_type
  371. short shield; // view-id
  372. short head_top,head_mid,head_bottom;
  373. short robe;
  374.  
  375. char name[NAME_LENGTH];
  376. unsigned int base_level,job_level;
  377. short str,agi,vit,int_,dex,luk;
  378. unsigned char slot,sex;
  379.  
  380. uint32 mapip;
  381. uint16 mapport;
  382.  
  383. struct point last_point,save_point,memo_point[MAX_MEMOPOINTS];
  384. struct item inventory[MAX_INVENTORY],cart[MAX_CART];
  385. struct storage_data storage;
  386. struct s_skill skill[MAX_SKILL];
  387.  
  388. struct s_friend friends[MAX_FRIENDS]; //New friend system [Skotlex]
  389. #ifdef HOTKEY_SAVING
  390. struct hotkey hotkeys[MAX_HOTKEYS];
  391. #endif
  392. bool show_equip;
  393. short rename;
  394.  
  395. time_t delete_date;
  396.  
  397. // Char server addon system
  398. unsigned int character_moves;
  399. };
  400.  
  401. typedef enum mail_status {
  402. MAIL_NEW,
  403. MAIL_UNREAD,
  404. MAIL_READ,
  405. } mail_status;
  406.  
  407. struct mail_message {
  408. int id;
  409. int send_id;
  410. char send_name[NAME_LENGTH];
  411. int dest_id;
  412. char dest_name[NAME_LENGTH];
  413. char title[MAIL_TITLE_LENGTH];
  414. char body[MAIL_BODY_LENGTH];
  415.  
  416. mail_status status;
  417. time_t timestamp; // marks when the message was sent
  418.  
  419. int zeny;
  420. struct item item;
  421. };
  422.  
  423. struct mail_data {
  424. short amount;
  425. bool full;
  426. short unchecked, unread;
  427. struct mail_message msg[MAIL_MAX_INBOX];
  428. };
  429.  
  430. struct auction_data {
  431. unsigned int auction_id;
  432. int seller_id;
  433. char seller_name[NAME_LENGTH];
  434. int buyer_id;
  435. char buyer_name[NAME_LENGTH];
  436.  
  437. struct item item;
  438. // This data is required for searching, as itemdb is not read by char server
  439. char item_name[ITEM_NAME_LENGTH];
  440. short type;
  441.  
  442. unsigned short hours;
  443. int price, buynow;
  444. time_t timestamp; // auction's end time
  445. int auction_end_timer;
  446. };
  447.  
  448. struct registry {
  449. int global_num;
  450. struct global_reg global[GLOBAL_REG_NUM];
  451. int account_num;
  452. struct global_reg account[ACCOUNT_REG_NUM];
  453. int account2_num;
  454. struct global_reg account2[ACCOUNT_REG2_NUM];
  455. };
  456.  
  457. struct party_member {
  458. int account_id;
  459. int char_id;
  460. char name[NAME_LENGTH];
  461. unsigned short class_;
  462. unsigned short map;
  463. unsigned short lv;
  464. unsigned leader : 1,
  465. online : 1;
  466. };
  467.  
  468. struct party {
  469. int party_id;
  470. char name[NAME_LENGTH];
  471. unsigned char count; //Count of online characters.
  472. unsigned exp : 1,
  473. item : 2; //&1: Party-Share (round-robin), &2: pickup style: shared.
  474. struct party_member member[MAX_PARTY];
  475. };
  476.  
  477. struct map_session_data;
  478. struct guild_member {
  479. int account_id, char_id;
  480. short hair,hair_color,gender,class_,lv;
  481. uint64 exp;
  482. int exp_payper;
  483. short online,position;
  484. char name[NAME_LENGTH];
  485. struct map_session_data *sd;
  486. unsigned char modified;
  487. };
  488.  
  489. struct guild_position {
  490. char name[NAME_LENGTH];
  491. int mode;
  492. int exp_mode;
  493. unsigned char modified;
  494. };
  495.  
  496. struct guild_alliance {
  497. int opposition;
  498. int guild_id;
  499. char name[NAME_LENGTH];
  500. };
  501.  
  502. struct guild_expulsion {
  503. char name[NAME_LENGTH];
  504. char mes[40];
  505. int account_id;
  506. };
  507.  
  508. struct guild_skill {
  509. int id,lv;
  510. };
  511.  
  512. struct guild {
  513. int guild_id;
  514. short guild_lv, connect_member, max_member, average_lv;
  515. uint64 exp;
  516. unsigned int next_exp;
  517. int skill_point;
  518. char name[NAME_LENGTH],master[NAME_LENGTH];
  519. struct guild_member member[MAX_GUILD];
  520. struct guild_position position[MAX_GUILDPOSITION];
  521. char mes1[MAX_GUILDMES1],mes2[MAX_GUILDMES2];
  522. int emblem_len,emblem_id;
  523. char emblem_data[2048];
  524. struct guild_alliance alliance[MAX_GUILDALLIANCE];
  525. struct guild_expulsion expulsion[MAX_GUILDEXPULSION];
  526. struct guild_skill skill[MAX_GUILDSKILL];
  527.  
  528. /* TODO: still used for something? */
  529. unsigned short save_flag; // for TXT saving
  530. void *channel;
  531. };
  532.  
  533. struct guild_castle {
  534. int castle_id;
  535. int mapindex;
  536. char castle_name[NAME_LENGTH];
  537. char castle_event[NAME_LENGTH];
  538. int guild_id;
  539. int economy;
  540. int defense;
  541. int triggerE;
  542. int triggerD;
  543. int nextTime;
  544. int payTime;
  545. int createTime;
  546. int visibleC;
  547. struct {
  548. unsigned visible : 1;
  549. int id; // object id
  550. } guardian[MAX_GUARDIANS];
  551. int* temp_guardians; // ids of temporary guardians (mobs)
  552. int temp_guardians_max;
  553. };
  554.  
  555. struct fame_list {
  556. int id;
  557. int fame;
  558. char name[NAME_LENGTH];
  559. };
  560.  
  561. enum { //Change Guild Infos
  562. GBI_EXP =1, // Guild Experience (EXP)
  563. GBI_GUILDLV, // Guild level
  564. GBI_SKILLPOINT, // Guild skillpoints
  565. GBI_SKILLLV, // Guild skill_lv ?? seem unused
  566. };
  567.  
  568. enum { //Change Member Infos
  569. GMI_POSITION =0,
  570. GMI_EXP,
  571. GMI_HAIR,
  572. GMI_HAIR_COLOR,
  573. GMI_GENDER,
  574. GMI_CLASS,
  575. GMI_LEVEL,
  576. };
  577.  
  578. enum e_guild_skill {
  579. GD_SKILLBASE=10000,
  580. GD_APPROVAL=10000,
  581. GD_KAFRACONTRACT=10001,
  582. GD_GUARDRESEARCH=10002,
  583. GD_GUARDUP=10003,
  584. GD_EXTENSION=10004,
  585. GD_GLORYGUILD=10005,
  586. GD_LEADERSHIP=10006,
  587. GD_GLORYWOUNDS=10007,
  588. GD_SOULCOLD=10008,
  589. GD_HAWKEYES=10009,
  590. GD_BATTLEORDER=10010,
  591. GD_REGENERATION=10011,
  592. GD_RESTORE=10012,
  593. GD_EMERGENCYCALL=10013,
  594. GD_DEVELOPMENT=10014,
  595. GD_ITEMEMERGENCYCALL=10015,
  596. GD_MAX,
  597. };
  598.  
  599.  
  600. //These mark the ID of the jobs, as expected by the client. [Skotlex]
  601. enum {
  602. JOB_NOVICE,
  603. JOB_SWORDMAN,
  604. JOB_MAGE,
  605. JOB_ARCHER,
  606. JOB_ACOLYTE,
  607. JOB_MERCHANT,
  608. JOB_THIEF,
  609. JOB_KNIGHT,
  610. JOB_PRIEST,
  611. JOB_WIZARD,
  612. JOB_BLACKSMITH,
  613. JOB_HUNTER,
  614. JOB_ASSASSIN,
  615. JOB_KNIGHT2,
  616. JOB_CRUSADER,
  617. JOB_MONK,
  618. JOB_SAGE,
  619. JOB_ROGUE,
  620. JOB_ALCHEMIST,
  621. JOB_BARD,
  622. JOB_DANCER,
  623. JOB_CRUSADER2,
  624. JOB_WEDDING,
  625. JOB_SUPER_NOVICE,
  626. JOB_GUNSLINGER,
  627. JOB_NINJA,
  628. JOB_XMAS,
  629. JOB_SUMMER,
  630. JOB_HANBOK,
  631. JOB_MAX_BASIC,
  632.  
  633. JOB_NOVICE_HIGH = 4001,
  634. JOB_SWORDMAN_HIGH,
  635. JOB_MAGE_HIGH,
  636. JOB_ARCHER_HIGH,
  637. JOB_ACOLYTE_HIGH,
  638. JOB_MERCHANT_HIGH,
  639. JOB_THIEF_HIGH,
  640. JOB_LORD_KNIGHT,
  641. JOB_HIGH_PRIEST,
  642. JOB_HIGH_WIZARD,
  643. JOB_WHITESMITH,
  644. JOB_SNIPER,
  645. JOB_ASSASSIN_CROSS,
  646. JOB_LORD_KNIGHT2,
  647. JOB_PALADIN,
  648. JOB_CHAMPION,
  649. JOB_PROFESSOR,
  650. JOB_STALKER,
  651. JOB_CREATOR,
  652. JOB_CLOWN,
  653. JOB_GYPSY,
  654. JOB_PALADIN2,
  655.  
  656. JOB_BABY,
  657. JOB_BABY_SWORDMAN,
  658. JOB_BABY_MAGE,
  659. JOB_BABY_ARCHER,
  660. JOB_BABY_ACOLYTE,
  661. JOB_BABY_MERCHANT,
  662. JOB_BABY_THIEF,
  663. JOB_BABY_KNIGHT,
  664. JOB_BABY_PRIEST,
  665. JOB_BABY_WIZARD,
  666. JOB_BABY_BLACKSMITH,
  667. JOB_BABY_HUNTER,
  668. JOB_BABY_ASSASSIN,
  669. JOB_BABY_KNIGHT2,
  670. JOB_BABY_CRUSADER,
  671. JOB_BABY_MONK,
  672. JOB_BABY_SAGE,
  673. JOB_BABY_ROGUE,
  674. JOB_BABY_ALCHEMIST,
  675. JOB_BABY_BARD,
  676. JOB_BABY_DANCER,
  677. JOB_BABY_CRUSADER2,
  678. JOB_SUPER_BABY,
  679.  
  680. JOB_TAEKWON,
  681. JOB_STAR_GLADIATOR,
  682. JOB_STAR_GLADIATOR2,
  683. JOB_SOUL_LINKER,
  684.  
  685. JOB_GANGSI,
  686. JOB_DEATH_KNIGHT,
  687. JOB_DARK_COLLECTOR,
  688.  
  689. JOB_RUNE_KNIGHT = 4054,
  690. JOB_WARLOCK,
  691. JOB_RANGER,
  692. JOB_ARCH_BISHOP,
  693. JOB_MECHANIC,
  694. JOB_GUILLOTINE_CROSS,
  695.  
  696. JOB_RUNE_KNIGHT_T,
  697. JOB_WARLOCK_T,
  698. JOB_RANGER_T,
  699. JOB_ARCH_BISHOP_T,
  700. JOB_MECHANIC_T,
  701. JOB_GUILLOTINE_CROSS_T,
  702.  
  703. JOB_ROYAL_GUARD,
  704. JOB_SORCERER,
  705. JOB_MINSTREL,
  706. JOB_WANDERER,
  707. JOB_SURA,
  708. JOB_GENETIC,
  709. JOB_SHADOW_CHASER,
  710.  
  711. JOB_ROYAL_GUARD_T,
  712. JOB_SORCERER_T,
  713. JOB_MINSTREL_T,
  714. JOB_WANDERER_T,
  715. JOB_SURA_T,
  716. JOB_GENETIC_T,
  717. JOB_SHADOW_CHASER_T,
  718.  
  719. JOB_RUNE_KNIGHT2,
  720. JOB_RUNE_KNIGHT_T2,
  721. JOB_ROYAL_GUARD2,
  722. JOB_ROYAL_GUARD_T2,
  723. JOB_RANGER2,
  724. JOB_RANGER_T2,
  725. JOB_MECHANIC2,
  726. JOB_MECHANIC_T2,
  727.  
  728. JOB_BABY_RUNE = 4096,
  729. JOB_BABY_WARLOCK,
  730. JOB_BABY_RANGER,
  731. JOB_BABY_BISHOP,
  732. JOB_BABY_MECHANIC,
  733. JOB_BABY_CROSS,
  734. JOB_BABY_GUARD,
  735. JOB_BABY_SORCERER,
  736. JOB_BABY_MINSTREL,
  737. JOB_BABY_WANDERER,
  738. JOB_BABY_SURA,
  739. JOB_BABY_GENETIC,
  740. JOB_BABY_CHASER,
  741.  
  742. JOB_BABY_RUNE2,
  743. JOB_BABY_GUARD2,
  744. JOB_BABY_RANGER2,
  745. JOB_BABY_MECHANIC2,
  746.  
  747. JOB_SUPER_NOVICE_E = 4190,
  748. JOB_SUPER_BABY_E,
  749.  
  750. JOB_KAGEROU = 4211,
  751. JOB_OBORO,
  752.  
  753. JOB_MAX,
  754. };
  755.  
  756. enum {
  757. SEX_FEMALE = 0,
  758. SEX_MALE,
  759. SEX_SERVER
  760. };
  761.  
  762. // sanity checks...
  763. #if MAX_ZENY > INT_MAX
  764. #error MAX_ZENY is too big
  765. #endif
  766.  
  767. #endif /* _MMO_H_ */
Add Comment
Please, Sign In to add comment