Jump to content
  • 0

Quest per account


BlackSnow

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

What I'm trying to do is to set-up a 2 npc quest that can only be done 1 per account. The problem is that I don't really know exactly where to put those codes so that it will run smoothly. After the player has done the quest the only message he/she will be seeing is "You already claimed your reward!". The 2nd quest is similar to this one.

 

Codes:

if( #account == 1) {
			mes "You already claimed your reward!";
			emotion e_bzz;
			close;}

and

set #account, 1;

The quest code:

prontera,150,150,5	script	Akame	909,{
	
	if( #account == 1) {
			mes "You already claimed your reward!";
			emotion e_bzz;
			close;}
	if(countitem(983) && Zeny > 49999)
	{
			mes "[ Akame ]";
			mes "1 Black Dyestuff";
			mes "500000 zeny";
			next;
			mes "[ Akame ]";
			mes "Give it to me";
			next;
			switch( select( "Let her have the items.", "Don't give her the items." ) )
			{
				case 1:
					mes "[ Akame ]";
					mes "Oh, thank you so much!";
					mes "I've always wanted to make";
					mes "this hat and try it on.";
					next;
					mes "[ Akame ]";
					mes "^FF0000FOOLS!!!^000000";
					mes "Do you really think i will give the that item?";
					delitem 983,1;
					set Zeny,Zeny - 50000;
					getitem 5011,1;
					emotion e_thx;
					close;
				case 2:
					mes "[ Akame ]";
					mes "Im sorry that is what you deserve for not giving me the items I requested.";
					percentheal -99,-99;
					emotion e_bzz;
					close;
			}
		
		mes "[ Akame ]";
		mes "Hey "+strcharinfo(0)+"!!";
		mes "Glad you found me.";
		mes "I thought no one would ever find me here on this place.";
		next;
		mes "[ Akame ]";
		mes "In exchange for finding me.. I will tell you a secret";
		next;
		mes "[ Akame ]";
		mes "But first...";
		mes "Can you keep a secret?";
		next;
		switch( select( "Certainly", "Maybe" ) )
		{
				case 1:
					mes "[ Akame ]";
					mes "Oh! It seems like you can keep a secret afterall.";
					next;
					mes "[ Akame ]";
					mes "I could make a god item for you.";
					mes "The best god item there is on this world.";
					next;
					mes "[ Akame ]";
					mes "It will be tough but worth it";
					mes "so without further to do...";
					next;
					mes "[ Akame ]";
					mes "Give me the items I need in exchange for a ticket.";
					mes "You will need the ticket later on.";
					next;
					mes "[ Akame ]";
					mes "READY?";
					next;
					mes "[ Akame ]";
					mes "Gooooo!";
					next;
					mes "[ Akame ]";
					mes "..............";
					next;
					mes "[ Akame ]";
					mes "Sorry forgot I havent told you the items I need.";
					next;
					mes "[ Akame ]";
					mes "1 Black Dyestuff";
					mes "50000 zeny";
					next;
					mes "[ Akame ]";
					mes "Thats it really.";
					mes "Goodluck!!!";
					close;
				case 2:
					mes "[ Akame ]";
					mes "Not 100% sure?";
					mes "Too bad.";
					close;
		}
	}
}
Edited by BlackSnow
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Your first NPC is good already.

Now for your second one, copy what you did to your first NPC (if statement) and put it on your second NPC so they don't end up doing the quest for the second NPC twice.

set #account, 1;

Put this one on the last leg of your quest. Preferably when the player gets his reward.

Edited by PandaLovesHamster
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

I got 2 different text files.

set #account, 1;

As I've told above I don't know where to put it. I've tried to put it on the buttom it does not work. Already tried to put it on the end it doesn't let me talk to the npc. Tried to put it on here:

		case 1:
				mes "[ Akame ]";
				mes "Oh, thank you so much!";
				mes "I've always wanted to make";
				mes "this hat and try it on.";
				next;
				mes "[ Akame ]";
				mes "^FF0000FOOLS!!!^000000";
				mes "Do you really think i will give the that item?";
				delitem 983,1;
				set Zeny,Zeny - 50000;
				getitem 5011,1;
				set #freebies, 1;
				emotion e_thx;
				close;

NPC doesn't error but when I created an account. It says the reward was claimed already even though it was a new account.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

set #freebies, 1;

Is that correct?

Better to check both files for the variables used in checking.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

Solved.

Edited by BlackSnow
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...