Jump to content
  • 0

repeating quest


Takuyakii

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

 

switch(rand(1,3) ) {
case 1:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Go to comodo and find Seo Jo!";
	mes "she will explain the details.";
	set changeq,1;
	close;

	}

case 2:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Go to Alberta and find Jeo!";
	mes "she will explain the details.";
	set changeq,1;
	close;

}

case 3:

mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Awesome";
	mes "Go to Al de Baran and find Celine!";
	mes "she will explain the details.";
	set changeq,1;
	close;
		}
	}
}

i made 3 random quest, 

1 will tell me to go comodo

2 will tell me to go alberta

3 will tell me to go alde baran

 

once he give me the first location i want him to stop giving another location.

and i want that he will just repeat the first location he gave me.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   50
  • Joined:  12/20/18
  • Last Seen:  

Spoiler

switch(rand(1,3) ) {
case 1:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 1;
    mes .@npcname$;
    mes "Go to comodo and find Seo Jo!";
    mes "she will explain the details.";
    set changeq,1;
    close;

    }

case 2:
if(HereNPC ==1){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 2;
    mes .@npcname$;
    mes "Go to Alberta and find Jeo!";
    mes "she will explain the details.";
    set changeq,1;
    close;
    }
}else{
mes "Find the right NPC of your search";
}

case 3:
if(HereNPC ==2){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 3;
    mes .@npcname$;
    mes "Awesome";
    mes "Go to Al de Baran and find Celine!";
    mes "she will explain the details.";
    set changeq,1;
    close;
        }
}else{
mes "Find the right NPC of your search";
}
    }
    }
   

    
////////// In closed quest set HereNPC, 4
////////// if HereNPC == 4 , mes "Quest Closed";
    
    
in OnInit:
set HereNPC, 0;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

On 11/7/2019 at 12:56 AM, Disabled LOOLP said:
  Hide contents

switch(rand(1,3) ) {
case 1:
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 1;
    mes .@npcname$;
    mes "Go to comodo and find Seo Jo!";
    mes "she will explain the details.";
    set changeq,1;
    close;

    }

case 2:
if(HereNPC ==1){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 2;
    mes .@npcname$;
    mes "Go to Alberta and find Jeo!";
    mes "she will explain the details.";
    set changeq,1;
    close;
    }
}else{
mes "Find the right NPC of your search";
}

case 3:
if(HereNPC ==2){
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    set HereNPC, 3;
    mes .@npcname$;
    mes "Awesome";
    mes "Go to Al de Baran and find Celine!";
    mes "she will explain the details.";
    set changeq,1;
    close;
        }
}else{
mes "Find the right NPC of your search";
}
    }
    }
   

    
////////// In closed quest set HereNPC, 4
////////// if HereNPC == 4 , mes "Quest Closed";
    
    
in OnInit:
set HereNPC, 0;

@Disabled LOOLP Thanks, how to make this instead of reply of find the right npc of your search" into the last location he gave?

 

@Ryo Osaki can u help me please ?

Edited by Takuyakii
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

@Takuyakii

just change this line

 

mes "Go to comodo and find Seo Jo!";
mes "she will explain the details.";
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

47 minutes ago, BeWan said:

@Takuyakii

just change this line

 


mes "Go to comodo and find Seo Jo!";
mes "she will explain the details.";

into ?

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