Exp gain & Chaos scroll fix + Diet's MK Overhaul

Fixed issues with negative experience being distributed to characters
when killing a mob, rendering "Exp reset". Fixed chaos scroll behaving
oddly. Refactored debuff expirations to manage one list with registered
debuffs and expire times, thus lifting some load from the TimerManager.
Added concurrency protection on how World deals with parties. Thanks to
the DietStory dev team, fixed some issues with the MK maps.
This commit is contained in:
ronancpl
2017-10-04 02:35:52 -03:00
parent 6445f0b4e4
commit 3a882c7f31
141 changed files with 1719 additions and 524 deletions

View File

@@ -1,5 +1,5 @@
function enter(pi) {
pi.playPortalSound();
pi.warp(106021300, 0);
pi.warp(106021300, 1);
return true;
}

View File

@@ -1,3 +1,23 @@
function enter(pi) {
pi.openNpc(1300013);
var questProgress = pi.getQuestProgress(2330, 3300005) + pi.getQuestProgress(2330, 3300006) + pi.getQuestProgress(2330, 3300007); //3 Yetis
if(questProgress == 3 && !pi.hasItem(4032388) && !pi.isQuestCompleted(2332)){
if(pi.canHold(4032388)){
pi.getPlayer().message("You have aquired a key to the Wedding Hall. King Pepe must have dropped it.")
pi.gainItem(4032388, 1);
}
else{
pi.getPlayer().message("Please make room in your ETC inventory.");
}
}
if(pi.isQuestStarted(2330) && questProgress < 3){
pi.openNpc(1300013);
}
else{
pi.playPortalSound();
pi.warp(106021401, 1);
}
return true;
}

View File

@@ -1,35 +1,48 @@
/*
This file is part of the ZeroFusion MapleStory Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
ZeroFusion organized by "RMZero213" <RMZero213@hotmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var dungeonid = 106021600;
var dungeons = 10;
function enter(pi) {
for(var i = 0; i < dungeons; i++) {
if (pi.getMap(dungeonid + i).getCharactersSize() == 0) {
pi.warp(dungeonid + i, 0);
return true;
}
if(pi.isQuestCompleted(2333) && pi.isQuestStarted(2331) && !pi.hasItem(4001318)){
pi.getPlayer().message("Lost the Royal Seal, eh? Worry not! Kevin's code here to save your hide.");
if(pi.canHold(4001318)){
pi.gainItem(4001318, 1);
}
else{
pi.getPlayer().message("Hey, how do you plan to hold this Seal when your inventory is full?");
}
}
pi.playerMessage(5, "All of the Mini-Dungeons are in use right now, please try again later.");
return false;
}
if(pi.isQuestCompleted(2333)){
pi.playPortalSound();
pi.warp(106021600, 1);
return true;
}
else if(pi.isQuestStarted(2332) && pi.hasItem(4032388)){
if(pi.getPlayer().getParty() != null){
pi.getPlayer().showHint("The next part of the quest is solo only! Must leave party.");
return false;
}
else{
pi.forceCompleteQuest(2332, 1300002);
pi.getPlayer().message("You've found the princess!");
pi.giveCharacterExp(4400 * 1.5, pi.getPlayer());
var pm = pi.getEventManager("MK_PrimeMinister");
pm.setProperty("player", pi.getPlayer().getName());
pm.startInstance(pi.getPlayer());
return true;
}
}
else if(pi.isQuestStarted(2333) || (pi.isQuestCompleted(2332) && !pi.isQuestStarted(2333))){
if(pi.getPlayer.getParty() != null){
pi.getPlayer().showHint("The next part of the quest is solo only! Must leave party.");
return false;
}
else{
var pm = pi.getEventManager("MK_PrimeMinister");
pm.setProperty("player", pi.getPlayer().getName());
pm.startInstance(pi.getPlayer());
return true;
}
}
else{
pi.getPlayer().message("The door seems to be locked. Perhaps I can find a key to open it...");
return false;
}
}

22
scripts/portal/end_cow.js Normal file
View File

@@ -0,0 +1,22 @@
/*
By: Kevin
Map: Hidden Chamber - The Nautilus - Stable (912000100)
Quest: Find Fresh Milk (2180)
*/
function enter(pi){
if (pi.isQuestStarted(2180) && (pi.hasItem(4031847) || pi.hasItem(4031848) || pi.hasItem(4031849) || pi.hasItem(4031850))){
if (pi.hasItem(4031850)){
pi.warp(120000103);
return true;
}
else{
pi.getPlayer().dropMessage(5, "Your milk jug is not full...");
return false;
}
}
else{
pi.warp(120000103);
return true;
}
}

View File

@@ -0,0 +1,16 @@
function enter(pi) {
if(!pi.isQuestStarted(2335) || (pi.isQuestStarted(2335) && !pi.hasItem(4032405))){
pi.getPlayer().message("The door is locked securely. I will need a key if I want to go in there.");
return false;
}
if(pi.isQuestStarted(2335) && pi.hasItem(4032405)){
pi.forceCompleteQuest(2335, 1300002);
pi.giveCharacterExp(5000 * 1.5, pi.getPlayer());
pi.gainItem(4032405, -1);
}
pi.playPortalSound();
pi.warp(106021001, 1);
return true;
}

View File

@@ -0,0 +1,9 @@
function enter(pi) {
var eim = pi.getEventInstance();
eim.stopEventTimer();
eim.dispose();
pi.playPortalSound();
pi.warp(106021400, 2);
return true;
}