Jump to content
  • 0
Sign in to follow this  
mrlongshen

Multiple selection and reward

Question

Hi, 

I have some simple script.

Can someone modified it ?

 

  1. Multiple selection. e.g Quest A, Quest B, Quest C
  2. When user complete Quest A, get reward zeny + item. Same also to quest B and C, adjustable via config
  3. Add showevent(1,0) 
  4. Add simple ladder to show the ranking top 10 quest maker.

If someone willing to do it let me know. For quest_db and questid2display.txt its own me. 

 



prontera,155,181,5	script	Sample#quest	757,{
	.@i = select( .menu$ ) - 1;
	
	switch( questprogress( .quest_id[.@i],HUNTING ) ) {
		case 0:
			setquest .quest_id[.@i];
			mes "quest started.";
			break;
		case 1:
			mes "you havent finish the quest.";
			if ( select( "Give up","Cancel" ) == 1 ) {
				erasequest .quest_id[.@i];
			}
			break;
		case 2:
			mes "Well done, you completed the quest.";
			completequest .quest_id[.@i];
			break;
	}
	close;
	
	function	Quest	{
		.quest_id[.quest_id_size] = getarg( 0,0 );
		.quest_title$[.quest_id_size] = getarg( 1,"" );
		.menu$ = .menu$ + .quest_title$[.quest_id_size] + ":";
		.quest_id_size++;
		return;
	}
	
	OnInit:
		Quest( 60119,"Hunt 50 Alligator" );
		Quest( 60120,"Hunt 100 Alligator" );
		Quest( 60121,"Hunt 150 Alligator" );
		end;
}

 

 

 

 


 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Easy to add with a new SQL table, if you want I can help you with that.

Edited by rokimoki

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.