Jump to content
  • 0

disable friend fire pk map


Question

5 answers to this question

Recommended Posts

Posted

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

Posted (edited)

:ani_swt3: 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 by AnnieRuru

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...