Question Asker.

Newbie Spellweaver
Joined
Aug 14, 2008
Messages
86
Reaction score
4
Code:
importPackage(net.sf.odinms.client);

var status;
var questions;
var answers;
var correctAnswer;
var questionNum;

function start() {
	status = -1;
	questions = new Array("Which of these items does the Flaming Raccoon NOT drop?","Which NPC is responsible for transporting travellers from Kerning City to Zipangu, and back?","Which of the items sold at the Mushroom Shrine increases your attack power?","Which of these items do the Extras NOT drop?","Which of these items DO NOT exist??","What's the name of the vegetable store owner in Showa Town?","Which of these items DO exist?","What is the name of the strongest boss in the Mushroom Shrine?","Which one of these items has a mis-matched class or level description?","Which of these noodles are NOT being sold by Robo at the Mushroom Shrine?","Which of these NPCs do NOT stand in front of Showa Movie Theater?")
	answers = new Array(new Array("Raccoon Firewood","Solid Horn","Red Brick"),new Array("Peli","Spinel","Poli"),new Array("Takoyaki","Yakisoba","Tempura"),new Array("Extra A's Badge","Extra B's Corset","Extra C's Necklace"),new Array("Frozen Tuna","Fan","Fly Swatter"),new Array("Sami","Kami","Umi"),new Array("Cloud Fox's Tooth","Ghost's Bouquet","Dark Cloud Fox's Tail"),new Array("Black Crow","Blue Mushmom","Himegami"),new Array("Bamboo Spear - Warrior-only Weapon","Pico-Pico Hammer - One-handed Sword","Mystic Cane - Level 51 equip"),new Array("Kinoko Ramen (Pig Skull)","Kinoko Ramen (Salt)","Mushroom Miso Ramen"),new Array("Skye","Furano","Shinta"));
	correctAnswer = new Array(1,1,0,1,2,2,2,0,0,2,2);
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	}		
	else {
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0 && mode == 1) {
			if (cm.getQuestStatus(8012).equals(MapleQuestStatus.Status.STARTED) && !cm.haveItem(4031064)){ //quest in progress
				cm.sendYesNo("Did you get them all? Are you going to try to answer all of my questions?");
			}
			else { //quest not started or already completed
				//cm.sendOk("Meeeoooowww!");//lol what's this?
				cm.dispose();
			}
		}
		else if (status == 1 && mode == 1) {
			var hasChicken = true;
			var count = 0;
			var iter = cm.getChar().getInventory(MapleInventoryType.USE).listById(2020001).iterator();
			while (iter.hasNext()) {
				count += iter.next().getQuantity();
			}
			if (count < 300)
				hasChicken = false;
			
			if (!hasChicken) {
				cm.sendOk("What? No! 300! THREE. HUNDRED. No less. Hand over more if you want, but I need at least 300. Not all of us can be as big and as fed as you...");
				cm.dispose();
			}
			else {
				cm.gainItem(2020001, -300)
				cm.sendNext("Good job! Now hold on a sec... Hey look! I got some food here! Help yourselves. Okay, now it's time for me to ask you some questions. I'm sure you're aware of this, but remember, if you're wrong, it's over. It's all or nothing!");
			}
		}
		else if (status == 7 && mode == 1) { //2-6 are the questions
			if (selection != correctAnswer.pop()){
				cm.sendNext("Hmmm...all humans make mistakes anyway! If you want to take another crack at it, then bring me 300 Fried Chicken.")
				cm.dispose();
			}
			else {
				cm.sendNext("Dang, you answered all the questions right. I may not like humans in general, but I HATE breaking a promise, so, as promised, here's the Orange Marble.")
			}
		}
		else if (status == 8 && mode == 1) { //gain marble
			cm.gainItem(4031064, 1);
			cm.sendOk("Our business is concluded, thank you very much! You can leave now!");
			cm.dispose();
		}
		else if (status >= 2 && status <= 6 && mode == 1) {//questions
			var cont = true;
			if (status > 2) {
				if (selection != correctAnswer.pop()){
					cm.sendNext("Hmmm...all humans make mistakes anyway! If you want to take another crack at it, then bring me 300 Fried Chicken.")
					cm.dispose();
					cont = false;
				}
			}
			if (cont) {
				questionNum = Math.floor(Math.random() * questions.length);
				if (questionNum != (questions.length - 1)){
					var temp;
					temp = questions[questionNum];
					questions[questionNum] = questions[questions.length - 1];
					questions[questions.length - 1] = temp;
					temp = answers[questionNum];
					answers[questionNum] = answers[questions.length - 1];
					answers[questions.length - 1] = temp;
					temp = correctAnswer[questionNum];
					correctAnswer[questionNum] = correctAnswer[questions.length - 1];
					correctAnswer[questions.length - 1] = temp;
				}
				var question = questions.pop();
				var answer = answers.pop();
				var prompt = "Question no." + (status - 1) + ": " + question;
				for (var i = 0; i < answer.length; i++)
					prompt += "\r\n#b#L" + i + "#" + answer[i] + "#l#k";
				cm.sendSimple(prompt);
			}
		}
	}
}
 
Uhm Dude.
You do Know This isn't the Full Script.
Theres an Event Script..
..
You can tell that by the Oh yeah the IMPORT AT THE TOP?
 
Uhm Dude.
You do Know This isn't the Full Script.
Theres an Event Script..
..
You can tell that by the Oh yeah the IMPORT AT THE TOP?

You know that import and event script are not even close to be related?

BTW, I don't get why you says this, I just said mine was better in my opinion, plus I don't use any event thing and to be honest, I don't even bother to read your script properly, I just saw... you need 300 chickens and answer the random questions.
 
..
Forget it.
You Completely don't get the Point of the Script.
Read it Thurougly Plawks.
The event Script sends a Server Message and Summons a Mob,
And is Like a House System.
The Questions are needed as a qualifier.
This is why i don't release anything.
..
People think they're Smart and say that they released something simalar and really they have NO idea what the **** their talking about
 
..
Forget it.
You Completely don't get the Point of the Script.
Read it Thurougly Plawks.
The event Script sends a Server Message and Summons a Mob,
And is Like a House System.
The Questions are needed as a qualifier.
This is why i don't release anything.
..
People think they're Smart and say that they released something simalar and really they have NO idea what the **** their talking about

Sheesh, someone's on their period o.o. Calm down fucker. ;D. You made a great release. No one's putting you down.
 
Code:
var iter = cm.getChar().getInventory(MapleInventoryType.USE).listById(2020001).iterator();
while (iter.hasNext()) {
	count += iter.next().getQuantity();
}
if (count < 300)
	hasChicken = false;

Um... isn't there a built in function to get the count of an item by id? Not sure what you're trying to accomplish here.

Because You can packet edit out a Dupeing item of Any item.
It's just a security Precaution.
because I edited and made the Things More high stake.
etc.etc.
So yeah just secuirty :D

---------- Post added at 06:04 PM ---------- Previous post was at 06:03 PM ----------

Sheesh, someone's on their period o.o. Calm down fucker. ;D. You made a great release. No one's putting you down.

I am On my Period.
Anything else?>.>
 
A Critique..
.
I'm sorry I Misspel one thing by accident.
Not all of us are Spelling bee champions like you Mr.Ma'am.
>.>

There's more than one spelling mistake by you in this thread. Alot more. I doubt it's an accident anymore, more likely just sheer stupidity.

Anyways, nice release I guess, xD
 
What a fail release. What question asker needs an event script? Osiris's was 20x better than this piece of crap o.o
 
Osiris is my sexy boy toy o.o lolz!! if he sees this he will get pissed =p because im on his list under "Charlie The HollyWood Whore" i touch osiris all the time lulz andways

just as dude said it fails while checking...wait wtf who do u need a random question asked now if u had something like a Q&A for ur server and give a test on it and it can only be done once by giveing a item that the test takes away when it starts so u cant do it over and over... wait nvm i did that LULZ nvm srry uhh i like pie anyways...





This kittys got soul!~ Scarlet OUT! xD!


ps. just to make you happy. ICE RELESORZ ITER IS SAR PROMESS! (did the spelling errors to blend in ^-^)
 
Osiris is my sexy boy toy o.o lolz!! if he sees this he will get pissed =p because im on his list under "Charlie The HollyWood Whore" i touch osiris all the time lulz andways

just as dude said it fails while checking...wait wtf who do u need a random question asked now if u had something like a Q&A for ur server and give a test on it and it can only be done once by giveing a item that the test takes away when it starts so u cant do it over and over... wait nvm i did that LULZ nvm srry uhh i like pie anyways...





This kittys got soul!~ Scarlet OUT! xD!


ps. just to make you happy. ICE RELESORZ ITER IS SAR PROMESS! (did the spelling errors to blend in ^-^)

What the ****? :/: I'm scared now. :*:
 
Back