little modification for customize portal block message

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 12, 2008
Messages
55
Reaction score
0
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:
   public boolean warp(int map, String curPortal, String nextPortal) {
       if(c.getPlayer().getMap().getPortal(curPortal).getPortalState())
       {
            MapleMap target = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
            c.getPlayer().changeMap(target, target.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:
   public boolean warp(int map, String curPortal, String nextPortal,String msg) {
       if(c.getPlayer().getMap().getPortal(curPortal).getPortalState())
       {
            MapleMap target = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
            c.getPlayer().changeMap(target, target.getPortal(nextPortal));
            return true;
       }
       else
       {
           c.getSession().write(MaplePacketCreator.serverNotice(5, msg));
           return false;
       }
   }

in those boss portal scripts which uses the door
example papulatus
in Populatus00.js
make it look like this
PHP:
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:
function enter(pi) {
	//pi.warp(211042400, "west00");
	return pi.warp(211042400,"sp", "west00","A group or individual is mating with Zakum");
}
 
Last edited:
Re: [Re-Release]little modification for customize portal block message

Nice release! I'll use this.
and... I hope DeathHTEFFECT re-release. ...sry
 
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
 
Re: [Release]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:
   public boolean warp(int map, String curPortal, String nextPortal) {
       if(c.getPlayer().getMap().getPortal(curPortal).getPortalState())
       {
            MapleMap target = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
            c.getPlayer().changeMap(target, target.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:
   public boolean warp(int map, String curPortal, String nextPortal,String msg) {
       if(c.getPlayer().getMap().getPortal(curPortal).getPortalState())
       {
            MapleMap target = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(map);
            c.getPlayer().changeMap(target, target.getPortal(nextPortal));
            return true;
       }
       else
       {
           c.getSession().write(MaplePacketCreator.serverNotice(5, msg));
           return false;
       }
   }

in those boss portal scripts which uses the door
example papulatus
in Populatus00.js
make it look like this
PHP:
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:
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
 
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?
 
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..
 
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..
close the portal
 
Status
Not open for further replies.
Back