Jump to content
  • 0

Sprakki NPC (Novice Ground)


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

Hi,
 
I'm trying to edit this scrip and I'm kinda stuck at the last point. This is the script first of all:

- script Sprakki#newbe05::NvSprakkiB -1,{
if (job_novice_q == 0) {
cutin "v_sprakki02",2;
mes "^00D1FE[Sprakki]^000000";
mes "Hello there! Welcome to the World of ^00CFAARagnarok^000000.";
mes "My name is Sprakki and I'm in charge of giving you basic gameplay tips.";
mes "Click on the ^F268D3[Next]^000000 button or press ^60D8FF[Enter]^000000 key to continue.";
next;
mes "^00D1FE[Sprakki]^000000";
mes "First you need to learn the very basics of controlling your character.";
mes "All the basic ^4d4dffmoves, selection of items, and attacks^000000 use the ^4d4dff left click of the mouse^000000.";
next;
cutin "",255;
cutin "tutorial01",3;
mes "-! Info !-";
mes "Click on the ground to move the character.";
mes "Attacking monsters and conversations with the people of this world can be done by simply clicking on them.";
next;
cutin "",255;
cutin "v_sprakki02",2;
mes "^00D1FE[Sprakki]^000000";
mes "Well then, I will give you a quest to talk to me.";
mes "After the conversation is over, talk to me again by left-clicking on me.";
set job_novice_q,1;
setquest 7117;
next;
cutin "",255;
cutin "tutorial02",3;
mes "-! Info !-";
mes "You've received a quest from Sprakki.";
mes "You can check the contents of the quest in the Quest Info Window by pressing the ^4d4dffAlt + U^000000 keys at the same time.";
next;
cutin "",255;
cutin "v_sprakki01",2;
mes "^00D1FE[Sprakki]^000000";
mes "Have you checked the Quest Info Window?";
mes "Well, talk to me again.";
close2;
cutin "",255;
end;
} else if (job_novice_q < 3) {
if (job_novice_q == 1) {
cutin "v_sprakki02",2;
mes "^00D1FE[Sprakki]^000000";
mes "Great!";
mes "Now you know how to move and talk to others, right?";
set job_novice_q,2;
getexp 600,5;
completequest 7117;
next;
}
cutin "",255;
cutin "v_sprakki02",2;
mes "^00D1FE[Sprakki]^000000";
mes "The Training Center is prepared for novices just like you.";
mes "You are going to be trained to get used to the basics of the Game.";
next;
mes "^00D1FE[Sprakki]^000000";
mes "I will guide you to the Novice Training Center.";
mes "Instructor 'Brade' will be waiting to speak to you.";
next;
mes "^00D1FE[Sprakki]^000000";
mes "Please go see Instructor 'Brade' across the bridge to continue your training.";
mes "But, you will miss all the advantages you can get in the Training Center.";
setquest 7118;
next;
cutin "",255;
mes "^4d4dffYou received a quest from Sprakki.";
mes "Please check the Quest Info Window.^000000";
close;

} else if (job_novice_q == 2) {
cutin "v_sprakki02",2;
mes "^00D1FE[Sprakki]^000000";
mes "Please go see Instructor 'Brade' across the bridge to continue your training.";
close2;
cutin "",255;
end;
}
}

After all quests and whatever has been given by the npc, when the player click on the npc, I want the npc to Just tell this part:

} else if (job_novice_q == 2) {
cutin "v_sprakki02",2;
mes "^00D1FE[Sprakki]^000000";
mes "Please go see Instructor 'Brade' across the bridge to continue your training.";
close2;
cutin "",255;
end;
}

Any help would be appreciated.

Edited by Phenex
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

-	script	Sprakki#newbe05::NvSprakkiB	-1,{
	if (job_novice_q == 0) {
		cutin "v_sprakki02",2;
		mes "^00D1FE[Sprakki]^000000";
		mes "Hello there! Welcome to the World of ^00CFAARagnarok^000000.";
		mes "My name is Sprakki and I'm in charge of giving you basic gameplay tips.";
		mes "Click on the ^F268D3[Next]^000000 button or press ^60D8FF[Enter]^000000 key to continue.";
		next;
		mes "^00D1FE[Sprakki]^000000";
		mes "First you need to learn the very basics of controlling your character.";
		mes "All the basic ^4d4dffmoves, selection of items, and attacks^000000 use the ^4d4dff left click of the mouse^000000.";
		next;
		cutin "",255;
		cutin "tutorial01",3;
		mes "-! Info !-";
		mes "Click on the ground to move the character.";
		mes "Attacking monsters and conversations with the people of this world can be done by simply clicking on them.";
		next;
		cutin "",255;
		cutin "v_sprakki02",2;
		mes "^00D1FE[Sprakki]^000000";
		mes "Well then, I will give you a quest to talk to me.";
		mes "After the conversation is over, talk to me again by left-clicking on me.";
		set job_novice_q,1;
		setquest 7117;
		next;
		cutin "",255;
		cutin "tutorial02",3;
		mes "-! Info !-";
		mes "You've received a quest from Sprakki.";
		mes "You can check the contents of the quest in the Quest Info Window by pressing the ^4d4dffAlt + U^000000 keys at the same time.";
		next;
		cutin "",255;
		cutin "v_sprakki01",2;
		mes "^00D1FE[Sprakki]^000000";
		mes "Have you checked the Quest Info Window?";
		mes "Well, talk to me again.";
		close2;
		cutin "",255;
		end;
	} else if (job_novice_q < 3&&job_novice_q != 2) {
		if (job_novice_q == 1) {
			cutin "v_sprakki02",2;
			mes "^00D1FE[Sprakki]^000000";
			mes "Great!";
			mes "Now you know how to move and talk to others, right?";
			getexp 600,5;
			set job_novice_q,2;
			setquest 7118;
			completequest 7117;
			next;
		}
		cutin "",255;
		cutin "v_sprakki02",2;
		mes "^00D1FE[Sprakki]^000000";
		mes "The Training Center is prepared for novices just like you.";
		mes "You are going to be trained to get used to the basics of the Game.";
		next;
		mes "^00D1FE[Sprakki]^000000";
		mes "I will guide you to the Novice Training Center.";
		mes "Instructor 'Brade' will be waiting to speak to you.";
		next;
		mes "^00D1FE[Sprakki]^000000";
		mes "Please go see Instructor 'Brade' across the bridge to continue your training.";
		mes "But, you will miss all the advantages you can get in the Training Center.";
		next;
		cutin "",255;
		mes "^4d4dffYou received a quest from Sprakki.";
		mes "Please check the Quest Info Window.^000000";
		close;

	} else if (job_novice_q == 2) {
		cutin "v_sprakki02",2;
		mes "^00D1FE[Sprakki]^000000";
		mes "Please go see Instructor 'Brade' across the bridge to continue your training.";
		close2;
		cutin "",255;
		end;
	}
}

 

I imagine it'd be better to use checkquest but variables work too.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

got this error:

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/nground.txt', line '104'. Stopping...

* w1=else if (job_novice_q == 2) {

* w2=

* w3=

* w4=

I also want that part to be like this:
	} else {

cutin "v_sprakki02",2;

mes "^00D1FE[Sprakki]^000000";

mes "Please go see Instructor 'Brade' across the bridge to continue your training.";

close2;

cutin "",255;

end;

}

Edit: Nvm figured it out :) Thanks skorm! Edited by Phenex
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...