Jump to content
  • 0

NPC isn't talkable


Anubis92

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   4
  • Joined:  05/11/17
  • Last Seen:  

Hi everyone,

it's me again! :heh: I tried to make now an simple quest the script is fully running, no Errors anymore in my console NPC stands ingame. But when I try to talk with him - Nothing happens. He just stand there and Looks in the world. I didn't find my mistake :/ Maybe anybody from you? Here'S my script:

 


crystilia,54,88,2	script	Elder of Town	777,{

	if(checkquest(90001) == 0) {

		mes "[Old Man]";
		mes "Hello young folk!";
		mes "It's nice to see you here around!";
		mes "Would you do an old man an favor?";
			switch(select("Sure, why not?:I've got no time, sorry!")){
	
				case 1:
					mes "[Old Man]";
					mes "Thank you, kid! You are an angel in this dark time!";
					mes "I didn't can find my wife, would you please search her?";
						switch(select("Okay, no Problem:Oh, ehrm... Sorry")){
						
							case 1:
									mes "[Old Man]";
									mes "She should be in the south of Crystilia, kid!";
									mes "I thank you so much!";
									setquest 90001;
									end;
							case 2:
									mes "[Old Man]";
									mes "Please come back if you think other about this...";
									close;
								}
			
				case 2:
						mes "[Old Man]";
						mes "Please come back if you think you have time for me...";
						close;
			} if(checkquest(90002) == 1) {

					mes "[Old Man]";
					mes "Ah you found my wife!";
					mes "That's wonderful, what she said?";
						switch(select("She didn't find the way back.")){

							case 1:
									mes "[Old Man]";
									mes "Oh my dear.. She's so old now..";
									mes "Maybe... Yeah I've got an plan!";
									next;
									mes "[Old Man]";
									mes "Please bring me 30 Bill of Birds from Peco Peco";
									mes "And kill 15 from them for me. With the blood, I can help her!";
									completequest 90002;
									setquest 90003;
									end;
			} if(checkquest(90003,HUNTING,2)){
							
							
							mes "[Old Man]";
							mes "Ah I see you killed every Monster, but do you have those items for me?";
							next;
							mes "[Old Man]";
							mes "Let me see...";
								switch(select("Sure, look!:I didn't have them")){

									case 1:
										if (countitem(925) >= 30){
											mes "[Old Man]";
											mes "Wonderful, you have them all!";
											mes "Here you get an thanks from me, kid!";
											completequest 90003;
											getitem 974,2;
											getitem 547,5;
											end;
												} else {
													mes "[Old Man]";
													mes "Come back if you got them!";
													close;
													}
				
							}
						}	
					} if (checkquest(90003) >= 2){
				
				mes "[Old Man]";
				mes "Hello youngster! Thanks again for your help!";
				close;
				} if (checkquest(90001) == 1){
					mes "[Old Man]";
					mes "Please search my wife!";
					close;
			}
		}
	}

Thanks to everyone who try to help me!

 

Greetings

Edited by Anubis92
Wrong Script...
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

may be the npc hates you!

 

 

prontera,54,88,2	script	Elder of Town	777,{

	if(checkquest(90001) == 0) {

		mes "[Old Man]";
		mes "Hello young folk!";
		mes "It's nice to see you here around!";
		mes "Would you do an old man an favor?";
			switch(select("Sure, why not?:I've got no time, sorry!")){
	
				case 1:
					mes "[Old Man]";
					mes "Thank you, kid! You are an angel in this dark time!";
					mes "I didn't can find my wife, would you please search her?";
						switch(select("Okay, no Problem:Oh, ehrm... Sorry")){
						
							case 1:
									mes "[Old Man]";
									mes "She should be in the south of Crystilia, kid!";
									mes "I thank you so much!";
									setquest 90001;
									end;
							case 2:
									mes "[Old Man]";
									mes "Please come back if you think other about this...";
									close;
								}
			
				case 2:
						mes "[Old Man]";
						mes "Please come back if you think you have time for me...";
						close;
			} if(checkquest(90002) == 1) {

					mes "[Old Man]";
					mes "Ah you found my wife!";
					mes "That's wonderful, what she said?";
						switch(select("She didn't find the way back.")){

							case 1:
									mes "[Old Man]";
									mes "Oh my dear.. She's so old now..";
									mes "Maybe... Yeah I've got an plan!";
									next;
									mes "[Old Man]";
									mes "Please bring me 30 Bill of Birds from Peco Peco";
									mes "And kill 15 from them for me. With the blood, I can help her!";
									completequest 90002;
									setquest 90003;
									end;
			} 
		//	if(checkquest(90003,HUNTING,2)){
				 if(checkquest(90003) == 2) {
							
							
							mes "[Old Man]";
							mes "Ah I see you killed every Monster, but do you have those items for me?";
							next;
							mes "[Old Man]";
							mes "Let me see...";
								switch(select("Sure, look!:I didn't have them")){

									case 1:
										if (countitem(925) >= 30){
											mes "[Old Man]";
											mes "Wonderful, you have them all!";
											mes "Here you get an thanks from me, kid!";
											completequest 90003;
											getitem 974,2;
											getitem 547,5;
											end;
												} else {
													mes "[Old Man]";
													mes "Come back if you got them!";
													close;
													}
				
							}
						}	
					} if (checkquest(90003) >= 2){
				
				mes "[Old Man]";
				mes "Hello youngster! Thanks again for your help!";
				close;
				} if (checkquest(90001) == 1){
					mes "[Old Man]";
					mes "Please search my wife!";
					close;
			}
		}
	}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   4
  • Joined:  05/11/17
  • Last Seen:  

Hello Cyro!

Thanks for your help - But could you please explain me? In the log for checkquest stand that I have to define playtime or hunting, but you only deleted this? How he can now know when the quest stand is on 2?

 

Greetings

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