Map buff protection & Expirable quest patch + Storage notice

Fixed items such as Red Bean Porridge and Air Bubble from acting outside of their scopes (now Air Bubble acts only under water, for instance).
Fixed an exploit with expirable quests when accessing the cash shop, that would make them "unexpirable".
Tweaked storages, now showing up popup warnings to players under level 15 instead of using the chat text area.
Removed "One-of-a-kind" tag from Lilin's Ring (caused conflicts with the Agent E custom script).
Added a few more scrolls to Spindle's shop.
Implemented several minor drop data adjustments.
This commit is contained in:
ronancpl
2018-02-09 23:25:21 -02:00
parent 3f8904ef44
commit 2d49c322e1
29 changed files with 338 additions and 138 deletions
+1 -1
View File
@@ -1227,7 +1227,7 @@ public class MapleItemInformationProvider {
return isQuestItemCache.get(itemId);
}
MapleData data = getItemData(itemId);
boolean questItem = MapleDataTool.getIntConvert("info/quest", data, 0) == 1;
boolean questItem = (data != null && MapleDataTool.getIntConvert("info/quest", data, 0) == 1);
isQuestItemCache.put(itemId, questItem);
return questItem;
}
+1 -3
View File
@@ -223,13 +223,11 @@ public class MapleStorage {
}
public void sendStorage(MapleClient c, int npcId) {
/*
if (c.getPlayer().getLevel() < 15){
c.getPlayer().message("You may only use the storage once you have reached level 15.");
c.getPlayer().dropMessage(1, "You may only use the storage once you have reached level 15.");
c.announce(MaplePacketCreator.enableActions());
return;
}
*/
lock.lock();
try {
+1 -1
View File
@@ -2610,7 +2610,7 @@ public class MapleMap {
}
public void setMapPointBoundings(int px, int py, int h, int w) {
mapArea.setBounds(px + 60, py, w - 120, h);
mapArea.setBounds(px + 80, py, w - 160, h);
}
public void setMapLineBoundings(int vrTop, int vrBottom, int vrLeft, int vrRight) {