http://shockbabyms.blogspot.com/
这个Maple Story
花了很长的时间来制作
为了这个
我花了一堆时间在 MySQL 上
花了一堆时间学习 JavaScript
那些可恶的Script快要把我搞疯了.......
请问你看得懂下面的东西吗?
importPackage(net.sf.odinms.client);
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 2 && mode == 0) {
cm.sendOk("Rawr!?");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("I am John and if you have all of the materials I will make you a White Jesus Scroll!!! You will need #b5 Pieces of Scroll#k, #bHoly Water#k, and #b10 Mill Mesos#k. ");
}
else if (status == 1) {
if ((cm.haveItem(4001136, 5)) && (cm.haveItem(2050003)) && (cm.getMeso() >= 10000000)) {
cm.sendYesNo("It seems like you have the required materials, do you want me to make a #bWhite Scroll#k for you?");
}
else if (!cm.haveItem(4001136, 5)) {
cm.sendOk("You dont have the required items.");
cm.dispose();
}
else if (!cm.haveItem(2050003)) {
cm.sendOk("You dont have the required items.");
cm.dispose();
}
else if (!cm.getMeso() <= 10000000) {
cm.sendOk("You dont have the required items.");
cm.dispose();
}
}
else if (status == 2) {
cm.gainMeso(-10000000);
cm.gainItem(4001136, -5);
cm.gainItem(2050003, -1);
cm.gainItem(2340000, 1);
cm.dispose();
}
}
}
调整整个 Server 就是要学这些...
我看到头都快爆了...
~~
skip to main |
skip to sidebar
一个属于我自己的地带 我自己的故事 我身边的故事 一切一切关于自己和周遭的故事
Tuesday, February 17, 2009
Subscribe to:
Post Comments (Atom)
0 评论:
Post a Comment