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:
ronancpl
2019-03-26 16:28:41 -03:00
parent 3bdf8cb2be
commit 83266508af
95 changed files with 2980 additions and 1420 deletions

View File

@@ -1,6 +1,13 @@
var cpqMinLvl = 30;
var cpqMaxLvl = 255;
var cpqMinAmt = 0;
/**
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Drago (MapleStorySA)
2.0 - Second Version by Jayd - translated CPQ contents to English
---------------------------------------------------------------------------------------------------
**/
var cpqMinLvl = 51;
var cpqMaxLvl = 69;
var cpqMinAmt = 2;
var cpqMaxAmt = 6;
function start() {
@@ -23,10 +30,10 @@ function action(mode, type, selection) {
if (status == 0) {
if (cm.getParty() == null) {
status = 10;
cm.sendOk("#e<> necess<73>rio criar um grupo antes de come<6D>ar o Festival de Monstros!#k");
cm.sendOk("You need to create a party before you can participate in Monster Carnival!");
} else if (!cm.isLeader()) {
status = 10;
cm.sendOk("Se voc<6F> quer come<6D>ar o Festival, avise o #bl<EFBFBD>der do grupo#k para falar comigo.");
cm.sendOk("If you want to start the battle, let the #bleader#k come and speak to me.");
} else {
var leaderMapid = cm.getMapId();
var party = cm.getParty().getMembers();
@@ -45,15 +52,18 @@ function action(mode, type, selection) {
if (party >= 1) {
status = 10;
cm.sendOk("Voc<EFBFBD> n<>o tem n<>mero suficiente de pessoas em seu grupo. Voc<6F> precisa de um grupo com #b" + cpqMinAmt + "#k - #r" + cpqMaxAmt + "#k membros e eles devem estar no mapa com voc<6F>.");
cm.sendOk("You do not have enough people in your party. You need a party with #b" + cpqMinAmt + "#k - #r" + cpqMaxAmt + "#k members and they should be on the map with you.");
} else if (lvlOk != inMap) {
status = 10;
cm.sendOk("Certifique se todos em seu grupo est<73>o dentre os n<>veis corretos (" + cpqMinLvl + "~" + cpqMaxLvl + ")!");
cm.sendOk("Make sure everyone in your party is among the correct levels (" + cpqMinLvl + "~" + cpqMaxLvl + ")!");
} else if (isOutMap > 0) {
status = 10;
cm.sendOk("Existe algu<67>m do grupo que n<>o esta no mapa!");
cm.sendOk("There are some of the party members that is not on the map!");
} else {
cm.sendCPQMapLists2();
if (!cm.sendCPQMapLists2()) {
cm.sendOk("All Monster Carnival fields are currently in use! Try again later.");
cm.dispose();
}
}
}
} else if (status == 1) {
@@ -62,15 +72,15 @@ function action(mode, type, selection) {
cm.challengeParty2(selection);
cm.dispose();
} else {
cm.sendOk("A sala esta cheia.");
cm.sendOk("The room is currently full.");
cm.dispose();
}
} else {
var party = cm.getParty().getMembers();
if ((selection === 0 || selection === 1 ) && party.size() < 1) {
cm.sendOk("Voc<EFBFBD> precisa de no m<>nimo 2 player para entrar na competi<74><69>o.");
} else if ((selection === 2 ) && party.size() < 1) {
cm.sendOk("Voc<EFBFBD> precisa de no m<>nimo 3 player para entrar na competi<74><69>o.");
if ((selection === 0 || selection === 1 ) && party.size() < (Packages.constants.ServerConstants.USE_ENABLE_SOLO_EXPEDITIONS ? 1 : 2)) {
cm.sendOk("You need at least 2 players to participate in the battle!");
} else if ((selection === 2 ) && party.size() < (Packages.constants.ServerConstants.USE_ENABLE_SOLO_EXPEDITIONS ? 1 : 3)) {
cm.sendOk("You need at least 3 players to participate in the battle!");
} else {
cm.cpqLobby2(selection);
}