Jump to content
  • 0

Disabling auto warp in PvP maps


Question

Posted

I was told that disabling the auto warp in PvP maps after being killed twice is a source modification.

I've been going through the source files and I can't seem to find anything for it.

Any help on modifying this?

3 answers to this question

Recommended Posts

Posted

src/map/pc.c

	// pvp
// disable certain pvp functions on pk_mode [Valaris]
if( map[sd->bl.m].flag.pvp && !battle_config.pk_mode && !map[sd->bl.m].flag.pvp_nocalcrank )
{
	sd->pvp_point -= 5;
	sd->pvp_lost++;
	if( src && src->type == BL_PC )
	{
		struct map_session_data *ssd = (struct map_session_data *)src;
		ssd->pvp_point++;
		ssd->pvp_won++;
	}
//   	 if( sd->pvp_point < 0 )
//   	 {
//	   	 add_timer(tick+1000, pc_respawn_timer,sd->bl.id,0);
//	   	 return 1|8;
//   	 }
}

You're going to want to comment that out and it will stop people from warping out when they die.

  • Upvote 1

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...