Jump to content

Release: PVP on MVP Maps


cook1e

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

PVP on MVP Maps


When a MVP Spawns PVP is enabled, When this MVP dies PVP is disabled.
New Mapflag MF_MAPMVP - Disable going to savepoint once you die 2 times in a PVP map.


 

  • Upvote 1
  • Like 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

Very nice. Thank you!

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   1
  • Joined:  08/18/13
  • Last Seen:  

 

I have this source activated and it works fine. But when I want to resurrect someone dead 2 times they don't resurrect.
The first time he dies I can resurrect but the second time it doesn't work.
How to fix them? 

Thanks for share this ❤️

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   1
  • Joined:  08/18/13
  • Last Seen:  

On 9/29/2022 at 9:30 AM, masterzeus said:

 

I have this source activated and it works fine. But when I want to resurrect someone dead 2 times they don't resurrect.
The first time he dies I can resurrect but the second time it doesn't work.
How to fix them? 

Thanks for share this ❤️

UPDATE THIS FOR USE YDRASSSIL LEAF AND RESURECCT SKILL ON PVP MVP MAPS
thanks @Tokei for update ❤️

 

diff --git a/src/map/skill.cpp b/src/map/skill.cpp
index b48373392..f19c80142 100755
--- a/src/map/skill.cpp
+++ b/src/map/skill.cpp
@@ -7170,7 +7170,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
 				break;
 			}
 
-			if (map_getmapflag(bl->m, MF_PVP) && dstsd && dstsd->pvp_point < 0)
+			if (map_getmapflag(bl->m, MF_PVP) && dstsd && dstsd->pvp_point < 0 && !map_getmapflag(bl->m, MF_MAPMVP))
 				break;
 
 			switch(skill_lv){
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  04/20/16
  • Last Seen:  

this works perfectly on my server! thank you for this

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

I have update to the latest rAthena and I get this error:

image.png.3d9430f884dcb4bfd2d679e2c5f91afc.png

I don't have this error before update to the latest rA.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  862
  • Reputation:   115
  • Joined:  05/23/12
  • Last Seen:  

The error tells u what u have to do. Change flag to flags. This should fix it 

 

Rynbef~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

51 minutes ago, Rynbef said:

The error tells u what u have to do. Change flag to flags. This should fix it 

 

Rynbef~

I have tried it before post here. Same error. But now I just fixed it.

Change to:
 

!mapdata->getMapFlag(MF_MAPMVP)

 

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  02/03/16
  • Last Seen:  

The script works very well, thank you!

 

However, when pvp is activated, players on the map receive 0% EXP. When pvp is disabled (MVP is dead), the experience returns to normal.

 

Thx :3

 

EDIT : I have solved the problem ... Look this line in exp.conf and change no to yes !

// PVP exp.  Do players get exp in PvP maps
// (Note: NOT exp from players, but from normal leveling)
pvp_exp: yes

Edited by Tiki59
Solve
Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.02
  • Content Count:  119
  • Reputation:   0
  • Joined:  09/02/20
  • Last Seen:  

i used latest rathena 03/18/2024

got this issue

image.thumb.jpeg.e0d0dfbcf367b53c43356c4419a4ce2d.jpeg

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
Reply to this topic...

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