Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

little modification for customize portal block message

Status
Not open for further replies.
Initiate Mage
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:
Initiate Mage
Joined
Mar 14, 2008
Messages
14
Reaction score
0
Re: [Re-Release]little modification for customize portal block message

Nice release! I'll use this.
and... I hope DeathHTEFFECT re-release. ...sry
 
Initiate Mage
Joined
Jul 12, 2008
Messages
55
Reaction score
0
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
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
100
Reaction score
0
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 poop is this
 
Initiate Mage
Joined
Jun 22, 2008
Messages
48
Reaction score
0
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?
 
Initiate Mage
Joined
Apr 15, 2008
Messages
46
Reaction score
1
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..
 
Initiate Mage
Joined
Jul 12, 2008
Messages
55
Reaction score
0
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
 
Initiate Mage
Joined
Jul 12, 2008
Messages
55
Reaction score
0
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?

do u have the pap door fix added to ur source previously?u might nid that
 
Status
Not open for further replies.
Back
Top