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?
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?