הסבר קצר:
המערכת הזאת עושה שבכל צ'אנל, יהיה president אחד. כדי להפוך ל president משתמשים בפקודה @president (צריך 100m).
ה president מקבל כפול 2 exp ואת הפקודה @presidentnotice, שהיא כמו !notice של ה GM.
כמובן שהפקודה וה 2x exp פועלים רק בצ'אנל שבו הוא president.
בקובץ MapleCharacter.java שנמצא בתיקייה client
מעל זה:
תוסיפו את זה:קוד PHP:private int world;
ומתחת לזה:קוד PHP:private boolean prw = false;
תוסיפו את זה:קוד PHP:public void gainExp(int gain, boolean show, boolean inChat, boolean white) {
בקובץ ChannelServer.java שנמצא בתיקייה net.channelקוד PHP:if (ChannelServer.getInstance(getClient().getChannel()).president == this) {
gain *= 2;
if (prw == false) {
dropMessage("You are gaining 2X EXP because you are the President of this channel!");
prw = true;
}
}
מתחת לזה:
תוסיפו את זה:קוד PHP:private int channel;
ולבסוף, בקובץ הפקודות של השחקן תוסיפו את זה:קוד PHP:public MapleCharacter president = null;
ומתחת לזה:קוד PHP:} else if (splitted[0].equalsIgnoreCase("@presidentnotice")) {
if (c.getChannelServer().president == player) {
if (splitted.length > 1) {
for (MapleCharacter chr : c.getChannelServer().getPlayerStorage().getAllCharacters())
chr.dropMessage(6, "[President " + player.getName() + "] : " + StringUtil.joinStringFrom(splitted, 1));
} else
player.dropMessage(6, "Syntax: @presidentnotice <message>");
} else
player.dropMessage("You are not the president of this channel.");
} else if (splitted[0].equalsIgnoreCase("@president")) {
if (ChannelServer.getInstance(c.getChannel()).president != player) {
if (player.getMeso() >= 100000000) {
player.gainMeso(-100000000, true);
for (MapleCharacter chr : c.getChannelServer().getPlayerStorage().getAllCharacters())
chr.dropMessage(6, player.getName() + " is now the president of this channel!");
c.getChannelServer().president = player;
} else
player.dropMessage(6, "You need 100,000,000 mesos to become a president!");
} else
player.dropMessage(6, "You are already the president of this channel.");
} else if (splitted[0].equals("@prescheck")) {
MapleCharacter pres = c.getChannelServer().president;
player.dropMessage(pres == null ? "This channel has no president." : "The current president of this channel is " + pres.getName());
תוסיפו את זה:קוד PHP:new CommandDefinition("dispose", 0),
קרדיט למישהו אחר על הרעיון בלבד.קוד PHP:new CommandDefinition("president", 0),
new CommandDefinition("presidentnotice", 0),
new CommandDefinition("prescheck", 0),
תהנו![]()




ציטוט ההודעה



ספוילר: 