mmo.h 17 KB

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