- 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
either replace it with this or u can just add below it
in those boss portal scripts which uses the door
example papulatus
in Populatus00.js
make it look like this
example zakum
in Zakum05.js make it look like this
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: