Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Disable Heal effect in PVP map

Newbie Spellweaver
Joined
Jun 17, 2008
Messages
46
Reaction score
0
In MapleStatEffect.java Find
Code:
		if (hpchange != 0) {
			if (hpchange < 0 && (-hpchange) > applyto.getHp()) {
				return false;
			}
			applyto.setHp(applyto.getHp() + hpchange);
			hpmpupdate.add(new Pair<MapleStat, Integer>(MapleStat.HP, Integer.valueOf(applyto.getHp())));
		}

Replace it with
Code:
                if (applyto.getMapId() != yourpvpmapid) {
		if (hpchange != 0) {
			if (hpchange < 0 && (-hpchange) > applyto.getHp()) {
				return false;
			}
			applyto.setHp(applyto.getHp() + hpchange);
			hpmpupdate.add(new Pair<MapleStat, Integer>(MapleStat.HP, Integer.valueOf(applyto.getHp())));
		}
                }

What this does is basically disable the hp healing effect on a certain map.
 
Custom Title Activated
Loyal Member
Joined
Apr 5, 2008
Messages
1,025
Reaction score
5
Re: [Release]Disable Heal effect in PVP map

cool ^^; thanks man.
 
Skilled Illusionist
Joined
May 12, 2008
Messages
321
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

Does this disable them healing themselves or does it disable heal from doing damage?
 
Newbie Spellweaver
Joined
Jun 17, 2008
Messages
46
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

disables healing themselves
 
Skilled Illusionist
Joined
May 12, 2008
Messages
321
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

Thanks i love you :D LOL :D
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Release]Disable Heal effect in PVP map

Nerfing the heal amount is a better solution.
 
Newbie Spellweaver
Joined
Jun 17, 2008
Messages
46
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

Nerfing the heal amount is a better solution.

I guess that is a better solution, But diff server has diff max stats limit and rebirths, it's hard to do one that works for all servers unless you make it to heal certain percentage of max hp.
 
Skilled Illusionist
Joined
May 12, 2008
Messages
321
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

Works perfectly.
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
151
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

Nerfing the heal amount is a better solution.

how WOULD you nerf heal? cause if I use that method it prevents peop from healing MP too.
 
Custom Title Activated
Loyal Member
Joined
Apr 5, 2008
Messages
1,025
Reaction score
5
Re: [Release]Disable Heal effect in PVP map

works nice :)
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [Release]Disable Heal effect in PVP map

PvP is way too glitchy...
When I added it players couldn't create characters successfully >_<
 
Newbie Spellweaver
Joined
Jun 11, 2008
Messages
48
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

how to i add in multiple maps for these ?? as in prevent them in healing from multiple maps ??
 
Newbie Spellweaver
Joined
Jun 19, 2008
Messages
14
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

i get 100 errors from this. all from maplestateffect.java. already added in the 5 jar to library. why?
 
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
31
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

Nice tut. :winky: But you should let noob learn the hard way... Aw well.
 
Newbie Spellweaver
Joined
Jun 19, 2008
Messages
14
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

why do i get 100 errors? i already added the 5 jars to the library in netbeans
 
Mythic Archon
Loyal Member
Joined
May 11, 2008
Messages
722
Reaction score
50
Re: [Release]Disable Heal effect in PVP map

any idea how to do this for a whole channel?
 
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
31
Reaction score
0
Re: [Release]Disable Heal effect in PVP map

To make it for a whole channel do this instead:
PHP:
if (applyto.getClient().getChannel() != channelnumber) {
		if (hpchange != 0) {
			if (hpchange < 0 && (-hpchange) > applyto.getHp()) {
				return false;
			}
			applyto.setHp(applyto.getHp() + hpchange);
			hpmpupdate.add(new Pair<MapleStat, Integer>(MapleStat.HP, Integer.valueOf(applyto.getHp())));
		}
                }
I didn't make this in a java compiler but try it.
 
Visit my hompage
Loyal Member
Joined
May 2, 2008
Messages
1,017
Reaction score
2
Re: [Release]Disable Heal effect in PVP map

great works perfectly
 
Back
Top