Minor tweak on Exp system + Diet's Cygnus quest line

Changed minimum level required to gain EXP of mob from -5 to -20 the mob level (players below that level sees a red-colored font when displaying higher-leveled mob HPbar). Thanks to DietStory dev team, fixed some quests for KoC.
This commit is contained in:
ronancpl
2017-10-05 17:14:05 -03:00
parent 3a882c7f31
commit 6e1442af30
62 changed files with 670 additions and 85 deletions

47
scripts/npc/1032109.js Normal file
View File

@@ -0,0 +1,47 @@
/*
NPC: Corner of the Magic Library
MAP: Hidden Street - Magic Library (910110000)
QUEST: Maybe it's Grendel! (20718)
*/
importPackage(Packages.server.life);
var status;
var mobId = 2220100; //Blue Mushroom
function start(){
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
cm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
cm.sendOk("A mysterious black figure appeared and summoned a lot of angry monsters!");
}
else if(status == 1){
var player = cm.getPlayer();
var map = player.getMap();
for(var i = 0; i < 10; i++)
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new java.awt.Point(117, 183));
for(var i = 0; i < 10; i++)
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new java.awt.Point(4, 183));
for(var i = 0; i < 10; i++)
map.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(mobId), new java.awt.Point(-109, 183));
cm.completeQuest(20718, 1103003);
cm.gainExp(4000 * cm.getPlayer().getExpRate());
cm.dispose();
return;
}
}

32
scripts/npc/1032110.js Normal file
View File

@@ -0,0 +1,32 @@
/*
NPC: Corner of the Magic Library
MAP: Hidden Street - Magic Library (910110000)
QUEST: Maybe it's Grendel! (20718)
*/
var status;
function start(){
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
cm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
cm.sendOk("Nothing remarkable here.");
}
else if(status == 1){
cm.dispose();
return;
}
}

45
scripts/npc/1032111.js Normal file
View File

@@ -0,0 +1,45 @@
/*
NPC: Small Tree Stump
MAP: Victoria Road - Top of the Tree That Grew (101010103)
QUEST: Maybe it's Arwen! (20716)
*/
var status;
function start(){
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
cm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
if(cm.isQuestStarted(20716)){
if(!cm.hasItem(4032142)){
if(cm.canHold(4032142)){
cm.gainItem(4032142, 1);
cm.sendOk("You bottled up some of the clear tree sap. #i4032142#");
}
else
cm.sendOk("Make sure you have a free spot in your ETC inventory.");
}
else
cm.sendOk("A never ending flow of sap is coming from this small tree stump.");
}
else
cm.sendOk("A never ending flow of sap is coming from this small tree stump.");
}
else if(status == 1){
cm.dispose();
return;
}
}

View File

@@ -25,26 +25,22 @@ function action(mode, type, selection){
else
status++;
if(cm.isQuestStarted(20710)){
if(!cm.hasItem(4032136)){
cm.sendNext("You have found a #b#t4032136##k in the trash can! #i4032136#");
if(cm.canHold(4032136)){
cm.gainItem(4032136, 1);
if(status == 0) {
if(cm.isQuestStarted(20710)) {
if(!cm.hasItem(4032136)) {
if(cm.canHold(4032136)) {
cm.gainItem(4032136, 1);
cm.sendNext("You have found a #b#t4032136##k in the trash can! #i4032136#");
} else {
cm.sendOk("#i4032136# Not enough space in your ETC inventory.");
}
} else {
cm.sendOk("Just a trash can sitting there.");
}
else{
cm.sendOk("#i4032136# Not enough space in your ETC inventory.");
}
cm.dispose();
}
else{
} else {
cm.sendOk("Just a trash can sitting there.");
cm.dispose();
}
}
else{
cm.sendOk("Just a trash can sitting there.");
} else if(status == 1){
cm.dispose();
}
}

30
scripts/npc/1104000.js Normal file
View File

@@ -0,0 +1,30 @@
var status;
function start(){
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
cm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
cm.sendNext("What the... you don't belong here!");
}
else if(status == 1){
var puppet = cm.getEventManager("Puppeteer");
puppet.setProperty("player", cm.getPlayer().getName());
puppet.startInstance(cm.getPlayer());
cm.dispose();
return;
}
}

View File

@@ -0,0 +1,28 @@
var status;
function start(){
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
cm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
cm.sendNext("...a black shadowy figure came out and attacked you? How can this take place at #b#p1032001##k's house? This sounds like one big conspiracy here...");
}
else if(status == 1){
cm.sendNextPrev("I'll have to sort this all out in my mind. Talk to me in a bit.");
}
else if(status == 2){
cm.dispose();
}
}

View File

@@ -0,0 +1,40 @@
var status;
function start(){
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection){
if(mode == -1 || (mode == 0 && status == 0)){
cm.dispose();
return;
}
else if(mode == 0)
status--;
else
status++;
if(status == 0){
cm.sendGetText("A suspicious voice pierces through the silence. #bPassword#k!");
}
else if(status == 1){
if(cm.getText() == "Francis is a genius Puppeteer!"){
if(cm.isQuestCompleted(20730) || !cm.isQuestStarted(20730) || (cm.isQuestStarted(20730) && cm.getQuestProgress(20730, 9300285) > 0))
cm.warp(910510000, 1);
else if(cm.isQuestStarted(20730))
cm.warp(910510001, 1);
cm.dispose();
}
else{
cm.sendOk("#rWrong!");
}
}
else if(status == 2){
cm.dispose();
}
}