Jump to content
  • 0

Disabling auto warp in PvP maps


nelsontyh

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

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


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Ah cheers, thanks very much! It's working now.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

beside.....you can also edit like this

remove this line

sd->pvp_point -= 5;

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