Mob aggro overhaul + STR-DEX autoassign patch + Guild & Pl. Store fix
Reviewed Monster Magnet skill effect on mobs, now properly showing up to other players. Reworked concurrency protection on login handler, now properly synchronizing requests for the same accountId. Reviewed an expedition issue with attempting to send packets on loggedoff players. Expeditions no longer holds a character object list of its own, rather finding players through their id on the world storage. Added stat requirement definition as first message on 1st job NPCs. Fixed an issue with area triggered NPC conversations not getting properly disposed. Reviewed "launch.bat", internally referencing Java7 engine. Assuming it has been installed in the default directory on the system, it's no longer necessary to set precedence on PATH for it. Fixed need for "reapproval from the 3rd job instructors" to attempt Zakum once more. Reviewed goto command. Non-GM's no longer has access to area maps, only towns. Implemented a new server flag for enforcing base rates (server rate: 1x) on players level 10 or lower. Fixed player guild tooltips not being properly marshalled to others on the map, at the event of several guild actions. Reviewed event system allowing creation of same-name events, potentially leading to null EIM problems. Refactored some locks on MapleCharacter, potentially solving a deadlock case within expiring/forfeiting quest methods. Implemented a major overhaul on mob aggro system, now updating player aggro in real-time based on their latest DPS. Properly refactored and encapsulated aggro mechanics. Fixed NPE on disposing events with alive mobs. Added server-side birthday check handling when opening player shops or merchants having cash items in store. Fixed player shop tooltip not finishing properly when shop owner closes store with visitors still in there. Fixed forceChangeMap method not warping players to the designated event map (rather sending them to the starting event map). Reviewed "summon" command, now using forceChangeMap, also changing channels if needed. Reworked HeavenMS autoassigner: STR-based classes now ups a bit more DEX than before, since its a vital attribute for accuracy on their actions. Added meso ceil check on player transactions. Trades now gets suspended if the max amount is reached. Implemented server-side item limit check on player shops and merchants. Fixed an exploit with merchants, on where players would be able to save the selling item on DB before taking from inventory.
This commit is contained in:
@@ -1841,6 +1841,30 @@ public class MaplePacketCreator {
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
/**
|
||||
* Guild Name & Mark update packet, thanks to Arnah (Vertisy)
|
||||
*
|
||||
* @param guildName The Guild name, blank for nothing.
|
||||
*/
|
||||
public static byte[] guildNameChanged(int chrid, String guildName){
|
||||
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.GUILD_NAME_CHANGED.getValue());
|
||||
mplew.writeInt(chrid);
|
||||
mplew.writeMapleAsciiString(guildName);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] guildMarkChanged(int chrid, MapleGuild guild){
|
||||
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.GUILD_MARK_CHANGED.getValue());
|
||||
mplew.writeInt(chrid);
|
||||
mplew.writeShort(guild.getLogoBG());
|
||||
mplew.write(guild.getLogoBGColor());
|
||||
mplew.writeShort(guild.getLogo());
|
||||
mplew.write(guild.getLogoColor());
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a packet spawning a player as a mapobject to other clients.
|
||||
*
|
||||
@@ -3384,7 +3408,7 @@ public class MaplePacketCreator {
|
||||
public static byte[] showBuffeffect(int cid, int skillid, int effectid) {
|
||||
return showBuffeffect(cid, skillid, effectid, (byte) 3);
|
||||
}
|
||||
|
||||
|
||||
public static byte[] showBuffeffect(int cid, int skillid, int effectid, byte direction) {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.SHOW_FOREIGN_EFFECT.getValue());
|
||||
@@ -3396,6 +3420,19 @@ public class MaplePacketCreator {
|
||||
mplew.writeLong(0);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] showBuffeffect(int cid, int skillid, int skilllv, int effectid, byte direction) { // updated packet structure found thanks to Rien dev team
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.SHOW_FOREIGN_EFFECT.getValue());
|
||||
mplew.writeInt(cid);
|
||||
mplew.write(effectid);
|
||||
mplew.writeInt(skillid);
|
||||
mplew.write(0);
|
||||
mplew.write(skilllv);
|
||||
mplew.write(direction);
|
||||
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] showOwnBuffEffect(int skillid, int effectid) {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
@@ -4597,13 +4634,21 @@ public class MaplePacketCreator {
|
||||
mplew.writeInt(skillId);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] showMagnet(int mobid, byte success) { // Monster Magnet
|
||||
|
||||
public static byte[] catchMonster(int mobOid, byte success) { // updated packet structure found thanks to Rien dev team
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.SHOW_MAGNET.getValue());
|
||||
mplew.writeInt(mobid);
|
||||
mplew.writeShort(SendOpcode.CATCH_MONSTER.getValue());
|
||||
mplew.writeInt(mobOid);
|
||||
mplew.write(success);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] catchMonster(int mobOid, int itemid, byte success) {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.CATCH_MONSTER_WITH_ITEM.getValue());
|
||||
mplew.writeInt(mobOid);
|
||||
mplew.writeInt(itemid);
|
||||
mplew.write(success);
|
||||
mplew.skip(10); //Mmmk
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
@@ -4932,15 +4977,6 @@ public class MaplePacketCreator {
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] catchMonster(int monsobid, int itemid, byte success) {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.CATCH_MONSTER.getValue());
|
||||
mplew.writeInt(monsobid);
|
||||
mplew.writeInt(itemid);
|
||||
mplew.write(success);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] catchMessage(int message) { // not done, I guess
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.BRIDLE_MOB_CATCH_FAIL.getValue());
|
||||
@@ -5599,7 +5635,7 @@ public class MaplePacketCreator {
|
||||
}
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
|
||||
public static byte[] hiredMerchantOwnerLeave() {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.PLAYER_INTERACTION.getValue());
|
||||
@@ -5607,6 +5643,14 @@ public class MaplePacketCreator {
|
||||
mplew.write(0);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] hiredMerchantOwnerMaintenanceLeave() {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.PLAYER_INTERACTION.getValue());
|
||||
mplew.write(PlayerInteractionHandler.Action.REAL_CLOSE_MERCHANT.getCode());
|
||||
mplew.write(5);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
public static byte[] hiredMerchantMaintenanceMessage() {
|
||||
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(5);
|
||||
|
||||
Reference in New Issue
Block a user