PVP Mode if MVP is alive

KhnKhymKh

New member
Messages
12
Points
0
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 still need i have this and created for herc.

 
Last edited by a moderator:
This is good idea. Would be great to have it on hercules.

 
Last edited by a moderator:
I think I made a plugin of this before, will search in my files

 
Back
Top