Hi ! Im using a diffcode called MVPPK .. It allows mvp maps to become PVP ON when mvp boss is alive ..but the problem is after death im warping back on savepoint ... How can I remove this auto warp ?? thanks
//On latest rAthena:
open src/map/mob.c
on int mob_delayspawn
find
md->spawn_timer = INVALID_TIMER;
mob_spawn(md);
change to
md->spawn_timer = INVALID_TIMER;
mob_spawn(md);
++ if( md->state.boss ) {
++ map_setmapflag(bl->m, MF_PVP, true);
++ }
on int mob_spawn
find
if (md->spawn) { //Respawn data
md->bl.m = md->spawn->m;
md->bl.x = md->spawn->x;
md->bl.y = md->spawn->y;
change to
if (md->spawn) { //Respawn data
md->bl.m = md->spawn->m;
md->bl.x = md->spawn->x;
md->bl.y = md->spawn->y;
++ if(md->spawn->state.boss) map_setmapflag(md->bl.m, MF_PVP, true);
on int mob_dead
find
// MvP tomb [GreenBox]
if (battle_config.mvp_tomb_enabled && md->spawn->state.boss && map[md->bl.m].flag.notomb != 1)
mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL));
change to (Config your mvp_tomb_enabled on battle folder.)
// MvP tomb [GreenBox]
if (battle_config.mvp_tomb_enabled && md->spawn->state.boss && map[md->bl.m].flag.notomb != 1)
mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL));
++ if(md->spawn->state.boss) {
++ map_setmapflag(md->bl.m, MF_PVP, false);
++ }
recompile and is ready.
Question
Eross
Hi ! Im using a diffcode called MVPPK .. It allows mvp maps to become PVP ON when mvp boss is alive ..but the problem is after death im warping back on savepoint ... How can I remove this auto warp ?? thanks
//On latest rAthena: open src/map/mob.c on int mob_delayspawn find md->spawn_timer = INVALID_TIMER; mob_spawn(md); change to md->spawn_timer = INVALID_TIMER; mob_spawn(md); ++ if( md->state.boss ) { ++ map_setmapflag(bl->m, MF_PVP, true); ++ } on int mob_spawn find if (md->spawn) { //Respawn data md->bl.m = md->spawn->m; md->bl.x = md->spawn->x; md->bl.y = md->spawn->y; change to if (md->spawn) { //Respawn data md->bl.m = md->spawn->m; md->bl.x = md->spawn->x; md->bl.y = md->spawn->y; ++ if(md->spawn->state.boss) map_setmapflag(md->bl.m, MF_PVP, true); on int mob_dead find // MvP tomb [GreenBox] if (battle_config.mvp_tomb_enabled && md->spawn->state.boss && map[md->bl.m].flag.notomb != 1) mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL)); change to (Config your mvp_tomb_enabled on battle folder.) // MvP tomb [GreenBox] if (battle_config.mvp_tomb_enabled && md->spawn->state.boss && map[md->bl.m].flag.notomb != 1) mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL)); ++ if(md->spawn->state.boss) { ++ map_setmapflag(md->bl.m, MF_PVP, false); ++ } recompile and is ready.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.