[Tut]Adding More Pvp Maps

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! SweetSorrow is offline
    MemberRank
    Oct 2008 Join Date
    ShoeBoxLocation
    352Posts

    [Tut]Adding More Pvp Maps

    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:
    PHP Code:
    private int PVP_MAP 800020400
    Replace:
    PHP Code:
    private int[] PVP_MAP = {Map IDMap IDMap ID800020400}; 
    Find:
    PHP Code:
    if (player.getMapId() == PVP_MAP) { 
    Replace:
    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:
    PHP Code:
    if (!c.getPlayer().isAlive() || c.getPlayer().isPvPMap()) { 
    Replace:
    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:
    PHP Code:
    if (!applyto.isPvPMap()) {
                if (
    hpchange != 0) {
                    if (
    hpchange && (-hpchange) > applyto.getHp()) {
                        return 
    false;
                    }
                    
    int newHp applyto.getHp() + hpchange;
                    if (
    newHp 1) {
                        
    newHp 1;
                    }
                    
    applyto.setHp(newHp);
                    
    hpmpupdate.add(new Pair<MapleStatInteger>(MapleStat.HPInteger.valueOf(applyto.getHp())));
                }
            } 
    Replace:
    PHP Code:
    if (applyto.getMapId() == Map ID || applyto.getMapId() == Map ID || applyto.getMapId() == Map ID || applyto.getMapId()  == 800020400) {
            if (
    hpchange != 0) {
                    if (
    hpchange && (-hpchange) > applyto.getHp()) {
                        return 
    false;
                    }
                    
    int newHp applyto.getHp() + hpchange;
                    if (
    newHp 1) {
                        
    newHp 1;
                    }
                    
    applyto.setHp(newHp);
                    
    hpmpupdate.add(new Pair<MapleStatInteger>(MapleStat.HPInteger.valueOf(applyto.getHp())));
                }
            } 


  2. #2
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Guide]Adding More Pvp Maps

    this is very very very very very very very very very very helpful!

    ive been searching for years;)

  3. #3
    Infraction Banned MrMysterious is offline
    MemberRank
    Dec 2008 Join Date
    In a treeLocation
    752Posts

    Re: [Guide]Adding More Pvp Maps

    Haha stupid Jvlaple and his sarcasm --.
    You're doing it wrong SweetSorrow.

  4. #4
    Proficient Member -SakaeSushi- is offline
    MemberRank
    Dec 2008 Join Date
    N/ALocation
    165Posts

    Re: [Guide]Adding More Pvp Maps

    nice guide. =]

  5. #5
    return null; mertjuh is offline
    MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,269Posts

    Re: [Tut]Adding More Pvp Maps

    sorry abit nubish but compiling needed?

  6. #6
    Account Upgraded | Title Enabled! ex4life6pro is offline
    MemberRank
    Dec 2008 Join Date
    BelgiumLocation
    206Posts

    Re: [Tut]Adding More Pvp Maps

    OMG i'm using xotic source and i CAN'T FIND ANYTHING FOR PVP!!!!! in abstractdealdamagehandler.java or somthing like that

  7. #7
    Account Upgraded | Title Enabled! ex4life6pro is offline
    MemberRank
    Dec 2008 Join Date
    BelgiumLocation
    206Posts

    Re: [Tut]Adding More Pvp Maps

    Quote Originally Posted by mertjuh View Post
    sorry abit nubish but compiling needed?
    yes , mostly always you need to compile after editing in src

  8. #8
    Apprentice hinokio is offline
    MemberRank
    Jul 2009 Join Date
    13Posts

    Re: [Tut]Adding More Pvp Maps

    what is compiling? how do i do it?

  9. #9
    Member Bliss is offline
    MemberRank
    Jul 2008 Join Date
    66Posts

    Re: [Tut]Adding More Pvp Maps

    @hinokio Go search for Compiling with NetBeans by Innovative.



Advertisement