Jump to content
  • 0

Quest Npc that checks item before showing shop~?


Santafe

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

Hi can anyone provide a quest NPC which :

1. checks if an "n" amount of item (xyz?) is there in the persons inventry then sends a message like " Wow You have the main ingredient" and then opens shop.

2. If the player does not have the item , NPC says "Talk to me when u get the main ingredient"

 

Thx in advance :)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

prontera,150,150,3	script	Weapon Dealer,	953,{
	mes "[Weapon Dealer]";
	mes "Do you have it or not?...";
	if (countitem(512) > 0 && countitem(605) > 0 && countitem(606) > 0) {
		mes "[Weapon Dealer]";
		mes "Wow...";
		mes "You actually have the main ingredients...";
		close2;
		callshop "WeaponShop",1; //1 allows players to only purchase items. For Buy/Sell use 0
	}
	else {
		mes "[Weapon Dealer]";
		mes "Quit wasting my time.";
		mes "Talk to me when you get the main ingreients...";
		end;
	}
}
-	shop	WeaponShop	-1,1101:110

Hope this is what you are looking for.

~Azura Skyy

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

Perfect! thnx azura :)

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