Advertisement
clydelion

taekwon_mission_iro_mode

Mar 6th, 2013
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.54 KB | None | 0 0
  1. Index: conf/battle/skill.conf
  2. ===================================================================
  3. --- conf/battle/skill.conf  (revision 17174)
  4. +++ conf/battle/skill.conf  (working copy)
  5. @@ -280,3 +280,9 @@
  6.  // 0: (official) Traps in GvG only make player stop moving after its walk path is complete, and it activates other traps on the way.
  7.  // 1: Traps in GvG make player stop moving right when stepping over it.
  8.  skill_trap_type: 0
  9. +// [clydelion]
  10. +// If your target is Goblin, any monster called "Goblin" will count toward the mission.
  11. +// Default: 0
  12. +// 1: (All 5 "Goblins(1122-1126) will count, but not Goblin Steamrider). [iRO]
  13. +// 2: Mobs with exactly the same name as the target will count regardless of the mob id. (compares jname)
  14. +taekwon_mission_iro_mode: 0
  15. \ No newline at end of file
  16. Index: src/map/battle.c
  17. ===================================================================
  18. --- src/map/battle.c    (revision 17174)
  19. +++ src/map/battle.c    (working copy)
  20. @@ -5904,6 +5904,7 @@
  21.     { "item_restricted_consumption_type",   &battle_config.item_restricted_consumption_type,1,      0,      1,              },
  22.     { "max_walk_path",                      &battle_config.max_walk_path,                   17,     1,      MAX_WALKPATH,   },
  23.     { "item_enabled_npc",                   &battle_config.item_enabled_npc,                1,      0,      1,              }, // [clydelion]
  24. +   { "taekwon_mission_iro_mode",           &battle_config.taekwon_mission_iro_mode,        0,      0,      2,              }, // [clydelion]
  25.  };
  26.  #ifndef STATS_OPT_OUT
  27.  /**
  28. Index: src/map/battle.h
  29. ===================================================================
  30. --- src/map/battle.h    (revision 17174)
  31. +++ src/map/battle.h    (working copy)
  32. @@ -487,6 +487,8 @@
  33.     int item_restricted_consumption_type;
  34.     int max_walk_path;
  35.     int item_enabled_npc;
  36. +
  37. +   int taekwon_mission_iro_mode; // [clydelion]
  38.     } battle_config;
  39.  
  40.  void do_init_battle(void);
  41. Index: src/map/mob.c
  42. ===================================================================
  43. --- src/map/mob.c   (revision 17174)
  44. +++ src/map/mob.c   (working copy)
  45. @@ -2563,7 +2563,9 @@
  46.         }
  47.  
  48.         if( sd ) {
  49. -           if( sd->mission_mobid == md->class_) { //TK_MISSION [Skotlex]
  50. +           if( sd->mission_mobid == md->class_ ||
  51. +               ( battle_config.taekwon_mission_iro_mode == 1 && mob_is_goblin(md,sd->mission_mobid) ) ||
  52. +               ( battle_config.taekwon_mission_iro_mode == 2 && mob_is_samename(md,sd->mission_mobid) ) ) { //TK_MISSION [Skotlex]
  53.                 if( ++sd->mission_count >= 100 && (temp = mob_get_random_id(0, 0xE, sd->status.base_level)) ) {
  54.                     pc_addfame(sd, 1);
  55.                     sd->mission_mobid = temp;
  56. Index: src/map/mob.h
  57. ===================================================================
  58. --- src/map/mob.h   (revision 17174)
  59. +++ src/map/mob.h   (working copy)
  60. @@ -284,7 +284,8 @@
  61.  #define mob_is_battleground(md) ( map[(md)->bl.m].flag.battleground && ((md)->class_ == MOBID_BARRICADE2 || ((md)->class_ >= MOBID_FOOD_STOR && (md)->class_ <= MOBID_PINK_CRYST)) )
  62.  #define mob_is_gvg(md) (map[(md)->bl.m].flag.gvg_castle && ( (md)->class_ == MOBID_EMPERIUM || (md)->class_ == MOBID_BARRICADE1 || (md)->class_ == MOBID_GUARIDAN_STONE1 || (md)->class_ == MOBID_GUARIDAN_STONE2) )
  63.  #define mob_is_treasure(md) (((md)->class_ >= MOBID_TREAS01 && (md)->class_ <= MOBID_TREAS40) || ((md)->class_ >= MOBID_TREAS41 && (md)->class_ <= MOBID_TREAS49))
  64. -
  65. +#define mob_is_goblin(md,n)     (((md)->class_ >= 1122 && (md)->class_ <= 1126) && (n >= 1122 && n <= 1126)) // [clydelion]
  66. +#define mob_is_samename(md,n)   (strcmp(mob_db((md)->class_)->jname,mob_db(n)->jname) == 0) // [clydelion]
  67.  void mob_clear_spawninfo();
  68.  int do_init_mob(void);
  69.  int do_final_mob(void);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement