little modification for customize portal block message

Results 1 to 10 of 10
  1. #1
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    little modification for customize portal block message

    well when i first release the pap door on odinms forum, i already mention this in 5th or 6th post of the thread in odinms forum,but it seem like quite a few repack miss this out

    in AbstractionPlayerInteraction.java
    PHP Code:
       public boolean warp(int mapString curPortalString nextPortal) {
           if(
    c.getPlayer().getMap().getPortal(curPortal).getPortalState())
           {
                
    MapleMap target ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
                
    c.getPlayer().changeMap(targettarget.getPortal(nextPortal));
                return 
    true;
           }
           else
           {
               
    c.getSession().write(MaplePacketCreator.serverNotice(5"The Portal is Close, somebody is engaging the Boss"));
               return 
    false;
           }
       } 
    either replace it with this or u can just add below it
    PHP Code:
       public boolean warp(int mapString curPortalString nextPortal,String msg) {
           if(
    c.getPlayer().getMap().getPortal(curPortal).getPortalState())
           {
                
    MapleMap target ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
                
    c.getPlayer().changeMap(targettarget.getPortal(nextPortal));
                return 
    true;
           }
           else
           {
               
    c.getSession().write(MaplePacketCreator.serverNotice(5msg));
               return 
    false;
           }
       } 
    in those boss portal scripts which uses the door
    example papulatus
    in Populatus00.js
    make it look like this
    PHP Code:
    function enter(pi) {
        
    //pi.warp(220080001, "st00");
        //return pi.warp(220080001, "sp","st00");
        
    return pi.warp(220080001"sp","st00","Someone is having a good time with Papulatus, try again later");

    example zakum
    in Zakum05.js make it look like this
    PHP Code:
    function enter(pi) {
        
    //pi.warp(211042400, "west00");
        
    return pi.warp(211042400,"sp""west00","A group or individual is mating with Zakum");

    Last edited by alex_soh; 23-07-08 at 10:14 AM.


  2. #2
    Enthusiast imatai is offline
    MemberRank
    Mar 2008 Join Date
    26Posts

    Re: [Re-Release]little modification for customize portal block message

    Nice release! I'll use this.
    and... I hope DeathHTEFFECT re-release. ...sry

  3. #3
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [Release]little modification for customize portal block message

    wow i believe somebody edited my title.i tot it was re-release or something, oh well nvm

  4. #4
    Valued Member Bangala is offline
    MemberRank
    Jul 2008 Join Date
    142Posts

    Re: [Release]little modification for customize portal block message

    Quote Originally Posted by alex_soh View Post
    well when i first release the pap door on odinms forum, i already mention this in 5th or 6th post of the thread in odinms forum,but it seem like quite a few repack miss this out

    in AbstractionPlayerInteraction.java
    PHP Code:
       public boolean warp(int mapString curPortalString nextPortal) {
           if(
    c.getPlayer().getMap().getPortal(curPortal).getPortalState())
           {
                
    MapleMap target ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
                
    c.getPlayer().changeMap(targettarget.getPortal(nextPortal));
                return 
    true;
           }
           else
           {
               
    c.getSession().write(MaplePacketCreator.serverNotice(5"The Portal is Close, somebody is engaging the Boss"));
               return 
    false;
           }
       } 
    either replace it with this or u can just add below it
    PHP Code:
       public boolean warp(int mapString curPortalString nextPortal,String msg) {
           if(
    c.getPlayer().getMap().getPortal(curPortal).getPortalState())
           {
                
    MapleMap target ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
                
    c.getPlayer().changeMap(targettarget.getPortal(nextPortal));
                return 
    true;
           }
           else
           {
               
    c.getSession().write(MaplePacketCreator.serverNotice(5msg));
               return 
    false;
           }
       } 
    in those boss portal scripts which uses the door
    example papulatus
    in Populatus00.js
    make it look like this
    PHP Code:
    function enter(pi) {
        
    //pi.warp(220080001, "st00");
        
    return pi.warp(220080001"sp","st00");
        return 
    pi.warp(220080001"sp","st00","Someone is having a good time with Papulatus, try again later");

    example zakum
    in Zakum05.js make it look like this
    PHP Code:
    function enter(pi) {
        
    //pi.warp(211042400, "west00");
        
    return pi.warp(211042400,"sp""west00","A group or individual is mating with Zakum");

    what shit is this

  5. #5
    Member chy1991 is offline
    MemberRank
    Jun 2008 Join Date
    65Posts

    Re: [Release]little modification for customize portal block message

    If i add this freshly to my source, is there anything else I need to add?

  6. #6
    Member Stuffa is offline
    MemberRank
    Apr 2008 Join Date
    DenmarkLocation
    82Posts

    Re: [Release]little modification for customize portal block message

    Im wondering if u could make some kind of block for PvP maps that you can enter but cant get out its annoying with those people who goes out for healing and then comes back in..

  7. #7
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [Release]little modification for customize portal block message

    Quote Originally Posted by Stuffa View Post
    Im wondering if u could make some kind of block for PvP maps that you can enter but cant get out its annoying with those people who goes out for healing and then comes back in..
    close the portal

  8. #8
    Member Stuffa is offline
    MemberRank
    Apr 2008 Join Date
    DenmarkLocation
    82Posts

    Re: [Release]little modification for customize portal block message

    Quote Originally Posted by alex_soh View Post
    close the portal
    And how would i do that?

  9. #9
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [Release]little modification for customize portal block message

    Quote Originally Posted by Stuffa View Post
    And how would i do that?
    its the same as how u close the portal to pap room when ppl are in it

  10. #10
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [Release]little modification for customize portal block message

    Quote Originally Posted by chy1991 View Post
    If i add this freshly to my source, is there anything else I need to add?
    do u have the pap door fix added to ur source previously?u might nid that



Advertisement