mmo.h 17 KB

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