Hercules Elf Bot - Sep 20, 2012 23:03
Originally posted by [b]Napster[/b]
setmapflag "<map name>",<flag>;
found problem with gvg & pvp flag
[CODE]
case MF_PVP: map[m].flag.pvp=1; break;
case MF_GVG: map[m].flag.gvg=1; break;
[/CODE]
script command can't changed
clif_map_property_mapall(m, MAPPROPERTY_FREEPVPZONE); and clif_map_property_mapall(m, MAPPROPERTY_AGITZONE);
i edit and fix
[CODE]
case MF_PVP:
map[m].flag.pvp=1;
if (map[m].flag.gvg || map[m].flag.gvg_dungeon || map[m].flag.gvg_castle)
{
map[m].flag.gvg=0;
map[m].flag.gvg_dungeon=0;
map[m].flag.gvg_castle=0;
if (!battle_config.pk_mode)
{// display pvp circle and rank
clif_map_property_mapall(m, MAPPROPERTY_FREEPVPZONE);
iter = mapit_getallusers();
for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
{
if( sd->bl.m != m || sd->pvp_timer != INVALID_TIMER )
continue; // not applicable
sd->pvp_timer = add_timer(gettick()+200,pc_calc_pvprank_timer,sd->bl.id,0);
sd->pvp_rank = 0;
sd->pvp_lastusers = 0;
sd->pvp_point = 5;
sd->pvp_won = 0;
sd->pvp_lost = 0;
}
mapit_free(iter);
}
}
break;
[/CODE]
please fix this thank you : )
Hercules Elf Bot - Sep 26, 2012 23:36
Originally posted by [b]Ind[/b]
Fixed in [rev=16805]