mmo.h 17 KB

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