Slot Max & Wind Walk fix + reviewed scripted portals
Fixed slotMax function caching up dirtied player data. Fixed many portals not supposed to warp players to "random spawnpoints". Fixed Wind Walk not being cancellable by attacking.
This commit is contained in:
25
scripts/npc/1002006.js
Normal file
25
scripts/npc/1002006.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
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 program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation 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/>.
|
||||
*/
|
||||
function start() {
|
||||
cm.sendNext("Hi, I'm #b#p1002006##k. Nice to meet you.")
|
||||
cm.dispose();
|
||||
}
|
||||
@@ -18,7 +18,7 @@ function action(mode, type, selection) {
|
||||
} else if (status == 1) {
|
||||
cm.sendNextPrev("Go and fulfill your duties as the Dragon Master...", 1);
|
||||
} else if (status == 2) {
|
||||
cm.warp(900090101);
|
||||
cm.warp(900090101, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
function start() {
|
||||
cm.forceCompleteQuest(22011);
|
||||
cm.playerMessage(5, "You have acquired a Dragon Egg.");//actually getInfoMessage
|
||||
cm.warp(900090103);
|
||||
cm.warp(900090103, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
@@ -35,7 +35,7 @@ function action(mode, type, selection){
|
||||
cm.sendOk("The Order of the Altair is a group of elite mercenaries that oversee the world's economy and battle operations. It was founded 40 years ago right after Black Mage was defeated in hopes of forseeing the next possible attack.");
|
||||
cm.dispose();
|
||||
} else if(status == 3){
|
||||
cm.warp(105100300);
|
||||
cm.warp(105100300, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
} else {
|
||||
@@ -44,7 +44,7 @@ function action(mode, type, selection){
|
||||
status++;
|
||||
} else if(status == 2){
|
||||
if(cm.getPlayer().getLevel() > 60 && cm.getPlayer().getClient().getChannel() == BalrogPQ.channel){
|
||||
cm.warp(105100300);
|
||||
cm.warp(105100300, 0);
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.sendOk("You may not battle the balrog when you are below Lv60! \r\n\r\n Or maybe you are not on the right channel.. Try CH" + BalrogPQ.channel + ".");
|
||||
|
||||
@@ -46,7 +46,7 @@ function action(mode, type, selection){
|
||||
else if (status == 2){
|
||||
if (cm.canHold(4031847)){
|
||||
cm.gainItem(4031847, 1);
|
||||
cm.warp(912000100);
|
||||
cm.warp(912000100, 0);
|
||||
}
|
||||
else{
|
||||
cm.sendOk("I can't give you the empty bottle because your inventory is full. Please make some room in your Etc window.");
|
||||
|
||||
@@ -44,7 +44,7 @@ function action(mode, type, selection){
|
||||
}
|
||||
}
|
||||
else if (status == 1){
|
||||
cm.warp(100000006);
|
||||
cm.warp(100000006, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ function action(mode, type, selection) {
|
||||
cm.sendDirectionInfo("Effect/Direction4.img/effect/cannonshooter/flying1/0", 7000, 0, 0, -1, -1);
|
||||
cm.sendDirectionInfo(1, 800);
|
||||
} else if (status == 2) {
|
||||
cm.warp(912060300);
|
||||
cm.warp(912060300, 0);
|
||||
} else if (status == 3) {
|
||||
cm.sendDirectionInfo("Effect/Direction4.img/effect/cannonshooter/balloon/1", 9000, 0, 0, 0, -1);
|
||||
cm.sendDirectionInfo(1, 1500);
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
var menu = new Array("Victoria Island");
|
||||
var method;
|
||||
|
||||
var hasCoupon = false;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
if(cm.haveItem(4032288)) hasCoupon = true;
|
||||
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
@@ -32,20 +36,28 @@ function action(mode, type, selection) {
|
||||
}
|
||||
status++;
|
||||
if (status == 0) {
|
||||
for(var i=0; i < menu.length; i++) {
|
||||
if(!hasCoupon) {
|
||||
for(var i=0; i < menu.length; i++) {
|
||||
var display = "\r\n#L"+i+"##b Victoria Island (1000 mesos)#k";
|
||||
}
|
||||
cm.sendSimple("Eh, Hello...again. Do you want to leave Ereve and go somewhere else? If so, you've come to the right place. I operate a ferry that goes from #bEreve#k to #bVictoria Island#k, I can take you to #bVictoria Island#k if you want... You'll have to pay a fee of #b1000#k Mesos.\r\n"+display);
|
||||
} else {
|
||||
cm.sendYesNo("Hmm, hi there. I see you have been recommended by Neinheart to go to Victoria Island to improve your knightly skills. Well, just this time the ride will be free of charges. Will you embark?");
|
||||
}
|
||||
|
||||
} else if(status == 1) {
|
||||
if(cm.getMeso() < 1000) {
|
||||
if(hasCoupon) {
|
||||
cm.gainItem(4032288, -1);
|
||||
cm.warp(200090031);
|
||||
cm.dispose();
|
||||
} else if(cm.getMeso() < 1000) {
|
||||
cm.sendNext("Hmm... Are you sure you have #b1000#k Mesos? Check your Inventory and make sure you have enough. You must pay the fee or I can't let you get on...");
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.gainMeso(-1000);
|
||||
cm.warp(200090031);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,21 +32,20 @@ function action(mode, type, selection) {
|
||||
}
|
||||
status++;
|
||||
if (status == 0) {
|
||||
for(var i=0; i < menu.length; i++) {
|
||||
var display = "\r\n#L"+i+"##b Ereve (1000 mesos)#k";
|
||||
}
|
||||
cm.sendSimple("This ship will head towards #bEreve#k, an island where you'll find crimson leaves soaking up the sun, the gentle breeze that glides past the stream, and the Empress of Maple Cygnus. If you're interested in joining the Cygnus Knights, Then you should definitly pay a visit here. Are you interested in visiting Ereve?, The Trip will cost you #b1000#k Mesos\r\n"+display);
|
||||
|
||||
} else if(status == 1) {
|
||||
{ if(cm.getMeso() < 1000) {
|
||||
cm.sendNext("Hmm... Are you sure you have #b1000#k Mesos? Check your Inventory and make sure you have enough. You must pay the fee or I can't let you get on...");
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.gainMeso(-1000);
|
||||
cm.warp(200090020);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for(var i=0; i < menu.length; i++) {
|
||||
var display = "\r\n#L"+i+"##b Ereve (1000 mesos)#k";
|
||||
}
|
||||
cm.sendSimple("This ship will head towards #bEreve#k, an island where you'll find crimson leaves soaking up the sun, the gentle breeze that glides past the stream, and the Empress of Maple Cygnus. If you're interested in joining the Cygnus Knights, Then you should definitly pay a visit here. Are you interested in visiting Ereve?, The Trip will cost you #b1000#k Mesos\r\n"+display);
|
||||
|
||||
} else if(status == 1) {
|
||||
if(cm.getMeso() < 1000) {
|
||||
cm.sendNext("Hmm... Are you sure you have #b1000#k Mesos? Check your Inventory and make sure you have enough. You must pay the fee or I can't let you get on...");
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.gainMeso(-1000);
|
||||
cm.warp(200090020);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ function action(mode, type, selection) {
|
||||
if (status == 0 && mode == 1) {
|
||||
cm.sendYesNo("Would you like to exit the drill hall?");
|
||||
} else if(status == 1) {
|
||||
cm.warp(130020000);
|
||||
cm.warp(130020000, 0);
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.dispose();
|
||||
|
||||
@@ -69,7 +69,7 @@ function action(mode, type, selection) {
|
||||
cm.sendNextPrev("I've said too much. It's okay if you don't really understand everything I just told you. You'll get it eventually. For now, #byou should head to town#k. I'll stay by your side and help you until you get there.", 8);
|
||||
} else if (status == 7) {
|
||||
cm.spawnGuide();
|
||||
cm.warp(140090100);
|
||||
cm.warp(140090100, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
if (status == 0)
|
||||
cm.sendYesNo("Would you like to skip the tutorials and head straight to Lith Harbor?");
|
||||
else if (status == 1){
|
||||
cm.warp(104000000);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
else if (status == 1) {
|
||||
cm.warp(104000000, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,7 @@ function start() {
|
||||
cm.sendOk("There is someone currently in this map, come back later.");
|
||||
else {
|
||||
cm.resetMapObjects(921100300);
|
||||
cm.warp(921100300);
|
||||
cm.warp(921100300, 0);
|
||||
}
|
||||
|
||||
cm.dispose();
|
||||
|
||||
@@ -120,7 +120,7 @@ function action(mode, type, selection) {
|
||||
}
|
||||
}
|
||||
else if (status == 2) {
|
||||
cm.warp(280020000);
|
||||
cm.warp(280020000, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
function start(){
|
||||
if(cm.isQuestStarted(6301)) {
|
||||
if (cm.haveItem(4000175))
|
||||
cm.warp(923000000)
|
||||
cm.warp(923000000, 0);
|
||||
else
|
||||
cm.sendOk("In order to open the crack of dimension you will have to posess one piece of Miniature Pianus. Those could be gained by defeating a Pianus.");
|
||||
} else
|
||||
|
||||
@@ -47,7 +47,7 @@ function action(mode, type, selection) {
|
||||
}
|
||||
|
||||
else if(status == 1) {
|
||||
cm.warp(924000001);
|
||||
cm.warp(924000001, 0);
|
||||
cm.sendOk("Have your shield equipped until the end of the quest, or else you will need to start all over again!");
|
||||
|
||||
cm.resetQuestProgress(6180,9300096);
|
||||
|
||||
@@ -55,10 +55,10 @@ function action(mode, type, selection) {
|
||||
}else if(status == 1 && type == 1){
|
||||
cm.sendNext("It seems like you want to start your journey without taking the training program. Then, I will let you move on to the training ground. Be careful~");
|
||||
}else if(status == 1){
|
||||
cm.warp(1);
|
||||
cm.warp(1, 0);
|
||||
dispose();
|
||||
}else{
|
||||
cm.warp(40000);
|
||||
cm.warp(40000, 0);
|
||||
dispose();
|
||||
}
|
||||
}else
|
||||
|
||||
@@ -36,7 +36,7 @@ function action(mode, type, selection) {
|
||||
if (status == 0)
|
||||
cm.sendNext("Then, I will send you out from here. Good job.");
|
||||
else{
|
||||
cm.warp(40000);
|
||||
cm.warp(40000, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
@@ -35,22 +35,23 @@ function action(mode, type, selection) {
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendNext("Bam bam bam bam!! You have won the game from the \r\n#bEVENT#k. Congratulations on making it this far!");
|
||||
} else if (status == 1) {
|
||||
cm.sendNext("You'll be awarded the #bScroll of Secrets#k as the winning prize. On the scroll, it has secret information written in ancient characters.");
|
||||
} else if (status == 2) {
|
||||
cm.sendNext("The Scroll of Secrets can be deciphered by #rChun Ji#k or \r\n#rGeanie#k at Ludibrium. Bring it with you and something good's bound to happen.");
|
||||
} else if (status == 3) {
|
||||
if (cm.canHold(4031019)) {
|
||||
cm.gainItem(4031019);
|
||||
cm.warp(cm.getPlayer().getSavedLocation("EVENT"));
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.sendNext("I think your Etc window is full. Please make room, then talk to me.");
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendNext("Bam bam bam bam!! You have won the game from the \r\n#bEVENT#k. Congratulations on making it this far!");
|
||||
} else if (status == 1) {
|
||||
cm.sendNext("You'll be awarded the #bScroll of Secrets#k as the winning prize. On the scroll, it has secret information written in ancient characters.");
|
||||
} else if (status == 2) {
|
||||
cm.sendNext("The Scroll of Secrets can be deciphered by #rChun Ji#k or \r\n#rGeanie#k at Ludibrium. Bring it with you and something good's bound to happen.");
|
||||
} else if (status == 3) {
|
||||
if (cm.canHold(4031019)) {
|
||||
cm.gainItem(4031019);
|
||||
cm.warp(cm.getPlayer().getSavedLocation("EVENT"));
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.sendNext("I think your Etc window is full. Please make room, then talk to me.");
|
||||
}
|
||||
} else if (status == 4) {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
} else if (status == 4) {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ function action(mode, type, selection) {
|
||||
if (cm.getEvent() != null) {
|
||||
cm.getEvent().addLimit();
|
||||
}
|
||||
cm.warp(109050001);
|
||||
cm.warp(109050001, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ function action(m,t,s) {
|
||||
} else if (status == 2)
|
||||
cm.sendNext("Thank you so much. Please rescue Gaga! Grandpa from the moon will help you.");
|
||||
else if (status == 3) {
|
||||
cm.warp(922240200);
|
||||
cm.warp(922240200, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
} else if (cm.getPlayer().getMapId() == 922240200) {
|
||||
@@ -94,7 +94,7 @@ function action(m,t,s) {
|
||||
cm.dispose();
|
||||
}
|
||||
} else if ((cm.getPlayer().getMapId() >= 922240000 && cm.getPlayer().getMapId() <= 922240019) || (cm.getPlayer().getMapId() >= 922240100 && cm.getPlayer().getMapId() <= 922240119)) {
|
||||
cm.warp(922240200);
|
||||
cm.warp(922240200, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
} else if (m < 1) {
|
||||
|
||||
@@ -90,11 +90,11 @@ function action(mode, type, selection) {
|
||||
break;
|
||||
case 3:
|
||||
if (cm.haveItem(4000313)) {
|
||||
cm.warp(680000210);
|
||||
cm.warp(680000210, 0);
|
||||
cm.sendOk("Enjoy the wedding. Don't drop your Gold Maple Leaf or you won't be able to finish the whole wedding.");
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.sendOk("You do not have a Gold Maple Leaf");
|
||||
cm.sendOk("You do not have a Gold Maple Leaf.");
|
||||
cm.dispose();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -79,7 +79,7 @@ function action(mode, type, selection) {
|
||||
} else if (status == 1) {
|
||||
switch(selection) {
|
||||
case 0:
|
||||
cm.warp(680000300);
|
||||
cm.warp(680000300, 0);
|
||||
cm.sendOk("Enjoy! Cherish your Photos Forever!");
|
||||
cm.dispose();
|
||||
break;
|
||||
|
||||
@@ -27,7 +27,7 @@ function start() {
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode < 1) {
|
||||
cm.sendOk("Goodbye then");
|
||||
cm.sendOk("Goodbye then.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
@@ -37,14 +37,14 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
if (status == 1) {
|
||||
if (selection < 1)
|
||||
cm.warp(680000400);
|
||||
cm.warp(680000400, 0);
|
||||
else if (selection < 2) {
|
||||
if (cm.haveItem(4031217,7))
|
||||
cm.gainItem(4031217, -7);
|
||||
else
|
||||
cm.sendOk("It seems like you don't have 7 Keys. Kill the cakes and candles in the Untamed Heart Hunting Ground to get keys. ");
|
||||
} else if (selection > 1) {
|
||||
cm.warp(680000500);
|
||||
cm.warp(680000500, 0);
|
||||
cm.sendOk("Goodbye. I hope you enjoyed the wedding!");
|
||||
}
|
||||
cm.dispose();
|
||||
|
||||
@@ -54,7 +54,7 @@ function start() {
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode < 1) {
|
||||
cm.sendOk("Goodbye then");
|
||||
cm.sendOk("Goodbye then.");
|
||||
cm.dispose();
|
||||
} else {
|
||||
status++;
|
||||
|
||||
Reference in New Issue
Block a user