I made this guide since lots of people are asking for help about adding more Pvp map o.o"
/src/net/sf/odinms/net/channel/handler/AbstractDealDamageHandler.java
-Adding More Pvp Maps
Find:
Replace:PHP Code:private int PVP_MAP = 800020400;
Find:PHP Code:private int[] PVP_MAP = {Map ID, Map ID, Map ID, 800020400};
Replace:PHP Code:if (player.getMapId() == PVP_MAP) {
PHP Code:if (player.getMapId() == Map ID || player.getMapId() == Map ID || player.getMapId() == Map ID || player.getMapId() == 800020400) {
/src/net/sf/odinms/net/channel/handler/UseItemHandler.java
-Disabling Pots
Find:
Replace:PHP Code:if (!c.getPlayer().isAlive() || c.getPlayer().isPvPMap()) {
PHP Code:if (!c.getPlayer().isAlive() || c.getPlayer().getMapId() ==Map ID || c.getPlayer().getMapId() == Map ID || c.getPlayer().getMapId() == Map ID || c.getPlayer().getMapId() == 800020400) {
/src/net/sf/odinms/server/MapleStatEffect.java
-Disabling Heals
Find:
Replace:PHP Code:if (!applyto.isPvPMap()) {
if (hpchange != 0) {
if (hpchange < 0 && (-hpchange) > applyto.getHp()) {
return false;
}
int newHp = applyto.getHp() + hpchange;
if (newHp < 1) {
newHp = 1;
}
applyto.setHp(newHp);
hpmpupdate.add(new Pair<MapleStat, Integer>(MapleStat.HP, Integer.valueOf(applyto.getHp())));
}
}
PHP Code:if (applyto.getMapId() == Map ID || applyto.getMapId() == Map ID || applyto.getMapId() == Map ID || applyto.getMapId() == 800020400) {
if (hpchange != 0) {
if (hpchange < 0 && (-hpchange) > applyto.getHp()) {
return false;
}
int newHp = applyto.getHp() + hpchange;
if (newHp < 1) {
newHp = 1;
}
applyto.setHp(newHp);
hpmpupdate.add(new Pair<MapleStat, Integer>(MapleStat.HP, Integer.valueOf(applyto.getHp())));
}
}



Reply With Quote![[Tut]Adding More Pvp Maps](http://ragezone.com/hyper728.png)


