Guild & Alliances Patches
As reported by J0k3r613, patched guild system not recognizing properly the guild leader just after creation. Patched many more issues related to guilds and alliances.
This commit is contained in:
@@ -3922,7 +3922,7 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
ret.dojoPoints = rs.getInt("dojoPoints");
|
||||
ret.dojoStage = rs.getInt("lastDojoStage");
|
||||
ret.dataString = rs.getString("dataString");
|
||||
if (ret.guildid > 0) ret.mgc = new MapleGuildCharacter(ret);
|
||||
ret.mgc = new MapleGuildCharacter(ret);
|
||||
int buddyCapacity = rs.getInt("buddyCapacity");
|
||||
ret.buddylist = new BuddyList(buddyCapacity);
|
||||
ret.getInventory(MapleInventoryType.EQUIP).setSlotLimit(rs.getByte("equipslots"));
|
||||
@@ -5295,17 +5295,6 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
|
||||
public void setGuildId(int _id) {
|
||||
guildid = _id;
|
||||
if (guildid > 0) {
|
||||
if (mgc == null) {
|
||||
mgc = new MapleGuildCharacter(this);
|
||||
} else {
|
||||
mgc.setGuildId(guildid);
|
||||
}
|
||||
} else {
|
||||
mgc = null;
|
||||
guildRank = 5;
|
||||
allianceRank = 5;
|
||||
}
|
||||
}
|
||||
|
||||
public void setGuildRank(int _rank) {
|
||||
|
||||
Reference in New Issue
Block a user