CPQ tidyup patch + Guild Creation matcher + Solution to Login Accid=0
Adjusted AP gains, to get it to work following the AP Reset check method. Fixed usage of inexistent itemids on CPQ and fishing. Fixed one-of-a-kind items being lost in player trades due to missing inventory checks. Implemented matching system for the guild creation phase. All players intending to join the new guild must be on the Guild Headquartes and accept the creation of the guild. Fixed changing jobs not properly updating info on the party tab. Fixed double tooltip information on CPQ actions UI. Fixed CPQ not disbanding after a player leaves the party/instance. Fixed checks for "in-progress" CPQ instances. Fixed changing maps on CPQ not leading players back to the starting battlefield. Reviewed login system, now preventing non-local IP connecting on local server and local IP on non-local server. Reviewed login system, now cherrypicking sessions in transition state when trying to disconnect them due to a failed login (avoiding possible mishaps due to duplicate sessions of a same account). Adjusted PiratePQ stage 2, now mobs respawn rather than making party leader request for new waves. Adjusted Prime Minister, its spawn is no longer related to starting the quest. It should also allow party fights. Fixed "forcevac" command not properly applying, rather sending to inventory, "consume-on-pickup" items. Fixed (probably) accId = 0 issue on login, that was occurring due to client accountid's being set to 0 a while before being checked once again on finishLogin(). Fixed an issue with extended time on CPQ not properly showing the end-match's visual effect.
This commit is contained in:
@@ -7,65 +7,65 @@ import client.MapleCharacter;
|
||||
* @author Drago - Dragohe4rt
|
||||
*/
|
||||
public class LanguageConstants {
|
||||
// Portugues
|
||||
public static String CPQAzul;
|
||||
public static String CPQErro;
|
||||
public static String CPQEntrada;
|
||||
public static String CPQEscolha;
|
||||
public static String CPQVermelho;
|
||||
|
||||
public static String CPQBlue;
|
||||
public static String CPQError;
|
||||
public static String CPQEntry;
|
||||
public static String CPQFindError;
|
||||
public static String CPQRed;
|
||||
public static String CPQPlayerExit;
|
||||
public static String CPQEntradaLobby;
|
||||
public static String CPQInicioEscolha;
|
||||
public static String CPQTempoExtendido;
|
||||
public static String CPQLiderNaoEncontrado;
|
||||
public static String CPQInicioEscolhaEmEscolha;
|
||||
public static String CPQInicioEscolhaEnviada;
|
||||
public static String CPQEntryLobby;
|
||||
public static String CPQPickRoom;
|
||||
public static String CPQExtendTime;
|
||||
public static String CPQLeaderNotFound;
|
||||
public static String CPQChallengeRoomAnswer;
|
||||
public static String CPQChallengeRoomSent;
|
||||
|
||||
public static LanguageConstants Linguas(MapleCharacter chr) {
|
||||
if (chr.getLingua() == 0) {
|
||||
LanguageConstants.CPQAzul = "Maple Azul";
|
||||
LanguageConstants.CPQVermelho = "Maple Vermelho";
|
||||
LanguageConstants.CPQTempoExtendido = "O tempo foi estendido.";
|
||||
public static LanguageConstants Languages(MapleCharacter chr) {
|
||||
if (chr.getLanguage() == 0) {
|
||||
LanguageConstants.CPQBlue = "Maple Azul";
|
||||
LanguageConstants.CPQRed = "Maple Vermelho";
|
||||
LanguageConstants.CPQExtendTime = "O tempo foi estendido.";
|
||||
LanguageConstants.CPQPlayerExit = " deixou o Carnaval de Monstros.";
|
||||
LanguageConstants.CPQErro = "Ocorreu um problema. Favor recriar a sala.";
|
||||
LanguageConstants.CPQLiderNaoEncontrado = "Nao foi possivel encontrar o Lider.";
|
||||
LanguageConstants.CPQInicioEscolha = "Inscreva-se no Festival de Monstros!\\r\\n";
|
||||
LanguageConstants.CPQInicioEscolhaEmEscolha = "O grupo esta respondendo um desafio no momento.";
|
||||
LanguageConstants.CPQInicioEscolhaEnviada = "Um desafio foi enviado para o grupo na sala. Aguarde um momento.";
|
||||
LanguageConstants.CPQEscolha = "Nao foi possivel encontrar um grupo nesta sala.\\r\\nProvavelmente o grupo foi desfeito dentro da sala!";
|
||||
LanguageConstants.CPQEntradaLobby = "Agora voce ira receber desafios de outros grupos. Se voce nao aceitar um desafio em 3 minutos, voce sera levado para fora.";
|
||||
LanguageConstants.CPQEntrada = "Voce pode selecionar \"Invocar Monstros\", \"Habilidade\", ou \"Protetor\" como sua tatica durante o Carnaval dos Monstros. Use Tab a F1~F12 para acesso rapido!";
|
||||
LanguageConstants.CPQError = "Ocorreu um problema. Favor recriar a sala.";
|
||||
LanguageConstants.CPQLeaderNotFound = "Nao foi possivel encontrar o Lider.";
|
||||
LanguageConstants.CPQPickRoom = "Inscreva-se no Festival de Monstros!\r\n";
|
||||
LanguageConstants.CPQChallengeRoomAnswer = "O grupo esta respondendo um desafio no momento.";
|
||||
LanguageConstants.CPQChallengeRoomSent = "Um desafio foi enviado para o grupo na sala. Aguarde um momento.";
|
||||
LanguageConstants.CPQFindError = "Nao foi possivel encontrar um grupo nesta sala.\r\nProvavelmente o grupo foi desfeito dentro da sala!";
|
||||
LanguageConstants.CPQEntryLobby = "Agora voce ira receber desafios de outros grupos. Se voce nao aceitar um desafio em 3 minutos, voce sera levado para fora.";
|
||||
LanguageConstants.CPQEntry = "Voce pode selecionar \"Invocar Monstros\", \"Habilidade\", ou \"Protetor\" como sua tatica durante o Carnaval dos Monstros. Use Tab a F1~F12 para acesso rapido!";
|
||||
|
||||
|
||||
|
||||
} else if (chr.getLingua() == 1) {
|
||||
LanguageConstants.CPQAzul = "Maple Azul";
|
||||
LanguageConstants.CPQVermelho = "Maple Rojo";
|
||||
LanguageConstants.CPQTempoExtendido = "El tiempo se ha ampliado.";
|
||||
} else if (chr.getLanguage() == 1) {
|
||||
LanguageConstants.CPQBlue = "Maple Azul";
|
||||
LanguageConstants.CPQRed = "Maple Rojo";
|
||||
LanguageConstants.CPQExtendTime = "El tiempo se ha ampliado.";
|
||||
LanguageConstants.CPQPlayerExit = " ha dejado el Carnaval de Monstruos.";
|
||||
LanguageConstants.CPQLiderNaoEncontrado = "No se pudo encontrar el Lider.";
|
||||
LanguageConstants.CPQInicioEscolha = "!Inscribete en el Festival de Monstruos!\\r\\n";
|
||||
LanguageConstants.CPQErro = "Se ha producido un problema. Por favor, volver a crear una sala.";
|
||||
LanguageConstants.CPQInicioEscolhaEmEscolha = "El grupo esta respondiendo un desafio en el momento.";
|
||||
LanguageConstants.CPQInicioEscolhaEnviada = "Un desafio fue enviado al grupo en la sala. Espera un momento.";
|
||||
LanguageConstants.CPQEscolha = "No se pudo encontrar un grupo en esta sala.\\r\\nProbablemente el grupo fue deshecho dentro de la sala!";
|
||||
LanguageConstants.CPQEntradaLobby = "Ahora usted recibira los retos de otros grupos. Si usted no acepta un desafio en 3 minutos, usted sera llevado hacia fuera.";
|
||||
LanguageConstants.CPQEntrada = "Usted puede seleccionar \"Invocar Monstruos \", \"Habilidad \", o \"Protector \" como su tactica durante el Carnaval de los Monstruos. Utilice Tab y F1 ~ F12 para acceso rapido!";
|
||||
LanguageConstants.CPQLeaderNotFound = "No se pudo encontrar el Lider.";
|
||||
LanguageConstants.CPQPickRoom = "!Inscribete en el Festival de Monstruos!\r\n";
|
||||
LanguageConstants.CPQError = "Se ha producido un problema. Por favor, volver a crear una sala.";
|
||||
LanguageConstants.CPQChallengeRoomAnswer = "El grupo esta respondiendo un desafio en el momento.";
|
||||
LanguageConstants.CPQChallengeRoomSent = "Un desafio fue enviado al grupo en la sala. Espera un momento.";
|
||||
LanguageConstants.CPQFindError = "No se pudo encontrar un grupo en esta sala.\r\nProbablemente el grupo fue deshecho dentro de la sala!";
|
||||
LanguageConstants.CPQEntryLobby = "Ahora usted recibira los retos de otros grupos. Si usted no acepta un desafio en 3 minutos, usted sera llevado hacia fuera.";
|
||||
LanguageConstants.CPQEntry = "Usted puede seleccionar \"Invocar Monstruos \", \"Habilidad \", o \"Protector \" como su tactica durante el Carnaval de los Monstruos. Utilice Tab y F1 ~ F12 para acceso rapido!";
|
||||
|
||||
|
||||
} else if (chr.getLingua() == 2) {
|
||||
LanguageConstants.CPQAzul = "Maple Blue";
|
||||
LanguageConstants.CPQVermelho = "Maple Red";
|
||||
} else if (chr.getLanguage() == 2) {
|
||||
LanguageConstants.CPQBlue = "Maple Blue";
|
||||
LanguageConstants.CPQRed = "Maple Red";
|
||||
LanguageConstants.CPQPlayerExit = " left the Carnival of Monsters.";
|
||||
LanguageConstants.CPQTempoExtendido = "The time has been extended.";
|
||||
LanguageConstants.CPQLiderNaoEncontrado = "Could not find the Leader.";
|
||||
LanguageConstants.CPQErro = "There was a problem. Please re-create a room.";
|
||||
LanguageConstants.CPQInicioEscolha = "Sign up for the Monster Festival!\\r\\n";
|
||||
LanguageConstants.CPQInicioEscolhaEmEscolha = "The group is currently facing a challenge.";
|
||||
LanguageConstants.CPQInicioEscolhaEnviada = "A challenge has been sent to the group in the room. Please wait a while.";
|
||||
LanguageConstants.CPQEscolha = "We could not find a group in this room.\\r\\nProbably the group was scrapped inside the room!";
|
||||
LanguageConstants.CPQEntradaLobby = "You will now receive challenges from other groups. If you do not accept a challenge within 3 minutes, you will be taken out.";
|
||||
LanguageConstants.CPQEntrada = "You can select \"Summon Monsters \", \"Ability \", or \"Protector \" as your tactic during the Monster Carnival. Use Tab and F1 ~ F12 for quick access!";
|
||||
LanguageConstants.CPQExtendTime = "The time has been extended.";
|
||||
LanguageConstants.CPQLeaderNotFound = "Could not find the Leader.";
|
||||
LanguageConstants.CPQError = "There was a problem. Please re-create a room.";
|
||||
LanguageConstants.CPQPickRoom = "Sign up for the Monster Festival!\r\n";
|
||||
LanguageConstants.CPQChallengeRoomAnswer = "The group is currently facing a challenge.";
|
||||
LanguageConstants.CPQChallengeRoomSent = "A challenge has been sent to the group in the room. Please wait a while.";
|
||||
LanguageConstants.CPQFindError = "We could not find a group in this room.\r\nProbably the group was scrapped inside the room!";
|
||||
LanguageConstants.CPQEntryLobby = "You will now receive challenges from other groups. If you do not accept a challenge within 3 minutes, you will be taken out.";
|
||||
LanguageConstants.CPQEntry = "You can select \"Summon Monsters \", \"Ability \", or \"Protector \" as your tactic during the Monster Carnival. Use Tab and F1 ~ F12 for quick access!";
|
||||
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -28,7 +28,7 @@ public class ServerConstants {
|
||||
public static final long COUPON_INTERVAL = 60 * 60 * 1000; //60 minutes, 3600000.
|
||||
public static final long UPDATE_INTERVAL = 777; //Dictates the frequency on which the "centralized server time" is updated.
|
||||
|
||||
public static final boolean ENABLE_PIC = false; //Pick true/false to enable or disable Pic. Delete character required PIC available.
|
||||
public static final boolean ENABLE_PIC = false; //Pick true/false to enable or disable Pic. Delete character requires PIC available.
|
||||
public static final boolean ENABLE_PIN = false; //Pick true/false to enable or disable Pin.
|
||||
|
||||
public static final int BYPASS_PIC_EXPIRATION = 20; //Enables PIC bypass, which will remain active for that account by that client machine for N minutes. Set 0 to disable.
|
||||
@@ -48,6 +48,7 @@ public class ServerConstants {
|
||||
|
||||
//Ip Configuration
|
||||
public static String HOST;
|
||||
public static boolean LOCALSERVER;
|
||||
|
||||
//Other Configuration
|
||||
public static boolean JAVA_8;
|
||||
@@ -66,6 +67,7 @@ public class ServerConstants {
|
||||
public static final boolean USE_MAXRANGE = true; //Will send and receive packets from all events on a map, rather than those of only view range.
|
||||
public static final boolean USE_MAXRANGE_ECHO_OF_HERO = true;
|
||||
public static final boolean USE_MTS = false;
|
||||
public static final boolean USE_CPQ = true; //Renders the CPQ available or not.
|
||||
public static final boolean USE_AUTOHIDE_GM = false; //When enabled, GMs are automatically hidden when joining. Thanks to Steven Deblois (steven1152).
|
||||
public static final boolean USE_BUYBACK_SYSTEM = true; //Enables the HeavenMS-builtin buyback system, to be used by dead players when clicking the MTS button.
|
||||
public static final boolean USE_FIXED_RATIO_HPMP_UPDATE = true; //Enables the HeavenMS-builtin HPMP update based on the current pool to max pool ratio.
|
||||
@@ -108,6 +110,7 @@ public class ServerConstants {
|
||||
public static final boolean USE_ENABLE_CHAT_LOG = false; //Write in-game chat to log
|
||||
public static final boolean USE_REBIRTH_SYSTEM = false; //Flag to enable/disable rebirth system
|
||||
public static final boolean USE_MAP_OWNERSHIP_SYSTEM = true; //Flag to enable/disable map ownership system
|
||||
public static final boolean USE_FISHING_SYSTEM = true; //Flag to enable/disable fishing system
|
||||
|
||||
//Events/PQs Configuration
|
||||
public static final boolean USE_OLD_GMS_STYLED_PQ_NPCS = true; //Enables PQ NPCs with similar behaviour to old GMS style, that skips info about the PQs and immediately tries to register the party in.
|
||||
@@ -219,6 +222,7 @@ public class ServerConstants {
|
||||
public static final int QUEST_POINT_PER_EVENT_CLEAR = 1; //Each completed event instance awards N quest points, set 0 to disable.
|
||||
|
||||
//Guild Configuration
|
||||
public static final int CREATE_GUILD_MIN_PARTNERS = 6; //Minimum number of members on Guild Headquarters to establish a new guild.
|
||||
public static final int CREATE_GUILD_COST = 1500000;
|
||||
public static final int CHANGE_EMBLEM_COST = 5000000;
|
||||
public static final int EXPAND_GUILD_BASE_COST = 500000;
|
||||
@@ -302,6 +306,7 @@ public class ServerConstants {
|
||||
|
||||
//Server Host
|
||||
ServerConstants.HOST = p.getProperty("HOST");
|
||||
ServerConstants.LOCALSERVER = ServerConstants.HOST.startsWith("127.") || ServerConstants.HOST.startsWith("localhost");
|
||||
|
||||
//Sql Database
|
||||
ServerConstants.DB_URL = p.getProperty("URL");
|
||||
|
||||
Reference in New Issue
Block a user