Jump to content
  • 0

Close Enough


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   24
  • Joined:  02/23/12
  • Last Seen:  

Basically,

i try to make an NPC that you must first answer her question right.

but i lost it by putting too much cases( close enough ), will someone guide me through this..

the answers:

yes, she is a woman and she wears a female necklace by his tribe.

niflheim,212,182,5 script Mysterious Man? 474,{

mes "[ Mysterious Man ]";
mes "Hmmm...";
next;
mes "[ Mysterious Man ]";
mes "Mysterious Man? you say?";
next;
mes "[ Mysterious Man ]";
mes "If you can Answer my Question,";
mes "I will let you take this Quest.";
next;
mes "[ Mysterious Man ]";
mes "Well? are you up for my Question?";
next;
switch(select("Yes","No, Eww")) {

case 1:
mes "[ Mysterious Man ]";
mes "I'm Glad that you say Yes";
next;
mes "[ Mysterious Man ]";
mes "Don't Worry its only a 1 Question";
next;
mes "Am I a Boy or a Girl?";
next;
switch(select("Girl","Boy","Isn't that obvious?")) {
next;

case 1:
mes "[ Mysterious Man ]";
mes "EEEEEEEEEENG!!";
mes "Get outta here you bastard!!";
atcommand "@nuke " + strcharinfo(0);
close;
break;
case 2:
mes "[ Mysterious Man ]";
mes "EEEEEEEEEEENG!!";
mes "Your to immature to undertand don't you?";
mes "or your IQ is just below Average?";
atcommand "@nuke " + strcharinfo(0);
close;
break;
case 3:
mes "[ Mysterious Man ]";
mes "Obvious? and why do you say that?";
next;
switch(select("a Woman, your wearing Female Necklace from your Tribe","Man, you have Tattoos","That your Gay?")) {
next;

case 1:
mes "[ Mysterious Woman ]";
mes "Wow, Im Amazed in your Skills";
mes "your like a Detective, HAHA...";
next;
mes "[ Mysterious Woman ]";
mes "Im happy to announce that you passed!";
mes "I will tell you the Requirements for this item.";
next;
mes "[ Mysterious Woman ]";
mes "This Full Hallow Mask is very sacred for me.";
mes "But because you answered my question maturely, I will help you build it.";
next;
mes "[ Mysterious Woman ]";
mes "Remeber this items, i need this";
next;
mes "[ Mysterious Woman ]";
mes "^cc0000120x --> Helm (1)";
mes "2x --> Black Dyestuffs^000000";
next;
mes "Go get them!.";
next;
mes "[ Mysterious Woman ]";
mes "Do you have the items for the mask now?";
next;
switch(select("Show her the items.:Don't give her yet the items.")) {
case 1:
if( countitem(999) >= 120 && countitem(983) >= 2) {
mes "[ Mysterious Woman ]";
mes "This is what i need!";
next;
mes "Give me a Moment to build it";
next;
mes" Clink..Clank...Clunk! ";
next;
mes "Here you Go!, Please Take care of that mask";
delitem 999,120;
delitem 983,2;
getitem 2292,1; // Full Hallow Mask
close2;
break;
case 2:
mes "[ Mysterious Woman ]";
mes "EEEEEEEEEENG!!";
mes "Get outta here you bastard!!";
atcommand "@nuke " + strcharinfo(0);
close;
break;
case 3:
mes "[ Mysterious Woman ]";
mes "EEEEEEEEEENG!!";
mes "Get outta here you bastard!!";
atcommand "@nuke " + strcharinfo(0);
close;
break;

case 2:
mes "[ Mysterious Man ]";
mes "Ok, Suit yourself";
close;
break;

}
else {
mes "[ Mysterious Man  ]";
mes "Are you mentally disable or something? Check your Items again, Its not Complete!";
close;
}
case 2:
mes "[ Mysterious Man  ]";
mes "Do whatever you want";
close;
}
case 2:
mes "Good bye then";
close;
}

OnPCLoadMapEvent:
showevent 1,0;
end;
}
}
}


market mapflag loadevent

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Cases is not the problem, you have few close2 and break for no reason. I cleaned up a little bit.

niflheim,212,182,5 script Mysterious Man? 474,5,5,{
mes "[ Mysterious Man ]";
mes "Hmmm...";
next;
mes "[ Mysterious Man ]";
mes "Mysterious Man? you say?";
next;
mes "[ Mysterious Man ]";
mes "If you can Answer my Question,";
mes "I will let you take this Quest.";
next;
mes "[ Mysterious Man ]";
mes "Well? are you up for my Question?";
next;
if(select("Yes:No, Eww") == 2) {
mes "[ Mysterious Man ]";
mes "Good bye then";
close;
}
mes "[ Mysterious Man ]";
mes "I'm Glad that you say Yes";
next;
mes "[ Mysterious Man ]";
mes "Don't Worry its only a 1 Question";
next;
mes "Am I a Boy or a Girl?";
next;
switch(select("Girl:Boy:Isn't that obvious?")) {
case 1:
mes "[ Mysterious Man ]";
mes "EEEEEEEEEENG!!";
mes "Get outta here you bastard!!";
atcommand "@nuke " + strcharinfo(0);
close;

case 2:
mes "[ Mysterious Man ]";
mes "EEEEEEEEEEENG!!";
mes "Your to immature to undertand don't you?";
mes "or your IQ is just below Average?";
atcommand "@nuke " + strcharinfo(0);
close;

case 3:
mes "[ Mysterious Man ]";
mes "Obvious? and why do you say that?";
next;
switch(select("a Woman, your wearing Female Necklace from your Tribe:Man, you have Tattoos:That your Gay?")) {
case 1:
mes "[ Mysterious Woman ]";
mes "Wow, Im Amazed in your Skills";
mes "your like a Detective, HAHA...";
next;
mes "[ Mysterious Woman ]";
mes "Im happy to announce that you passed!";
mes "I will tell you the Requirements for this item.";
next;
mes "[ Mysterious Woman ]";
mes "This Full Hallow Mask is very sacred for me.";
mes "But because you answered my question maturely, I will help you build it.";
next;
mes "[ Mysterious Woman ]";
mes "Remeber this items, i need this";
next;
mes "[ Mysterious Woman ]";
mes "^cc0000120x --> Helm (1)";
mes "2x --> Black Dyestuffs^000000";
next;
mes "Go get them!.";
next;
mes "[ Mysterious Woman ]";
mes "Do you have the items for the mask now?";
next;
if (select("Show her the items.:Don't give her yet the items.") == 2) {
mes "[ Mysterious Woman ]";
mes "EEEEEEEEEENG!!";
mes "Get outta here you bastard!!";
atcommand "@nuke " + strcharinfo(0);
close;
}
if (countitem(999) >= 120 && countitem(983) >= 2) {
mes "[ Mysterious Woman ]";
mes "This is what i need!";
next;
mes "Give me a Moment to build it";
next;
mes" Clink..Clank...Clunk! ";
next;
mes "Here you Go!, Please Take care of that mask";
delitem 999,120;
delitem 983,2;
getitem 2292,1; // Full Hallow Mask
close;
}
mes "[ Mysterious Man  ]";
mes "Are you mentally disable or something? Check your Items again, Its not Complete!";
close;

case 2:
mes "[ Mysterious Woman ]";
mes "EEEEEEEEEENG!!";
mes "Get outta here you bastard!!";
atcommand "@nuke " + strcharinfo(0);
close;

case 3:
mes "[ Mysterious Man ]";
mes "Ok, Suit yourself";
close;
}
}

OnTouch:
showevent 1,0;
end;
}

For cleaner view, http://www.heypasteit.com/clip/0J06

Btw, using LoadEvent in this script is unnecessary, waste of event slot.

Edited by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   24
  • Joined:  02/23/12
  • Last Seen:  

thanks man!

ohh as for that loadevent, because i want players to notice that npc has quest on it..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

I know, I replaced with OnTouch instead. It will still showevent when player is 5 cell near with the NPC.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   24
  • Joined:  02/23/12
  • Last Seen:  

ohh, thats more easier thanks again man. /no1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...