Jump to content
  • 0

Help script error case 2 dup error


Noctis

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

einbroch,55,200,4	script	Herald	123,{
if( !#onetimeitem ){
set #onetimeitem,1;
	mes "Hello youngster. Want to know a secret?";
	next;
	switch(select("Yes:No")) {
	case 1:
	mes "[Herald]";
	mes "You made the right choice. Do you know that the toughest material in Rune Midgard is called Mithril? The best part is, I know how to get it.";
	next;
	mes " If you're willing to prove me you can handle a tough excursion, I'll direct you to my friend, and from that moment on, you're his problem. Will you do it?";
	next;
	OnMenu:
	switch(select("Yes I will do it!:Wait, what's the material for?")) {
	
	case 1:
	mes "[Herald]";
	mes "Outstanding! I will need you to collect two pieces of Pure Bradium, an excellent mineral from Bradium Golems in Manuk Fields. Bring me these two, and I will give you something so that my friend grants you passage to the mines.";
	next; 
	mes "So ,do you have the items?";
	next;
	switch(select("Yes,Here They are:No")) {
	
	case 1:
	mes "[Herald]";
	mes "Well done, I wasn't thinking you could do it. But be careful, the place where you'll be headed is very tough.";
	if (countitem(512) < 20)
	delitem 7233,
getbounditem 1244 1
	close;
	}

				mes "[Herald]";
				mes "Let me know when you're done. I will reward you for your efforts.";
				close;
				}
	case 2:
	mes "[Herald]";
	mes " Don't make me regret this. Bring me the damn Bradium!";
	close;
				
	
	
	
	case 2:
	mes "[Herald]";
	mes "I can't properly answer that. You will have to find someone willing to use it on anything. But hey, it's the toughest material in Rune-Midgard, it's gotta be useful, right?";
	goto OnMenu;
	}
	}
	}
	}

What Am I doing wrong? my head is just literally on fire right now, I dont even know what I'am doing anymore lol

3.png

Edited by Noctis
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

Solved

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

getitembound "<item name>",<amount>,<bound type>
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

1 minute ago, Cyro said:

getitembound "<item name>",<amount>,<bound type>

item name is the ID? and what I need to put in bound type?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

9 minutes ago, Cyro said:

getitembound "<item name>",<amount>,<bound type>

Now I have this

fffffffff.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

you used sections in wrong way , try this

einbroch,55,200,4	script	Herald	123,{
if( !#onetimeitem ){
set #onetimeitem,1;
	mes "Hello youngster. Want to know a secret?";
	next;
	switch(select("Yes:No")) {
	case 1:
	mes "[Herald]";
	mes "You made the right choice. Do you know that the toughest material in Rune Midgard is called Mithril? The best part is, I know how to get it.";
	next;
	mes " If you're willing to prove me you can handle a tough excursion, I'll direct you to my friend, and from that moment on, you're his problem. Will you do it?";
	next;
	OnMenu:
	switch(select("Yes I will do it!:Wait, what's the material for?")) {
	
	case 1:
	mes "[Herald]";
	mes "Outstanding! I will need you to collect two pieces of Pure Bradium, an excellent mineral from Bradium Golems in Manuk Fields. Bring me these two, and I will give you something so that my friend grants you passage to the mines.";
	next; 
	mes "So ,do you have the items?";
	next;
	switch(select("Yes,Here They are:No")) {
	
	case 1:
	mes "[Herald]";
	mes "Well done, I wasn't thinking you could do it. But be careful, the place where you'll be headed is very tough.";
	if (countitem(512) < 20)
	delitem 7233,1;
	getitembound 1244,30,1;
	close;
	case 2:
	mes "I can't properly answer that. You will have to find someone willing to use it on anything. But hey, it's the toughest material in Rune-Midgard, it's gotta be useful, right?";
	goto OnMenu;
	}
	}
	}
	}
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

2 hours ago, Cyro said:

you used sections in wrong way , try this



	switch(select("Yes I will do it!:Wait, what's the material for?")) {
	
	case 1:
	mes "[Herald]";
	mes "Outstanding! I will need you to collect two pieces of Pure Bradium, an excellent mineral from Bradium Golems in Manuk Fields. Bring me these two, and I will give you something so that my friend grants you passage to the mines.";
	next; 
	mes "So ,do you have the items?";
	next;
	switch(select("Yes,Here They are:No")) {
	
	case 1:
	mes "[Herald]";
	mes "Well done, I wasn't thinking you could do it. But be careful, the place where you'll be headed is very tough.";
	if (countitem(512) < 20)
	delitem 7233,1;
	getitembound 1244,30,1;
	close;
	case 2:
	mes "I can't properly answer that. You will have to find someone willing to use it on anything. But hey, it's the toughest material in Rune-Midgard, it's gotta be useful, right?";
	goto OnMenu;
	}
	}
	}
	}
}

 

where is the case 2 for the "No" in switch(select("Yes,Here They are:No")) {? because the case 2 in the end is suposed to be for switch(select("Yes I will do it!:Wait, what's the material for?")) {   and how to that if you dont have the items if you say yes without the items he say something like "come to me when you have the items" @Cyro

Edited by Noctis
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

@cyro now i cant talk with the npc wf, I tried with your changes before and it worked, but some hours later I click in the npc and I cant talk with him, and there is no error in the emulator

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...