Improved Delete Character

Improved the Delete Character feature, now aiming to clean all leftovers
of the character from the DB. Only works with the ENABLE_PIC flag
activated.
This commit is contained in:
ronancpl
2017-06-01 21:46:16 -03:00
parent a6ac40a351
commit fee0aa7e39
52 changed files with 352 additions and 93 deletions

View File

@@ -5944,13 +5944,13 @@ public class MaplePacketCreator {
return mplew.getPacket();
}
public static byte[] getGuildAlliances(MapleAlliance alliance, MapleClient c) {
public static byte[] getGuildAlliances(MapleAlliance alliance, int worldId) {
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendOpcode.ALLIANCE_OPERATION.getValue());
mplew.write(0x0D);
mplew.writeInt(alliance.getGuilds().size());
for (Integer guild : alliance.getGuilds()) {
getGuildInfo(mplew, Server.getInstance().getGuild(guild, c.getWorld(), null));
getGuildInfo(mplew, Server.getInstance().getGuild(guild, worldId, null));
}
return mplew.getPacket();
}
@@ -6018,7 +6018,7 @@ public class MaplePacketCreator {
return mplew.getPacket();
}
public static byte[] removeGuildFromAlliance(MapleAlliance alliance, int expelledGuild, MapleClient c) {
public static byte[] removeGuildFromAlliance(MapleAlliance alliance, int expelledGuild, int worldId) {
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendOpcode.ALLIANCE_OPERATION.getValue());
mplew.write(0x10);
@@ -6034,7 +6034,7 @@ public class MaplePacketCreator {
mplew.writeInt(alliance.getCapacity());
mplew.writeMapleAsciiString(alliance.getNotice());
mplew.writeInt(expelledGuild);
getGuildInfo(mplew, Server.getInstance().getGuild(expelledGuild, c.getWorld(), null));
getGuildInfo(mplew, Server.getInstance().getGuild(expelledGuild, worldId, null));
mplew.write(0x01);
return mplew.getPacket();
}