Guest User

Untitled

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