Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: conf/battle/skill.conf
- ===================================================================
- --- conf/battle/skill.conf (revision 17174)
- +++ conf/battle/skill.conf (working copy)
- @@ -280,3 +280,9 @@
- // 0: (official) Traps in GvG only make player stop moving after its walk path is complete, and it activates other traps on the way.
- // 1: Traps in GvG make player stop moving right when stepping over it.
- skill_trap_type: 0
- +// [clydelion]
- +// If your target is Goblin, any monster called "Goblin" will count toward the mission.
- +// Default: 0
- +// 1: (All 5 "Goblins(1122-1126) will count, but not Goblin Steamrider). [iRO]
- +// 2: Mobs with exactly the same name as the target will count regardless of the mob id. (compares jname)
- +taekwon_mission_iro_mode: 0
- \ No newline at end of file
- Index: src/map/battle.c
- ===================================================================
- --- src/map/battle.c (revision 17174)
- +++ src/map/battle.c (working copy)
- @@ -5904,6 +5904,7 @@
- { "item_restricted_consumption_type", &battle_config.item_restricted_consumption_type,1, 0, 1, },
- { "max_walk_path", &battle_config.max_walk_path, 17, 1, MAX_WALKPATH, },
- { "item_enabled_npc", &battle_config.item_enabled_npc, 1, 0, 1, }, // [clydelion]
- + { "taekwon_mission_iro_mode", &battle_config.taekwon_mission_iro_mode, 0, 0, 2, }, // [clydelion]
- };
- #ifndef STATS_OPT_OUT
- /**
- Index: src/map/battle.h
- ===================================================================
- --- src/map/battle.h (revision 17174)
- +++ src/map/battle.h (working copy)
- @@ -487,6 +487,8 @@
- int item_restricted_consumption_type;
- int max_walk_path;
- int item_enabled_npc;
- +
- + int taekwon_mission_iro_mode; // [clydelion]
- } battle_config;
- void do_init_battle(void);
- Index: src/map/mob.c
- ===================================================================
- --- src/map/mob.c (revision 17174)
- +++ src/map/mob.c (working copy)
- @@ -2563,7 +2563,9 @@
- }
- if( sd ) {
- - if( sd->mission_mobid == md->class_) { //TK_MISSION [Skotlex]
- + if( sd->mission_mobid == md->class_ ||
- + ( battle_config.taekwon_mission_iro_mode == 1 && mob_is_goblin(md,sd->mission_mobid) ) ||
- + ( battle_config.taekwon_mission_iro_mode == 2 && mob_is_samename(md,sd->mission_mobid) ) ) { //TK_MISSION [Skotlex]
- if( ++sd->mission_count >= 100 && (temp = mob_get_random_id(0, 0xE, sd->status.base_level)) ) {
- pc_addfame(sd, 1);
- sd->mission_mobid = temp;
- Index: src/map/mob.h
- ===================================================================
- --- src/map/mob.h (revision 17174)
- +++ src/map/mob.h (working copy)
- @@ -284,7 +284,8 @@
- #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)) )
- #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) )
- #define mob_is_treasure(md) (((md)->class_ >= MOBID_TREAS01 && (md)->class_ <= MOBID_TREAS40) || ((md)->class_ >= MOBID_TREAS41 && (md)->class_ <= MOBID_TREAS49))
- -
- +#define mob_is_goblin(md,n) (((md)->class_ >= 1122 && (md)->class_ <= 1126) && (n >= 1122 && n <= 1126)) // [clydelion]
- +#define mob_is_samename(md,n) (strcmp(mob_db((md)->class_)->jname,mob_db(n)->jname) == 0) // [clydelion]
- void mob_clear_spawninfo();
- int do_init_mob(void);
- int do_final_mob(void);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement