Jump to content
  • 0

Prevent warping on savepoint on pvp death


Eross

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

Hi ! Im using a diffcode called MVPPK .. It allows mvp maps to become PVP ON when  mvp boss is alive ..but the problem is after death im warping back on savepoint ... How can I remove this auto warp ?? thanks 

	//On latest rAthena:
	
	open src/map/mob.c
	
	on 	int mob_delayspawn
	find
	md->spawn_timer = INVALID_TIMER;
		mob_spawn(md);
	
	change to
	
	
		md->spawn_timer = INVALID_TIMER;
		mob_spawn(md);
++		if( md->state.boss ) {
++		map_setmapflag(bl->m, MF_PVP, true);
++		}
		

	
	on	int mob_spawn
	find
	if (md->spawn) { //Respawn data
		md->bl.m = md->spawn->m;
		md->bl.x = md->spawn->x;
		md->bl.y = md->spawn->y;
	
	change to
	if (md->spawn) { //Respawn data
		md->bl.m = md->spawn->m;
		md->bl.x = md->spawn->x;
		md->bl.y = md->spawn->y;
++		if(md->spawn->state.boss)  map_setmapflag(md->bl.m, MF_PVP, true);
	
	
	


	on	int mob_dead
	find
	
			// MvP tomb [GreenBox]
	if (battle_config.mvp_tomb_enabled && md->spawn->state.boss && map[md->bl.m].flag.notomb != 1)
		mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL));
	
	change to (Config your mvp_tomb_enabled on battle folder.)
	
		// MvP tomb [GreenBox]
	if (battle_config.mvp_tomb_enabled && md->spawn->state.boss && map[md->bl.m].flag.notomb != 1)
		mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL));
++	if(md->spawn->state.boss)  {
++	map_setmapflag(md->bl.m, MF_PVP, false);
++	}
	
	recompile and is ready.
	
	

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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