Jump to content
  • 0
AdmCronus

Dysplay damage in mapflag

Question

6 answers to this question

Recommended Posts

  • 0

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:

+    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

clif_map_property(sd,MAPPROPERTY_AGITZONE);

 

and then find in atcommand.c

+/*==========================================+ * 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:

clif_map_property_mapall(sd->bl.m, MAPPROPERTY_AGITZONE);

 

and then find

+/*==========================================+ * 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:

+    clif_map_property_mapall(sd->bl.m, MAPPROPERTY_NOTHING);

Edited by Oxxy

Share this post


Link to post
Share on other sites
  • 0

 

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.