Event Recall + Cash Shop bestsellers + MapleSessionCoordinator rework
Implemented an event recall system. Players that went disconnected during an event instance are able to rejoin the ongoing event upon relogin. Implemented a player-activity backed best-sellers system for the Cash Shop. Patched the recently added selective loot system interfering with quest items, ever disabling drops after the player picked up one item. Implemented a server flag for everlasting buffs. Fixed some inconsistencies with Priest Dispel skill, sometimes crashing party players. Fixed change job not properly showing effects for other players. Fixed wrong fee value being taken from players that expands their guild size. Also, implemented GMS-like fee for this action. Reworked the MapleSessionCoordinator, now evaluating client's HWID as well as remote IP. This's expected to lessen account drought time for players that are constantly changing their IP. Last but not least, added world maps for Mushroom Castle, Zipangu, CBD/Malaysia and Ellin Forest regions. Original artwork content used on files depicted in this topic are rightful property of Nexon Corps., these files thoroughly trying to adhere the "Fair Use" disclaimer policy, their purpose being solely to fulfill gaming experience for the areas that were already present on v83 GMS but still lacked worldmaps. For more info regarding Fair Use, please refer to "http://www.dmlp.org/legal-guide/fair-use".
This commit is contained in:
@@ -66,7 +66,7 @@ public class Equip extends Item {
|
||||
private float itemExp;
|
||||
private int ringid = -1;
|
||||
private boolean wear = false;
|
||||
private boolean isUpgradeable, isElemental = false; // timeless or reverse
|
||||
private boolean isUpgradeable, isElemental = false; // timeless or reverse, or any equip that could levelup on GMS for all effects
|
||||
|
||||
public Equip(int id, short position) {
|
||||
this(id, position, 0);
|
||||
@@ -78,8 +78,7 @@ public class Equip extends Item {
|
||||
this.itemExp = 0;
|
||||
this.itemLevel = 1;
|
||||
|
||||
String itemName = MapleItemInformationProvider.getInstance().getName(id);
|
||||
if(itemName != null) this.isElemental = (itemName.contains("Timeless") || itemName.contains("Reverse"));
|
||||
this.isElemental = (MapleItemInformationProvider.getInstance().getEquipLevel(id, false) > 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -533,17 +532,14 @@ public class Equip extends Item {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean reachedMaxLevel(String eqpName) {
|
||||
if(isElemental) {
|
||||
if(eqpName.contains("Timeless")) {
|
||||
if(itemLevel < 6) return false;
|
||||
} else {
|
||||
if(itemLevel < 4) return false;
|
||||
private boolean reachedMaxLevel() {
|
||||
if (isElemental) {
|
||||
if (itemLevel < MapleItemInformationProvider.getInstance().getEquipLevel(getItemId(), true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(itemLevel < ServerConstants.USE_EQUIPMNT_LVLUP) return false;
|
||||
return true;
|
||||
return itemLevel >= ServerConstants.USE_EQUIPMNT_LVLUP;
|
||||
}
|
||||
|
||||
public String showEquipFeatures(MapleClient c) {
|
||||
@@ -551,7 +547,7 @@ public class Equip extends Item {
|
||||
if(!ii.isUpgradeable(this.getItemId())) return "";
|
||||
|
||||
String eqpName = ii.getName(getItemId());
|
||||
String eqpInfo = reachedMaxLevel(eqpName) ? " #e#rMAX LEVEL#k#n" : (" EXP: #e#b" + (int)itemExp + "#k#n / " + ExpTable.getEquipExpNeededForLevel(itemLevel));
|
||||
String eqpInfo = reachedMaxLevel() ? " #e#rMAX LEVEL#k#n" : (" EXP: #e#b" + (int)itemExp + "#k#n / " + ExpTable.getEquipExpNeededForLevel(itemLevel));
|
||||
|
||||
return "'" + eqpName + "' -> LV: #e#b" + itemLevel + "#k#n " + eqpInfo + "\r\n";
|
||||
}
|
||||
|
||||
@@ -25,10 +25,12 @@ import constants.ItemConstants;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Item implements Comparable<Item> {
|
||||
|
||||
private static AtomicInteger runningCashId = new AtomicInteger(0);
|
||||
|
||||
private int id, cashId, sn;
|
||||
private short position;
|
||||
private short quantity;
|
||||
@@ -81,7 +83,7 @@ public class Item implements Comparable<Item> {
|
||||
|
||||
public int getCashId() {
|
||||
if (cashId == 0) {
|
||||
cashId = new Random().nextInt(Integer.MAX_VALUE) + 1;
|
||||
cashId = runningCashId.incrementAndGet();
|
||||
}
|
||||
return cashId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user