mmo.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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. #ifndef PACKETVER
  40. #define PACKETVER 20081126
  41. //#define PACKETVER 20100707
  42. #endif
  43. // backward compatible PACKETVER 8 and 9
  44. #if PACKETVER == 8
  45. #undef PACKETVER
  46. #define PACKETVER 20070521
  47. #endif
  48. #if PACKETVER == 9
  49. #undef PACKETVER
  50. #define PACKETVER 20071106
  51. #endif
  52. //Remove/Comment this line to disable sc_data saving. [Skotlex]
  53. #define ENABLE_SC_SAVING
  54. //Remove/Comment this line to disable server-side hot-key saving support [Skotlex]
  55. //Note that newer clients no longer save hotkeys in the registry!
  56. #define HOTKEY_SAVING
  57. //The number is the max number of hotkeys to save
  58. #if PACKETVER < 20090603
  59. // (27 = 9 skills x 3 bars) (0x02b9,191)
  60. #define MAX_HOTKEYS 27
  61. #elif PACKETVER < 20090617
  62. // (36 = 9 skills x 4 bars) (0x07d9,254)
  63. #define MAX_HOTKEYS 36
  64. #else
  65. // (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268)
  66. #define MAX_HOTKEYS 38
  67. #endif
  68. #define MAX_MAP_PER_SERVER 1500 // Increased to allow creation of Instance Maps
  69. #define MAX_INVENTORY 100
  70. //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.
  71. #define MAX_CHARS 9
  72. //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]
  73. //Note: The client seems unable to receive data for more than 4 slots due to all related packets having a fixed size.
  74. #define MAX_SLOTS 4
  75. //Max amount of a single stacked item
  76. #define MAX_AMOUNT 30000
  77. #define MAX_ZENY 1000000000
  78. #define MAX_FAME 1000000000
  79. #define MAX_CART 100
  80. #define MAX_SKILL 2536
  81. #define GLOBAL_REG_NUM 256
  82. #define ACCOUNT_REG_NUM 64
  83. #define ACCOUNT_REG2_NUM 16
  84. //Should hold the max of GLOBAL/ACCOUNT/ACCOUNT2 (needed for some arrays that hold all three)
  85. #define MAX_REG_NUM 256
  86. #define DEFAULT_WALK_SPEED 150
  87. #define MIN_WALK_SPEED 0
  88. #define MAX_WALK_SPEED 1000
  89. #define MAX_STORAGE 600
  90. #define MAX_GUILD_STORAGE 1000
  91. #define MAX_PARTY 12
  92. #define MAX_GUILD 16+10*6 // increased max guild members +6 per 1 extension levels [Lupus]
  93. #define MAX_GUILDPOSITION 20 // increased max guild positions to accomodate for all members [Valaris] (removed) [PoW]
  94. #define MAX_GUILDEXPULSION 32
  95. #define MAX_GUILDALLIANCE 16
  96. #define MAX_GUILDSKILL 15 // increased max guild skills because of new skills [Sara-chan]
  97. #define MAX_GUILDCASTLE 34 // Updated to include new entries for WoE:SE. [L0ne_W0lf]
  98. #define MAX_GUILDLEVEL 50
  99. #define MAX_GUARDIANS 8 //Local max per castle. [Skotlex]
  100. #define MAX_QUEST_DB 2000 //Max quests that the server will load
  101. #define MAX_QUEST_OBJECTIVES 3 //Max quest objectives for a quest
  102. // for produce
  103. #define MIN_ATTRIBUTE 0
  104. #define MAX_ATTRIBUTE 4
  105. #define ATTRIBUTE_NORMAL 0
  106. #define MIN_STAR 0
  107. #define MAX_STAR 3
  108. #define MAX_STATUS_TYPE 5
  109. #define WEDDING_RING_M 2634
  110. #define WEDDING_RING_F 2635
  111. //For character names, title names, guilds, maps, etc.
  112. //Includes null-terminator as it is the length of the array.
  113. #define NAME_LENGTH (23 + 1)
  114. //For item names, which tend to have much longer names.
  115. #define ITEM_NAME_LENGTH 50
  116. //For Map Names, which the client considers to be 16 in length including the .gat extension
  117. #define MAP_NAME_LENGTH (11 + 1)
  118. #define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4)
  119. #define MAX_FRIENDS 40
  120. #define MAX_MEMOPOINTS 3
  121. //Size of the fame list arrays.
  122. #define MAX_FAME_LIST 10
  123. //Limits to avoid ID collision with other game objects
  124. #define START_ACCOUNT_NUM 2000000
  125. #define END_ACCOUNT_NUM 100000000
  126. #define START_CHAR_NUM 150000
  127. //Guilds
  128. #define MAX_GUILDMES1 60
  129. #define MAX_GUILDMES2 120
  130. //Base Homun skill.
  131. #define HM_SKILLBASE 8001
  132. #define MAX_HOMUNSKILL 16
  133. #define MAX_HOMUNCULUS_CLASS 16 //[orn]
  134. #define HM_CLASS_BASE 6001
  135. #define HM_CLASS_MAX (HM_CLASS_BASE+MAX_HOMUNCULUS_CLASS-1)
  136. //Mail System
  137. #define MAIL_MAX_INBOX 30
  138. #define MAIL_TITLE_LENGTH 40
  139. #define MAIL_BODY_LENGTH 200
  140. //Mercenary System
  141. #define MC_SKILLBASE 8201
  142. #define MAX_MERCSKILL 40
  143. #define MAX_MERCENARY_CLASS 40
  144. enum item_types {
  145. IT_HEALING = 0,
  146. IT_UNKNOWN, //1
  147. IT_USABLE, //2
  148. IT_ETC, //3
  149. IT_WEAPON, //4
  150. IT_ARMOR, //5
  151. IT_CARD, //6
  152. IT_PETEGG, //7
  153. IT_PETARMOR,//8
  154. IT_UNKNOWN2,//9
  155. IT_AMMO, //10
  156. IT_DELAYCONSUME,//11
  157. IT_CASH = 18,
  158. IT_MAX
  159. };
  160. //Questlog system [Kevin] [Inkfish]
  161. typedef enum quest_state { Q_INACTIVE, Q_ACTIVE, Q_COMPLETE } quest_state;
  162. struct quest {
  163. int quest_id;
  164. unsigned int time;
  165. int count[MAX_QUEST_OBJECTIVES];
  166. quest_state state;
  167. };
  168. struct item {
  169. int id;
  170. short nameid;
  171. short amount;
  172. unsigned short equip; // location(s) where item is equipped (using enum equip_pos for bitmasking)
  173. char identify;
  174. char refine;
  175. char attribute;
  176. short card[MAX_SLOTS];
  177. unsigned int expire_time;
  178. };
  179. struct point {
  180. unsigned short map;
  181. short x,y;
  182. };
  183. struct s_skill {
  184. unsigned short id,lv,flag;
  185. };
  186. struct global_reg {
  187. char str[32];
  188. char value[256];
  189. };
  190. //Holds array of global registries, used by the char server and converter.
  191. struct accreg {
  192. int account_id, char_id;
  193. int reg_num;
  194. struct global_reg reg[MAX_REG_NUM];
  195. };
  196. //For saving status changes across sessions. [Skotlex]
  197. struct status_change_data {
  198. unsigned short type; //SC_type
  199. long val1, val2, val3, val4, tick; //Remaining duration.
  200. };
  201. struct storage_data {
  202. int storage_amount;
  203. struct item items[MAX_STORAGE];
  204. };
  205. struct guild_storage {
  206. int dirty;
  207. int guild_id;
  208. short storage_status;
  209. short storage_amount;
  210. struct item items[MAX_GUILD_STORAGE];
  211. };
  212. struct s_pet {
  213. int account_id;
  214. int char_id;
  215. int pet_id;
  216. short class_;
  217. short level;
  218. short egg_id;//pet egg id
  219. short equip;//pet equip name_id
  220. short intimate;//pet friendly
  221. short hungry;//pet hungry
  222. char name[NAME_LENGTH];
  223. char rename_flag;
  224. char incuvate;
  225. };
  226. struct s_homunculus { //[orn]
  227. char name[NAME_LENGTH];
  228. int hom_id;
  229. int char_id;
  230. short class_;
  231. int hp,max_hp,sp,max_sp;
  232. unsigned int intimacy; //[orn]
  233. short hunger;
  234. struct s_skill hskill[MAX_HOMUNSKILL]; //albator
  235. short skillpts;
  236. short level;
  237. unsigned int exp;
  238. short rename_flag;
  239. short vaporize; //albator
  240. int str ;
  241. int agi ;
  242. int vit ;
  243. int int_ ;
  244. int dex ;
  245. int luk ;
  246. };
  247. struct s_mercenary {
  248. int mercenary_id;
  249. int char_id;
  250. short class_;
  251. int hp, sp;
  252. unsigned int kill_count;
  253. unsigned int life_time;
  254. };
  255. struct s_friend {
  256. int account_id;
  257. int char_id;
  258. char name[NAME_LENGTH];
  259. };
  260. #ifdef HOTKEY_SAVING
  261. struct hotkey {
  262. unsigned int id;
  263. unsigned short lv;
  264. unsigned char type; // 0: item, 1: skill
  265. };
  266. #endif
  267. struct mmo_charstatus {
  268. int char_id;
  269. int account_id;
  270. int partner_id;
  271. int father;
  272. int mother;
  273. int child;
  274. unsigned int base_exp,job_exp;
  275. int zeny;
  276. short class_;
  277. unsigned int status_point,skill_point;
  278. int hp,max_hp,sp,max_sp;
  279. unsigned int option;
  280. short manner;
  281. unsigned char karma;
  282. short hair,hair_color,clothes_color;
  283. int party_id,guild_id,pet_id,hom_id,mer_id;
  284. int fame;
  285. // Mercenary Guilds Rank
  286. int arch_faith, arch_calls;
  287. int spear_faith, spear_calls;
  288. int sword_faith, sword_calls;
  289. short weapon; // enum weapon_type
  290. short shield; // view-id
  291. short head_top,head_mid,head_bottom;
  292. char name[NAME_LENGTH];
  293. unsigned int base_level,job_level;
  294. short str,agi,vit,int_,dex,luk;
  295. unsigned char slot,sex;
  296. uint32 mapip;
  297. uint16 mapport;
  298. struct point last_point,save_point,memo_point[MAX_MEMOPOINTS];
  299. struct item inventory[MAX_INVENTORY],cart[MAX_CART];
  300. struct storage_data storage;
  301. struct s_skill skill[MAX_SKILL];
  302. struct s_friend friends[MAX_FRIENDS]; //New friend system [Skotlex]
  303. #ifdef HOTKEY_SAVING
  304. struct hotkey hotkeys[MAX_HOTKEYS];
  305. #endif
  306. bool show_equip;
  307. short rename;
  308. time_t delete_date;
  309. };
  310. typedef enum mail_status {
  311. MAIL_NEW,
  312. MAIL_UNREAD,
  313. MAIL_READ,
  314. } mail_status;
  315. struct mail_message {
  316. unsigned int id;
  317. int send_id;
  318. char send_name[NAME_LENGTH];
  319. int dest_id;
  320. char dest_name[NAME_LENGTH];
  321. char title[MAIL_TITLE_LENGTH];
  322. char body[MAIL_BODY_LENGTH];
  323. mail_status status;
  324. time_t timestamp; // marks when the message was sent
  325. int zeny;
  326. struct item item;
  327. };
  328. struct mail_data {
  329. short amount;
  330. bool full;
  331. short unchecked, unread;
  332. struct mail_message msg[MAIL_MAX_INBOX];
  333. };
  334. struct auction_data {
  335. unsigned int auction_id;
  336. int seller_id;
  337. char seller_name[NAME_LENGTH];
  338. int buyer_id;
  339. char buyer_name[NAME_LENGTH];
  340. struct item item;
  341. // This data is required for searching, as itemdb is not read by char server
  342. char item_name[ITEM_NAME_LENGTH];
  343. short type;
  344. unsigned short hours;
  345. int price, buynow;
  346. time_t timestamp; // auction's end time
  347. int auction_end_timer;
  348. };
  349. struct registry {
  350. int global_num;
  351. struct global_reg global[GLOBAL_REG_NUM];
  352. int account_num;
  353. struct global_reg account[ACCOUNT_REG_NUM];
  354. int account2_num;
  355. struct global_reg account2[ACCOUNT_REG2_NUM];
  356. };
  357. struct party_member {
  358. int account_id;
  359. int char_id;
  360. char name[NAME_LENGTH];
  361. unsigned short class_;
  362. unsigned short map;
  363. unsigned short lv;
  364. unsigned leader : 1,
  365. online : 1;
  366. };
  367. struct party {
  368. int party_id;
  369. char name[NAME_LENGTH];
  370. unsigned char count; //Count of online characters.
  371. unsigned exp : 1,
  372. item : 2; //&1: Party-Share (round-robin), &2: pickup style: shared.
  373. struct party_member member[MAX_PARTY];
  374. };
  375. struct map_session_data;
  376. struct guild_member {
  377. int account_id, char_id;
  378. short hair,hair_color,gender,class_,lv;
  379. uint64 exp;
  380. int exp_payper;
  381. short online,position;
  382. char name[NAME_LENGTH];
  383. struct map_session_data *sd;
  384. unsigned char modified;
  385. };
  386. struct guild_position {
  387. char name[NAME_LENGTH];
  388. int mode;
  389. int exp_mode;
  390. unsigned char modified;
  391. };
  392. struct guild_alliance {
  393. int opposition;
  394. int guild_id;
  395. char name[NAME_LENGTH];
  396. };
  397. struct guild_expulsion {
  398. char name[NAME_LENGTH];
  399. char mes[40];
  400. int account_id;
  401. };
  402. struct guild_skill {
  403. int id,lv;
  404. };
  405. struct guild {
  406. int guild_id;
  407. short guild_lv, connect_member, max_member, average_lv;
  408. uint64 exp;
  409. unsigned int next_exp;
  410. int skill_point;
  411. char name[NAME_LENGTH],master[NAME_LENGTH];
  412. struct guild_member member[MAX_GUILD];
  413. struct guild_position position[MAX_GUILDPOSITION];
  414. char mes1[MAX_GUILDMES1],mes2[MAX_GUILDMES2];
  415. int emblem_len,emblem_id;
  416. char emblem_data[2048];
  417. struct guild_alliance alliance[MAX_GUILDALLIANCE];
  418. struct guild_expulsion expulsion[MAX_GUILDEXPULSION];
  419. struct guild_skill skill[MAX_GUILDSKILL];
  420. unsigned short save_flag; // for TXT saving
  421. };
  422. struct guild_castle {
  423. int castle_id;
  424. int mapindex;
  425. char castle_name[NAME_LENGTH];
  426. char castle_event[NAME_LENGTH];
  427. int guild_id;
  428. int economy;
  429. int defense;
  430. int triggerE;
  431. int triggerD;
  432. int nextTime;
  433. int payTime;
  434. int createTime;
  435. int visibleC;
  436. struct {
  437. unsigned visible : 1;
  438. int id; // object id
  439. } guardian[MAX_GUARDIANS];
  440. int* temp_guardians; // ids of temporary guardians (mobs)
  441. int temp_guardians_max;
  442. };
  443. // for Brandish Spear calculations
  444. struct square {
  445. int val1[5];
  446. int val2[5];
  447. };
  448. struct fame_list {
  449. int id;
  450. int fame;
  451. char name[NAME_LENGTH];
  452. };
  453. enum {
  454. GBI_EXP =1, // ギルドのEXP
  455. GBI_GUILDLV, // ギルドのLv
  456. GBI_SKILLPOINT, // ギルドのスキルポイント
  457. GBI_SKILLLV, // ギルドスキルLv
  458. };
  459. enum {
  460. GMI_POSITION =0, // メンバーの役職変更
  461. GMI_EXP,
  462. GMI_HAIR,
  463. GMI_HAIR_COLOR,
  464. GMI_GENDER,
  465. GMI_CLASS,
  466. GMI_LEVEL,
  467. };
  468. enum {
  469. GD_SKILLBASE=10000,
  470. GD_APPROVAL=10000,
  471. GD_KAFRACONTRACT=10001,
  472. GD_GUARDRESEARCH=10002,
  473. GD_GUARDUP=10003,
  474. GD_EXTENSION=10004,
  475. GD_GLORYGUILD=10005,
  476. GD_LEADERSHIP=10006,
  477. GD_GLORYWOUNDS=10007,
  478. GD_SOULCOLD=10008,
  479. GD_HAWKEYES=10009,
  480. GD_BATTLEORDER=10010,
  481. GD_REGENERATION=10011,
  482. GD_RESTORE=10012,
  483. GD_EMERGENCYCALL=10013,
  484. GD_DEVELOPMENT=10014,
  485. };
  486. //These mark the ID of the jobs, as expected by the client. [Skotlex]
  487. enum {
  488. JOB_NOVICE,
  489. JOB_SWORDMAN,
  490. JOB_MAGE,
  491. JOB_ARCHER,
  492. JOB_ACOLYTE,
  493. JOB_MERCHANT,
  494. JOB_THIEF,
  495. JOB_KNIGHT,
  496. JOB_PRIEST,
  497. JOB_WIZARD,
  498. JOB_BLACKSMITH,
  499. JOB_HUNTER,
  500. JOB_ASSASSIN,
  501. JOB_KNIGHT2,
  502. JOB_CRUSADER,
  503. JOB_MONK,
  504. JOB_SAGE,
  505. JOB_ROGUE,
  506. JOB_ALCHEMIST,
  507. JOB_BARD,
  508. JOB_DANCER,
  509. JOB_CRUSADER2,
  510. JOB_WEDDING,
  511. JOB_SUPER_NOVICE,
  512. JOB_GUNSLINGER,
  513. JOB_NINJA,
  514. JOB_XMAS,
  515. JOB_SUMMER,
  516. JOB_MAX_BASIC,
  517. JOB_NOVICE_HIGH = 4001,
  518. JOB_SWORDMAN_HIGH,
  519. JOB_MAGE_HIGH,
  520. JOB_ARCHER_HIGH,
  521. JOB_ACOLYTE_HIGH,
  522. JOB_MERCHANT_HIGH,
  523. JOB_THIEF_HIGH,
  524. JOB_LORD_KNIGHT,
  525. JOB_HIGH_PRIEST,
  526. JOB_HIGH_WIZARD,
  527. JOB_WHITESMITH,
  528. JOB_SNIPER,
  529. JOB_ASSASSIN_CROSS,
  530. JOB_LORD_KNIGHT2,
  531. JOB_PALADIN,
  532. JOB_CHAMPION,
  533. JOB_PROFESSOR,
  534. JOB_STALKER,
  535. JOB_CREATOR,
  536. JOB_CLOWN,
  537. JOB_GYPSY,
  538. JOB_PALADIN2,
  539. JOB_BABY,
  540. JOB_BABY_SWORDMAN,
  541. JOB_BABY_MAGE,
  542. JOB_BABY_ARCHER,
  543. JOB_BABY_ACOLYTE,
  544. JOB_BABY_MERCHANT,
  545. JOB_BABY_THIEF,
  546. JOB_BABY_KNIGHT,
  547. JOB_BABY_PRIEST,
  548. JOB_BABY_WIZARD,
  549. JOB_BABY_BLACKSMITH,
  550. JOB_BABY_HUNTER,
  551. JOB_BABY_ASSASSIN,
  552. JOB_BABY_KNIGHT2,
  553. JOB_BABY_CRUSADER,
  554. JOB_BABY_MONK,
  555. JOB_BABY_SAGE,
  556. JOB_BABY_ROGUE,
  557. JOB_BABY_ALCHEMIST,
  558. JOB_BABY_BARD,
  559. JOB_BABY_DANCER,
  560. JOB_BABY_CRUSADER2,
  561. JOB_SUPER_BABY,
  562. JOB_TAEKWON,
  563. JOB_STAR_GLADIATOR,
  564. JOB_STAR_GLADIATOR2,
  565. JOB_SOUL_LINKER,
  566. JOB_MAX,
  567. };
  568. enum {
  569. SEX_FEMALE = 0,
  570. SEX_MALE,
  571. SEX_SERVER
  572. };
  573. // sanity checks...
  574. #if MAX_ZENY > INT_MAX
  575. #error MAX_ZENY is too big
  576. #endif
  577. #endif /* _MMO_H_ */