Quest Item Restore + Packets w/ Timezone + Item/Exp-dec Field Limits
Fixed leaders being able to create expeditions even though the already passed the day limit. Fixed overflow case in calculated max value of skills. Implemented item expiration from DB after the due date. Refactored item flags using byte-length instead of short. Added FieldLimit checks for disappearing item drops and no EXP deduction in limited areas. Added "Quest Item Restore" functionality. Implemented item flag auto-instantiation when generating items. Added gate state update in Papulatus lobby area. Fixed a recent issue regarding bounding box calculation of AoE player skills. Implemented minidungeon close, to occur as soon as the party leader leaves the area. Refactored HenesysPQ attributed out of the MapleMap object, now they should be available from the respective event script. Fixed friendly mobs not dropping item periodically, a recent issue after tweaking the loot system. Fixed Papulatus expedition closing after the exped leader leaves or a minimum of player required to start is no longer there. Fixed several expeditions closing after performing party operations, such as "change party leader". Reviewed expected max damage calculation for summons, which would not work properly in several occasions. Normalized timezone from packets sent to client, now using the same timezone defined from the server flags. Fixed certain scenarios in CPQ that would happen within the stage between the "challenge accepted" and ingress in the battlefield. Revised credits script. Added GM checks in the autoban method.
This commit is contained in:
@@ -35,16 +35,16 @@ import java.util.Map;
|
||||
public final class ItemConstants {
|
||||
protected static Map<Integer, MapleInventoryType> inventoryTypeCache = new HashMap<>();
|
||||
|
||||
public final static int LOCK = 0x01;
|
||||
public final static int SPIKES = 0x02;
|
||||
public final static int KARMA_USE = 0x02;
|
||||
public final static int COLD = 0x04;
|
||||
public final static int UNTRADEABLE = 0x08;
|
||||
public final static int KARMA_EQP = 0x10;
|
||||
public final static int SANDBOX = 0x40; // let 0x40 until it's proven something uses this
|
||||
public final static int PET_COME = 0x80;
|
||||
public final static int ACCOUNT_SHARING = 0x100;
|
||||
public final static int MERGE_UNTRADEABLE = 0x200;
|
||||
public final static short LOCK = 0x01;
|
||||
public final static short SPIKES = 0x02;
|
||||
public final static short KARMA_USE = 0x02;
|
||||
public final static short COLD = 0x04;
|
||||
public final static short UNTRADEABLE = 0x08;
|
||||
public final static short KARMA_EQP = 0x10;
|
||||
public final static short SANDBOX = 0x40; // let 0x40 until it's proven something uses this
|
||||
public final static short PET_COME = 0x80;
|
||||
public final static short ACCOUNT_SHARING = 0x100;
|
||||
public final static short MERGE_UNTRADEABLE = 0x200;
|
||||
|
||||
public final static boolean EXPIRING_ITEMS = true;
|
||||
public final static Set<Integer> permanentItemids = new HashSet<>();
|
||||
@@ -147,7 +147,7 @@ public final class ItemConstants {
|
||||
return scrollId == 2040727 || scrollId == 2041058;
|
||||
}
|
||||
|
||||
public static boolean isFlagModifier(int scrollId, byte flag) {
|
||||
public static boolean isFlagModifier(int scrollId, short flag) {
|
||||
if(scrollId == 2041058 && ((flag & ItemConstants.COLD) == ItemConstants.COLD)) return true;
|
||||
if(scrollId == 2040727 && ((flag & ItemConstants.SPIKES) == ItemConstants.SPIKES)) return true;
|
||||
return false;
|
||||
|
||||
@@ -116,9 +116,10 @@ public class ServerConstants {
|
||||
public static final boolean USE_NPCS_SCRIPTABLE = true; //Flag to enable/disable serverside predefined script NPCs.
|
||||
|
||||
//Events/PQs Configuration
|
||||
public static final boolean USE_OLD_GMS_STYLED_PQ_NPCS = true; //Enables PQ NPCs with similar behaviour to old GMS style, that skips info about the PQs and immediately tries to register the party in.
|
||||
public static final boolean USE_ENABLE_SOLO_EXPEDITIONS = true; //Enables start expeditions with any number of players. This will also bypass all the Zakum prequest.
|
||||
public static final boolean USE_ENABLE_RECALL_EVENT = true; //Enables a disconnected player to reaccess the last event instance they were in before logging out. Recall only works if the event isn't cleared or disposed yet. Suggestion thanks to Alisson (Goukken).
|
||||
public static final boolean USE_OLD_GMS_STYLED_PQ_NPCS = true; //Enables PQ NPCs with similar behaviour to old GMS style, that skips info about the PQs and immediately tries to register the party in.
|
||||
public static final boolean USE_ENABLE_SOLO_EXPEDITIONS = true; //Enables start expeditions with any number of players. This will also bypass all the Zakum prequest.
|
||||
public static final boolean USE_ENABLE_DAILY_EXPEDITIONS = false;//Enables daily entry limitations in expeditions.
|
||||
public static final boolean USE_ENABLE_RECALL_EVENT = false; //Enables a disconnected player to reaccess the last event instance they were in before logging out. Recall only works if the event isn't cleared or disposed yet. Suggestion thanks to Alisson (Goukken).
|
||||
|
||||
//Announcement Configuration
|
||||
public static final boolean USE_ANNOUNCE_SHOPITEMSOLD = false; //Automatic message sent to owner when an item from the Player Shop or Hired Merchant is sold.
|
||||
@@ -210,6 +211,7 @@ public class ServerConstants {
|
||||
public static final boolean USE_FAST_REUSE_HERO_WILL = true;//Greatly reduce cooldown on Hero's Will.
|
||||
public static final boolean USE_ANTI_IMMUNITY_CRASH = true; //Crash skills additionally removes the mob's invincibility buffs. Suggestion thanks to Celestial.
|
||||
public static final boolean USE_UNDISPEL_HOLY_SHIELD = true;//Holy shield buff also prevents players from suffering dispel from mobs.
|
||||
public static final boolean USE_FULL_HOLY_SYMBOL = true; //Holy symbol doesn't require EXP sharers to work in full.
|
||||
|
||||
//Character Configuration
|
||||
public static final boolean USE_ADD_SLOTS_BY_LEVEL = true; //Slots are added each 20 levels.
|
||||
|
||||
Reference in New Issue
Block a user