VladimirCastro Posted November 6, 2012 Posted November 6, 2012 how can i off the friendly fire in pk map? i mean guild member can kill each other in pk map only Quote
JRZ Posted November 7, 2012 Posted November 7, 2012 Go to.. ../conf/mapflag/pvp_noguild.txt And add this line anywhere.. <mapname> mapflag pvp_noguild Quote
AnnieRuru Posted November 7, 2012 Posted November 7, 2012 then duplicate them all over the maps ... xD open db\map_index.txt use notepad++, Ctrl+F, select Regular Expression Find (.*) replace with \1 mapflag pvp_noguild between mapflag and pvp_noguild is actual TAB, type it somewhere and copy paste lol done so fast Quote
Euphy Posted November 7, 2012 Posted November 7, 2012 Though if you're worried about script load times, you should probably do this with source. Quote
AnnieRuru Posted November 7, 2012 Posted November 7, 2012 (edited) that's just ... 800 lines ... and minus some maps that has gvg maps like castle maps so actually just about 700 lines++ loading time just few seconds more ... no ? battle.c if( flag&(BCT_GUILD|BCT_ENEMY) ) { int s_guild = status_get_guild_id(s_bl); int t_guild = status_get_guild_id(t_bl); if( !(map[m].flag.pvp && map[m].flag.pvp_noguild) && s_guild && t_guild && (s_guild == t_guild || guild_isallied(s_guild, t_guild)) && (!map[m].flag.battleground || sbg_id == tbg_id) ) state |= BCT_GUILD; else state |= BCT_ENEMY; } just only have to remove !(map[m].flag.pvp && map[m].flag.pvp_noguild) nah ... more than that, but think you can solve it yourself Edited November 7, 2012 by AnnieRuru Quote
Question
VladimirCastro
how can i off the friendly fire in pk map? i mean guild member can kill each other in pk map only
5 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.