Jump to content
  • 0

Regarding pvp mode


Question

Posted

Hello rathena community i just want to ask if possible to make script and pvpmode without warpout, example in normal pvp when you die 2x you will be warpout in your savepoint, in my request/ask is how can possible to make pvp without warpout, like when you resu kill in pvp mode you can't warpout in your savepoints, thank you very much more power !!

6 answers to this question

Recommended Posts

  • 0
Posted

You can't with that mapflag, but if you know how to recompile then you can do this.

pc.cpp, change:

	if( !battle_config.pk_mode && mapdata->flag[MF_PVP] && !mapdata->flag[MF_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;
		}
	}

to:

	if( !battle_config.pk_mode && mapdata->flag[MF_PVP] && !mapdata->flag[MF_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++;
		}
	}

With this change you can just use pvp mapflag instead of pvp_nocalcrank and players won't be respawned. The counter will also remain.

  • Love 1
  • 0
Posted

Thank you for your answer but i need is ,when pvp the map is pvp on, in the official behavior when you die 2x in pvp map like resu kill you will be warp out in your save point right?, in my case i want to disable this feature in certain map, so anyone can do resu kill in pvp mode map thanks

  • 0
Posted
9 minutes ago, n0tttt said:

Yeah, with pvp_nocalcrank mapflag you'll avoid that.

Thanks it work. how to maintain the player counter in the lower right? it is possible?

  • 0
Posted
22 minutes ago, n0tttt said:

You can't with that mapflag, but if you know how to recompile then you can do this.

pc.cpp, change:


	if( !battle_config.pk_mode && mapdata->flag[MF_PVP] && !mapdata->flag[MF_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;
		}
	}

to:


	if( !battle_config.pk_mode && mapdata->flag[MF_PVP] && !mapdata->flag[MF_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++;
		}
	}

With this change you can just use pvp mapflag instead of pvp_nocalcrank and players won't be respawned. The counter will also remain.

Thanks man for your effort (Y) now its working,

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