hello i want command i dk command or what but in map ox i tip command and when they fall to bottom did
anyone know this ?
hello i want command i dk command or what but in map ox i tip command and when they fall to bottom did
anyone know this ?
Hello Fa9ool,
You seem quite new on P.servers you need countless amount of help.
I might give you a hand.
Add this to admin command :
This goes to your Player Command :} else if (splitted[0].equals("!event")) { if (player.getClient().getChannelServer().eventOn == false) {
int mapid = getOptionalIntArg(splitted, 1, c.getPlayer().getMapId());
player.getClient().getChannelServer().eventOn = true;
player.getClient().getChannelServer().eventMap = mapid;
try {
cserv.getWorldInterface().broadcastMessage(null, MaplePacketCreator.serverNotice(6, c.getChannel(), "Spoonfeeding Times :" + c.getChannel() + ". Times Left : " + player.getMapId() + "!").getBytes());
} catch (RemoteException e) {
cserv.reconnectWorld();
}
} else {
player.getClient().getChannelServer().eventOn = false;
try {
cserv.getWorldInterface().broadcastMessage(null, MaplePacketCreator.serverNotice(6, c.getChannel(), "Bye").getBytes());
} catch (RemoteException e) {
cserv.reconnectWorld();
}
}
} else if (splitted[0].equals("@leaveevent")) { if (player.getMapId() != c.getChannelServer().eventMap) {
player.dropMessage("You may only use this to leave the event map!");
//mc.dropMessage("You may only use this command in the Leaving the Event map.");
return;
}
if (c.getChannelServer().eventOn == true) {
MapleMap map = cserv.getMapFactory().getMap(c.getPlayer().getPreviousMap());
player.changeMap(map, map.getPortal(0));
c.getPlayer().setPreviousMap(0);
} else {
player.dropMessage("There is no active event at this time or has closed. Please try again later!");
return;
}
One point is missing which is : getPreviousMap()
Which is a simple function that has to be added in MapleCharacter
Good Luck~