Please let me know if the prices aren't correct.
MapleCharacter.java
capacityCost()
increaseGuildCapacity()Code:public int capacityCost() { int cost = 500000; if (getGuild().getCapacity() == 15) { cost = 1500000; } else if (getGuild().getCapacity() == 20) { cost = 2500000; } else if (getGuild().getCapacity() == 25) { cost = 3500000; } else if (getGuild().getCapacity() == 30) { cost = 7500000; } else if (getGuild().getCapacity() == 35) { cost = 12500000; } else if (getGuild().getCapacity() == 40) { cost = 17500000; } else if (getGuild().getCapacity() == 45) { cost = 22500000; } else if (getGuild().getCapacity() == 50) { cost = 27500000; } else if (getGuild().getCapacity() == 55) { cost = 32500000; } else if (getGuild().getCapacity() == 60) { cost = 37500000; } else if (getGuild().getCapacity() == 65) { cost = 42500000; } else if (getGuild().getCapacity() == 70) { cost = 47500000; } else if (getGuild().getCapacity() == 75) { cost = 52500000; } else if (getGuild().getCapacity() == 80) { cost = 57500000; } else if (getGuild().getCapacity() == 85) { cost = 62500000; } else if (getGuild().getCapacity() == 90) { cost = 67500000; } else if (getGuild().getCapacity() == 95) { cost = 72500000; } return cost; }
getGuild()Code:public void increaseGuildCapacity() { if (this.getMeso() < capacityCost()) { client.getSession().write(MaplePacketCreator.serverNotice(1, "You do not have enough mesos.")); return; } if (this.guildid <= 0) { log.info(this.name + " is trying to increase guild capacity without being in the guild."); return; } try { client.getChannelServer().getWorldInterface().increaseGuildCapacity(this.guildid); } catch (RemoteException e) { client.getChannelServer().reconnectWorld(); log.error("Error while increasing capacity.", e); return; } this.gainMeso(-capacityCost(), true, false, true); }
Code:public MapleGuild getGuild() { try { return getClient().getChannelServer().getWorldInterface().getGuild(getGuildId(), null); } catch (RemoteException ex) { client.getChannelServer().reconnectWorld(); } return null; }



Reply With Quote


