- Joined
- Jun 14, 2008
- Messages
- 80
- Reaction score
- 1
/*
Special for
MapleDEV.
PassOver NPC.
@Auther Alpha.
*/
var status = 0;
importPackage(net.sf.odinms.client);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status < 1 && mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hey hey, #h #k. If you've already know, this is the #bPassover#k, and we are holding a quest named 'Pass the Nuts' to collect items. #b\r\n#L0#What's the Passover?#l\r\n#L1#I wanna take the quest.#l\r\n#L2#Iv'e got the Nuts.#l#k");
} else if (status == 1) {
if (selection == 0) { // Explain about the Holyday.
sendNext("PassOver holyday and festival commemorating God sparing the Israelites when he killed the first born of Egypt, and is followed by the seven day Feast of the Unleavened Bread commemorating the Exodus from Egypt and the liberation of the Israelites from slavery.");
status = 1;
} else if (selection == 1) { // Tells what you have to do.
cm.sendNext("Are you ready, #h #..? well if then, I would like you to bring me 15 #bTasty Wallnut#k, and 20 #bGraham Crackers#k. You can get these from Blue Snails, Slimes, Orange Mushrooms, and Green Mushrooms. However, the event will end in the end of the Passover, Good Luck in there..");
cm.dispose();
} else if (selection == 2) { // Checks for the requied items.
if (cm.itemQuantity(4031336) >= 20 && cm.itemQuantity(4031093) >= 15) {
cm.gainEXP(10);
cm.dispose();
} else { // Player doesn't have the requied items.
cm.sendOk("Either you don't have the items, or there is an event error.");
cm.dispose();
return;
}
} else if (status == 2) { // Player made it to the next test.
sendNextPrev("Passover begins on the 15th day of the month of Nisan (equivalent to March and April in Gregorian calendar), the full moon of that month, the first month of the Hebrew calendar's festival year according to the Hebrew Bible.");
} else if (status == 3) { // Player made it to the next test.
sendNextPrev("In the story of the Exodus, the Bible tells that God inflicted ten plagues upon the Egyptians before Pharaoh would release his Israelite slaves, with the tenth plague being the killing of firstborn sons. However, the Israelites were instructed to mark the doorposts of their homes with the blood of a spring lamb, and upon seeing this, the spirit of the Lord passed over these homes, hence the term passover.");
} else if (status == 4) { // Player made it to the next test.
sendNextPrev("That's it, If you want more information, go google it.. I just want you to help me on my quest.");
cm.dispose();
} else {
cm.dispose();
return;
}
}
}
Tested and not working yet,
I hope someone can fix?
SQL :
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 100**** 4031336, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 100**** 4031093, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 210**** 4031336, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 210**** 4031093, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 1210102, 4031336, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 1210102, 4031093, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 1110**** 4031336, 100);
INSERT INTO monsterdrops
(`monsterdropid`, `monsterid`, `itemid`, `chance`)
VALUES
(15125, 1110**** 4031093, 100);