mmo.h 16 KB

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