KhnKhymKh 0 Posted July 22, 2020 I found this snippet of code on rAthena that when an MVP spawns on his natural map, the pvp mode goes on, when the mvp dies, off. if( md->state.boss ) { map_setmapflag(bl->m, MF_PVP, true); } I'm having a source error with "map_setmapflag(bl->m, MF_PVP, true);" Tried using "map->list[m].flag.pvp", and "map->list[m].flag.nopvp;" (when turning it off) Can anyone tell me the correct way to do it? Quote Share this post Link to post Share on other sites
0 MikZ 5 Posted August 9, 2020 On 7/23/2020 at 2:23 AM, KhnKhymKh said: DONE. Hi how did you do it? Quote Share this post Link to post Share on other sites
0 cookie-rae 6 Posted January 7 (edited) if still need i have this and created for herc. Edited January 7 by cookie-rae Quote Share this post Link to post Share on other sites
0 gantz 8 Posted January 8 (edited) This is good idea. Would be great to have it on hercules. Edited January 8 by gantz Quote Share this post Link to post Share on other sites
0 Samuel 76 Posted January 10 I think I made a plugin of this before, will search in my files Quote Share this post Link to post Share on other sites
0 cookie-rae 6 Posted January 14 Here you can just implement thishttps://github.com/coookie1010/Server-Patches/blob/main/Herc-Pvp-map-system.patch This is for herc patch Quote Share this post Link to post Share on other sites
I found this snippet of code on rAthena that when an MVP spawns on his natural map, the pvp mode goes on, when the mvp dies, off.
I'm having a source error with "map_setmapflag(bl->m, MF_PVP, true);"
Tried using "map->list[m].flag.pvp", and "map->list[m].flag.nopvp;" (when turning it off)
Can anyone tell me the correct way to do it?
Share this post
Link to post
Share on other sites