Removed useless popup + 3rd job Cygnus revamp + droplimit command

Removed the Stat Upgrade UI that would popup when leveling up to 15/20/25/30.
Improved 3rd job advancement for Cygnus Knights, now working GMS-like.
Added "droplimit" command. When issued, it will show to the player the current drop count on the map.
This commit is contained in:
ronancpl
2017-12-10 11:11:16 -02:00
parent f698c41f00
commit 1386891182
24 changed files with 614 additions and 57 deletions

View File

@@ -1,8 +1,6 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
Copyleft (L) 2017 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
@@ -24,9 +22,22 @@
Description: Takes you to Tino's Forest
*/
var jobtype = 0;
function enter(pi) {
if(pi.isQuestStarted(20301) || pi.isQuestStarted(20302) || pi.isQuestStarted(20303) || pi.isQuestStarted(20304) || pi.isQuestStarted(20305)) {
pi.warp(108010600, "out00");
var map = pi.getClient().getChannelServer().getMapFactory().getMap(108010600 + (10 * jobtype));
if(map.countPlayers() > 0) {
pi.message("Someone else is already searching the area.");
return false;
}
if(pi.haveItem(4032101 + jobtype, 1)) {
pi.message("You have already challenged the Master of Disguise, report your success to Neinheart.");
return false;
}
pi.warp(108010600 + (10 * jobtype), "out00");
} else {
pi.warp(130010010, "out00");
}

View File

@@ -1,8 +1,6 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
Copyleft (L) 2017 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
@@ -24,33 +22,24 @@
Description: Takes you to Tiv's Forest
*/
importPackage(Packages.server.life);
var jobtype = 1;
function enter(pi) {
if(pi.isQuestStarted(20301) || pi.isQuestStarted(20302) || pi.isQuestStarted(20303) || pi.isQuestStarted(20304) || pi.isQuestStarted(20305)) {
var map = pi.getClient().getChannelServer().getMapFactory().getMap(108010610);
var map = pi.getClient().getChannelServer().getMapFactory().getMap(108010600 + (10 * jobtype));
if(map.countPlayers() > 0) {
pi.message("Someone else is already challenging the Master of Disguise.");
pi.message("Someone else is already searching the area.");
return false;
}
if(pi.haveItem(4032101, 1)) {
if(pi.haveItem(4032101 + jobtype, 1)) {
pi.message("You have already challenged the Master of Disguise, report your success to Neinheart.");
return false;
}
spawnMob(3345, -452, 9001009, map);
pi.warp(108010610, "out00");
pi.warp(108010600 + (10 * jobtype), "out00");
} else {
pi.warp(130010020, "out00");
}
return true;
}
function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null)
return;
var mob = MapleLifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new java.awt.Point(x, y));
}

View File

@@ -1,8 +1,6 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
Copyleft (L) 2017 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
@@ -24,11 +22,24 @@
Description: Takes you to Timu's Forest
*/
var jobtype = 2;
function enter(pi) {
if(pi.isQuestStarted(20301) || pi.isQuestStarted(20302) || pi.isQuestStarted(20303) || pi.isQuestStarted(20304) || pi.isQuestStarted(20305)) {
pi.warp(108010620, "out00");
var map = pi.getClient().getChannelServer().getMapFactory().getMap(108010600 + (10 * jobtype));
if(map.countPlayers() > 0) {
pi.message("Someone else is already searching the area.");
return false;
}
if(pi.haveItem(4032101 + jobtype, 1)) {
pi.message("You have already challenged the Master of Disguise, report your success to Neinheart.");
return false;
}
pi.warp(108010600 + (10 * jobtype), "out00");
} else {
pi.warp(130010110, "out00");
}
return true;
}
}

View File

@@ -1,8 +1,6 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
Copyleft (L) 2017 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
@@ -24,11 +22,24 @@
Description: Takes you to Timu's Forest
*/
var jobtype = 3;
function enter(pi) {
if(pi.isQuestStarted(20301) || pi.isQuestStarted(20302) || pi.isQuestStarted(20303) || pi.isQuestStarted(20304) || pi.isQuestStarted(20305)) {
pi.warp(108010630, "out00");
var map = pi.getClient().getChannelServer().getMapFactory().getMap(108010600 + (10 * jobtype));
if(map.countPlayers() > 0) {
pi.message("Someone else is already searching the area.");
return false;
}
if(pi.haveItem(4032101 + jobtype, 1)) {
pi.message("You have already challenged the Master of Disguise, report your success to Neinheart.");
return false;
}
pi.warp(108010600 + (10 * jobtype), "out00");
} else {
pi.warp(130010120, "out00");
}
return true;
}
}

View File

@@ -1,8 +1,6 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
Copyleft (L) 2017 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
@@ -24,7 +22,24 @@
Description: Takes you to Entrance to Drill Hall
*/
var jobtype = 4;
function enter(pi) {
pi.warp(130020000, "east00");
if(pi.isQuestStarted(20301) || pi.isQuestStarted(20302) || pi.isQuestStarted(20303) || pi.isQuestStarted(20304) || pi.isQuestStarted(20305)) {
var map = pi.getClient().getChannelServer().getMapFactory().getMap(108010600 + (10 * jobtype));
if(map.countPlayers() > 0) {
pi.message("Someone else is already searching the area.");
return false;
}
if(pi.haveItem(4032101 + jobtype, 1)) {
pi.message("You have already challenged the Master of Disguise, report your success to Neinheart.");
return false;
}
pi.warp(108010600 + (10 * jobtype), "east00");
} else {
pi.warp(130020000, "east00");
}
return true;
}