[Release] Tombstone- Event NPC
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:
Code:
The current event is: NONE
Edit the "NONE" To the type of event
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 <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/>.
*/
/* 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
Re: [Release] Tombstone- Event NPC
wtf is this release if its for v55
Re: [Release] Tombstone- Event NPC
LOL, I thnk people knows how to do this. but nice go .
Re: [Release] Tombstone- Event NPC
Quote:
Originally Posted by
Kars
wtf is this release if its for v55
O.o Some people still use v 55 T_T But it might work for v 60 and 61 also. I didint check. Can someone check for me?
Re: [Release] Tombstone- Event NPC
Quote:
Originally Posted by
KidFlow
LOL, I thnk people knows how to do this. but nice go .
Thanks. This is my first NPC so i know its not that "Pro"
Re: [Release] Tombstone- Event NPC
wtf... if u have 0 mesos or less it sais u dont have a party of 2....
makes no sense.. o.0
Re: [Release] Tombstone- Event NPC
Good job. but next time do not double post. Use the multi qoute buttons next time.
Re: [Release] Tombstone- Event NPC
Quote:
Originally Posted by
zcikkita
wtf... if u have 0 mesos or less it sais u dont have a party of 2....
makes no sense.. o.0
He he...I was goona make it check if you were in a party of 2 but then i changed it >.< Just ignoir it.
Re: [Release] Tombstone- Event NPC
Nice job for a first NPC :P
Re: [Release] Tombstone- Event NPC
Quote:
Originally Posted by
xbLazE
Nice job for a first NPC :P
Thanks ^^
Re: [Release] Tombstone- Event NPC
Code:
if (cm.getMeso() < 1) {
cm.sendOk("You do not have a party of 2. Tell your party leader to talk to ME")
i really lol at this <.<
if you dont have 1 mesos, it means that u are not in a party of 2? xP
btw, put a ; behind it
Code:
cm.sendOk("You do not have a party of 2. Tell your party leader to talk to ME");
so like that
Re: [Release] Tombstone- Event NPC
Nice job:D
But i think i seen this sumwhere Expect another Npc Jake
Re: [Release] Tombstone- Event NPC
Just a funny thing :D
Npc in lith.
Re: [Release] Tombstone- Event NPC
Quote:
Originally Posted by
kippieeej
Code:
if (cm.getMeso() < 1) {
cm.sendOk("You do not have a party of 2. Tell your party leader to talk to ME")
i really lol at this <.<
if you dont have 1 mesos, it means that u are not in a party of 2? xP
btw, put a ; behind it
Code:
cm.sendOk("You do not have a party of 2. Tell your party leader to talk to ME");
so like that
Lol it doesent effect the script.
Re: [Release] Tombstone- Event NPC