mmo.h 16 KB

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