GuildPQ Queue system + revamped Warp mechanic
Added a queue system for waiting guilds outside the GPQ area. Changed the way players are transported through maps on non-portal passing cases: if not defined, a spawn point is chosen randomly for each player.
This commit is contained in:
@@ -1124,7 +1124,14 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
}
|
||||
|
||||
public void changeMap(int map) {
|
||||
changeMap(map, 0);
|
||||
MapleMap warpMap;
|
||||
if (getEventInstance() != null) {
|
||||
warpMap = getEventInstance().getMapInstance(map);
|
||||
} else {
|
||||
warpMap = client.getChannelServer().getMapFactory().getMap(map);
|
||||
}
|
||||
|
||||
changeMap(warpMap, warpMap.getRandomPlayerSpawnpoint());
|
||||
}
|
||||
|
||||
public void changeMap(int map, int portal) {
|
||||
@@ -3343,6 +3350,10 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
public boolean isPartyLeader() {
|
||||
return party.getLeaderId() == getId();
|
||||
}
|
||||
|
||||
public boolean isGuildLeader() { // true on guild master or jr. master
|
||||
return guildid > 0 && guildRank < 3;
|
||||
}
|
||||
|
||||
public void leaveMap() {
|
||||
controlled.clear();
|
||||
|
||||
Reference in New Issue
Block a user