GMS-like Wedding + Scissors of Karma + Maple Life + Buyback

Properly developed the Marriage feature in the source.
Added TRAVEL_RATE server flag, a modifier for the travel frequency rate.
Corrected stance for players in 3rd party view when entering a map to work similarly as GMS.
Fixed mobs spamming skills incoherently.
Added code support for old GMS-like PQ NPCs, where party leaders just need to click once to start a new PQ.
Implemented podium system for the Hall of Fame PlayerNPCs.
Improved character load-out system, now using way less queries to the DB in the process.
Fixed birthday field for accounts not being read correctly.
Further implemented the incomplete yet-existing Scissors of Karma mechanic.
Fixed Duey not propagating item flags when packaging an item.
Added a custom buyback system.
Refactored the character creation system, now offering support for Maple Life.
Fixed some issues with the PlayerNPC positioning system.
Added server flag allowing AP assignment for novices (beginners under level 11).
Fixed Strategy Time (GPQ) announcement being sent twice to guilds in certain cases.
Tweaked mount EXP system now awarding it accordingly with the amount of tiredness healed.
Removed the randomness aspect of closeness gain when feeding the pet, now acting accordingly with amount of fullness gained.
Fixed an exploit with Arwen script.
Fixed travel-back from Florina forcefully sending players to Lith Harbor in certain situations.
Thoroughly reviewed job skill questlines for Explorers and Aran.
Localhost edit: removed MTS block in certain maps (useful for the buyback system).
Localhost edit: removed party blocks for novices.
Localhost edit: removed AP assigning block for novices.
Localhost edit: removed speed cap.
Localhost edit: removed Maker block popping up when inputting ATK gems on non-weapons.
This commit is contained in:
ronancpl
2018-06-05 02:40:53 -03:00
230 changed files with 11510 additions and 3591 deletions

View File

@@ -29,17 +29,74 @@
**/
var status;
function start() {
if (cm.haveItem(4000313)) {
cm.sendOk("You are a guest. Please continue with the wedding. I only warp out people who are here by accident.");
cm.dispose();
} else
cm.sendNext("I warp people out. If you are the newly wed don't click next or you will not be able to collect your prize at the end.");
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode > 1)
cm.warp(680000000);
cm.dispose();
}
function action(mode, type, selection) {
if (mode == -1 || mode == 0) {
cm.dispose();
return;
} else if (mode == 1) {
status++;
} else {
status--;
}
var eim = cm.getEventInstance();
if(eim == null) {
cm.warp(680000000,0);
cm.dispose();
return;
}
var isMarrying = (cm.getPlayer().getId() == eim.getIntProperty("groomId") || cm.getPlayer().getId() == eim.getIntProperty("brideId"));
switch (status) {
case 0:
if(cm.getMapId() == 680000300) {
cm.sendYesNo("Are you sure you want to #rquit the stage#k and head back to #bAmoria#k? You will be #rskipping the bonus stages#k that way.");
} else {
var hasEngagement = false;
for (var x = 4031357; x <= 4031364; x++) {
if (cm.haveItem(x, 1)) {
hasEngagement = true;
break;
}
}
if (cm.haveItem(4000313) && isMarrying) {
if(eim.getIntProperty("weddingStage") == 3) {
cm.sendOk("You guys totally rocked the stage!!! Go go, talk to #b#p9201007##k to start the afterparty.");
cm.dispose();
} else if(hasEngagement) {
cm.sendOk("Please continue rocking on the stage, you are our superstars today!");
cm.dispose();
} else {
cm.sendOk("Oh, hey, where are the credentials for the this so-lauded party? Oh man, we can't continue at this rate now... Sorry, the party is over.");
}
} else {
if(eim.getIntProperty("weddingStage") == 3) {
if(!isMarrying) {
cm.sendYesNo("You guys didn't miss them right? Our superstars #rworked so good together#k, and soon #bthey will start the afterparty#k. Are you really going to #rdrop out of the show#k and return to #bAmoria#k?");
} else {
cm.sendOk("You guys totally rocked the stage!!! Go go, talk to #b#p9201007##k to start the afterparty.");
cm.dispose();
}
} else {
cm.sendYesNo("Are you sure you want to #rquit the stage#k and head to #bAmoria#k? You will be #rskipping the bonus stages#k, fam.");
}
}
}
break;
case 1:
cm.warp(680000000,0);
cm.dispose();
break;
}
}