- Joined
- Jul 16, 2008
- Messages
- 411
- Reaction score
- 0
What this does?: This is a NPC that can warp you to a event map (FM 22)
What you need?: V 55 And you need to remove the FM 22 portal
How to use this?:
Step 1: Use !notice to announce that there is a event and that you have to talk to the tombstone
Step 2: Open up the 2041024.js and edit where it says:
Edit the "NONE" To the type of event
Step 3: Warp to FM 22 And Host the event!!!
Script:
Credits to me
What you need?: V 55 And you need to remove the FM 22 portal
How to use this?:
Step 1: Use !notice to announce that there is a event and that you have to talk to the tombstone
Step 2: Open up the 2041024.js and edit where it says:
Code:
The current event is: [COLOR="Red"]NONE[/COLOR]
Step 3: Warp to FM 22 And Host the event!!!
Script:
Code:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <[email protected]>
Matthias Butz <[email protected]>
Jan Christian Meyer <[email protected]>
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/>.
*/
/* Pison
Warp NPC to Florina Beach (110000000)
located in Lith Harbor (104000000)
*/
importPackage(net.sf.odinms.server.maps);
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("OK, see you next time.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("I can take you to the event room");
} else if (status == 1) {
cm.sendNextPrev("Do you want to go to the event room?")
} else if (status == 2) {
if (cm.getMeso() < 1) {
cm.sendOk("If you dont have 1 meso you are not worthy of joining the event! Gtfo noob T_T")
cm.dispose();
} else {
cm.sendYesNo("The current event is: NONE. Would you still like to go?");
}
} else if (status == 3) {
cm.gainMeso(-1);
cm.getChar().saveLocation(SavedLocationType.FLORINA);
cm.warp(910000022, 9);
cm.dispose();
}
}
}
Credits to me
Last edited: