Maplers' Well-known Battlegrounds
Fulfilled merge of Drago's AriantPQ PR #438 into the source! Adjusted MCPQ map limits predicted within battlefield's map info node. Added max number-of-players option when creating a AriantPQ lobby. Added party creation check when trying to create one inside the AriantPQ rooms. Adjusted several AriantPQ mechanics, in order to either improve the existent features or make those that was still unavailable work seamlessly (score update, ariant batlle points).
This commit is contained in:
@@ -1009,25 +1009,38 @@ public class AbstractPlayerInteraction {
|
||||
return (Pyramid) getPlayer().getPartyQuest();
|
||||
}
|
||||
|
||||
public void createExpedition(MapleExpeditionType type) {
|
||||
MapleExpedition exped = new MapleExpedition(getPlayer(), type);
|
||||
getPlayer().getClient().getChannelServer().getExpeditions().add(exped);
|
||||
public boolean createExpedition(MapleExpeditionType type) {
|
||||
return createExpedition(type, false, 0, 0);
|
||||
}
|
||||
|
||||
public boolean createExpedition(MapleExpeditionType type, boolean silent, int minPlayers, int maxPlayers) {
|
||||
MapleExpedition exped = new MapleExpedition(getPlayer(), type, silent, minPlayers, maxPlayers);
|
||||
return getPlayer().getClient().getChannelServer().addExpedition(exped);
|
||||
}
|
||||
|
||||
public void endExpedition(MapleExpedition exped) {
|
||||
exped.dispose(true);
|
||||
getPlayer().getClient().getChannelServer().getExpeditions().remove(exped);
|
||||
getPlayer().getClient().getChannelServer().removeExpedition(exped);
|
||||
}
|
||||
|
||||
public MapleExpedition getExpedition(MapleExpeditionType type) {
|
||||
for (MapleExpedition exped : getPlayer().getClient().getChannelServer().getExpeditions()) {
|
||||
if (exped.getType().equals(type)) {
|
||||
return exped;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return getPlayer().getClient().getChannelServer().getExpedition(type);
|
||||
}
|
||||
|
||||
public String getExpeditionMemberNames(MapleExpeditionType type) {
|
||||
String members = "";
|
||||
MapleExpedition exped = getExpedition(type);
|
||||
for (String memberName : exped.getMembers().values()) {
|
||||
members += "" + memberName + ", ";
|
||||
}
|
||||
return members;
|
||||
}
|
||||
|
||||
public boolean isLeaderExpedition(MapleExpeditionType type) {
|
||||
MapleExpedition exped = getExpedition(type);
|
||||
return exped.isLeader(getPlayer());
|
||||
}
|
||||
|
||||
public long getJailTimeLeft() {
|
||||
return getPlayer().getJailExpirationTimeLeft();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user