Jump to content
  • 0

Tutorial NPC (Solved)


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Edited : I just got it myself by keep trying.. But if you have idea to improve it please tell me.. ^_^ Thanks..

Below is my sample script : 

 

NPC 1 sample script 

// Tutorial NPC by rakuzas

gonryun,34,179,11	script	NPC1	721,{

if(TourDone01 == 1) goto TourDone;
else if(TourDone01 == 0) goto TourStart;


TourStart:
	mes "Talk to NPC2";
	set NPC2, 1;
	close2;
		
TourDone: 
	mes "Success";
	mes "yahoo~";
	close2;
end;

}

NPC2 sample script 

//Tutorial NPC by rakuzas

gonryun,35,175,11	script	NPC2	721,{

if(TourDone01 == 1) goto TourFinish;
else if(NPC2 == 1) goto TourStart;
else if(NPC2 == 0) goto TourDelay;


TourDelay:
    mes "Please talk to NPC1 first";
    close2;
cutin "", 255;
end;

TourStart:
	mes "Thank you~ You may talk to NPC1 again~";
	set TourDone01, 1;
	close2;
	
end;

TourFinish:
mes "Tour done!";
close2;
end;

}
Edited by rakuzas
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

if i understood you correctly...

gonryun,40,183,5	script	Milenia Tutorial::npc1	864,{

	mes "Hello young adventurer.";
	mes "I can give you tour";
	mes "For each NPC in our server";
	next;
	switch( select("You're so kind. Thank you!","Nah~ Im too pro for this!") )
	{
		case 1:
			mes "Please talk to our Milenia Tour ~";
			next;
			mes "Talk to me again after you done.";
			@tutor2_allowed = 1;
			break;
		case 2:
			mes "Such a arrogant person.";
			break;
	}
	close;

}

gonryun,46,183,11	script	Milenia Tour#Tutorial::npc2	721,{

	if( !@tutor2_allowed )
	{
		mes "Please talk to Milenia Tutorial first~";
		close;
	}

	mes "I can teleport you to any Milenia NPC.";
	next;
	mes " My teleport service is free~";
	next;
	mes "Talk to me again if you want to use my teleport service~";
	switch( select("Milenia Tutorial","Close") )
	{
		case 1:
			warp "gonryun",40,182;
			break;
		case 2:
			break;
	}
	close;
}

Or here is raw file: LINK

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