2060009.js.svn-base
来自「冒险岛私服Java版服务端(Odinms)源代码。学习JAVA开发的朋友」· SVN-BASE 代码 · 共 63 行
SVN-BASE
63 行
/*
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 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/>.
*/
/* Dolphin in Aquaroad - Monster Riding Teacher
*/
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple ("I drive the dolphin Taxi! What do you want to do today\r\n#L0#Learn to ride a Pig#l\r\n#L1#Go to Herb Town#l");
} else if (status == 1) {
if (selection == 0) {
if(cm.getLevel() >= 70) {
cm.teachSkill(1004, 1, 0);
cm.sendOk("You are ready to get on the Pig.");
} else {
cm.sendOk("You are too weak. Please come back when you've grown stronger.");
}
cm.dispose();
} else {
cm.sendNext ("Alright, see you next time. Take care.");
}
} else if (status == 2) {
cm.warp(251000100, 0);
cm.dispose();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?