Dysplay damage in mapflag

AdmCronus

New member
Messages
50
Points
0
I have one mapflag fvf, but not show damage in other player or mobs. 

someone could help?

where  edit? 

any solutions?

grats

 
Yeahp, not show damage! 
As I remember right there was switch config. Check out faction.conf in conf folder.

--Tried to find it, there's no switch config.

I'll check the code

Find this in clif.c:

Code:
+    if( sd->status.faction_id ) { // Complete Faction System [Lilith]+        if( map[sd->bl.m].flag.fvf ) {+            faction_hp(sd);+            clif_map_property(sd, MAPPROPERTY_AGITZONE);+        }
try to comment

Code:
clif_map_property(sd,MAPPROPERTY_AGITZONE);
and then find in atcommand.c

Code:
+/*==========================================+ * Complete Faction System [Lilith]+ * @fvfon+ *------------------------------------------*/+ACMD_FUNC(fvfon)+{+    int faction_id = 0, relic_id = 0;++    nullpo_retr(-1, sd);++    if( map[sd->bl.m].flag.fvf ) {+        clif_displaymessage(fd, msg_txt(sd,1513)); // FvF is already on+        return -1;+    }++    if( message )+        sscanf(message, "%d %d", &faction_id, &relic_id);++    map[sd->bl.m].faction.id = faction_id;+    map[sd->bl.m].faction.relic = relic_id;++    map[sd->bl.m].flag.fvf = 1;+    clif_map_property_mapall(sd->bl.m, MAPPROPERTY_AGITZONE);+    map_foreachinmap(faction_reload_fvf_sub, sd->bl.m, BL_ALL);+    clif_displaymessage(fd, msg_txt(sd,1512)); // FvF: On+    return 0;+}
comment this line:

Code:
clif_map_property_mapall(sd->bl.m, MAPPROPERTY_AGITZONE);
and then find

Code:
+/*==========================================+ * Complete Faction System [Lilith]+ * @fvfoff+ *------------------------------------------*/+ACMD_FUNC(fvfoff)+{+    nullpo_retr(-1, sd);++    if( !map[sd->bl.m].flag.fvf ) {+        clif_displaymessage(fd, msg_txt(sd,1515)); // FvF is already off+        return -1;+    }++    map[sd->bl.m].flag.fvf = 0;+    map[sd->bl.m].faction.id = 0;+    map[sd->bl.m].faction.relic = 0;+    clif_map_property_mapall(sd->bl.m, MAPPROPERTY_NOTHING);+    map_foreachinmap(faction_reload_fvf_sub, sd->bl.m, BL_ALL);+    clif_displaymessage(fd, msg_txt(sd,1514)); // FvF: Off+    return 0;+}+
comment this line:

Code:
+    clif_map_property_mapall(sd->bl.m, MAPPROPERTY_NOTHING);
 
Last edited by a moderator:
thz man! only remove this

Code:
clif_map_property(sd,MAPPROPERTY_AGITZONE);
 
Last edited by a moderator:
thz man! only remove this

clif_map_property(sd,MAPPROPERTY_AGITZONE);
you should actually do it everywhere I said. Because mapflag can be set via @fvfon and in @fvfoff you just shouldn't set map property to nothing, cuz there's no point.

tho np buddy. <3

 
Back
Top