PewN Posted April 21, 2013 Posted April 21, 2013 i create a new mapflag but i don't know how can i source the you can't see the damage of players like on woe.anyone can help me? Quote
Lighta Posted April 21, 2013 Posted April 21, 2013 map_flag_gvg(src->m) is a macro, that the same as : assuming src->m = m; (map[m].flag.gvg || ((agit_flag || agit2_flag) && map[m].flag.gvg_castle)) so ye you can put map_flag_tvt(src->m) if you wish but that mean you'll have to define what is map_flag_tvt, either a function or a macro. you can simply use your mapflag like this : assuming my mapflag is tvt; if(map[m].flag.tvt){ //the map m as the mapflag tvt on foo; //do foo } 1 Quote
Lighta Posted April 21, 2013 Posted April 21, 2013 Hi, you need to use your mapflag in src/map/clif.c, add a condition in clif_damage, you'll found the current one for hide_dammage, so you can do something similar. Basically you want to send 0 for those attribute on packet if your flag is on. Quote
PewN Posted April 21, 2013 Author Posted April 21, 2013 (edited) Hi, you need to use your mapflag in src/map/clif.c, add a condition in clif_damage, you'll found the current one for hide_dammage, so you can do something similar. Basically you want to send 0 for those attribute on packet if your flag is on. i will try it thanks for replying lighta . i want that you can't see the damage like on WoE Edited April 21, 2013 by TrojanWorm Quote
Lighta Posted April 21, 2013 Posted April 21, 2013 Oki let me know how did it go =) The step I told you are to hide the dammage ye. Quote
PewN Posted April 21, 2013 Author Posted April 21, 2013 Oki let me know how did it go =) The step I told you are to hide the dammage ye. is my new mapflag can be done like this? map_flag_tvt(src->m)? cuz i see this map_flag_gvg(src->m) Quote
PewN Posted April 21, 2013 Author Posted April 21, 2013 (edited) map_flag_gvg(src->m) is a macro, that the same as : assuming src->m = m; (map[m].flag.gvg || ((agit_flag || agit2_flag) && map[m].flag.gvg_castle)) so ye you can put map_flag_tvt(src->m) if you wish but that mean you'll have to define what is map_flag_tvt, either a function or a macro. you can simply use your mapflag like this : assuming my mapflag is tvt; if(map[m].flag.tvt){ //the map m as the mapflag tvt on foo; //do foo } thanks lighta i got a error on compiling it say clif.c: In function âclif_damageâ: clif.c:4243: error: âmâ undeclared (first use in this function) clif.c:4243: error: (Each undeclared identifier is reported only once clif.c:4243: error: for each function it appears in.) i do like this if (battle_config.hide_woe_damage && map_flag_gvg(src->m) || map[m].flag.fvf) { WBUFW(buf,22)=damage?div:0; WBUFW(buf,27)=damage2?div:0; } solved. thanks lighta Edited April 21, 2013 by TrojanWorm Quote
Question
PewN
i create a new mapflag but i don't know how can i source the you can't see the damage of players like on woe.
anyone can help me?
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.