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