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.
 
Re: [Release]Disable Heal effect in PVP map

Does this disable them healing themselves or does it disable heal from doing damage?
 
Re: [Release]Disable Heal effect in PVP map

Nerfing the heal amount is a better solution.
 
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.
 
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 ??
 
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?
 
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.
 
Back