Jump to content
  • 0
nelsontyh

Disabling auto warp in PvP maps

Question

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?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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
Link to comment
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.   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.



×
×
  • Create New...

Important Information

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