Jump to content
  • 0

Requesting NPC


BFPkiller

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

Hello everyone!

i would like to request a npc if i may.

the npc sells the following food and will only do so once you brought him the required item.

Hope you guys can help me out.

Thanks in advance !

*Street Food Vendor (All Food Is 20k Each):

*He will only sell to you once you bring him 1x Royal Cooking Set (ID: 12128)

  • Bomber Steak (ID: 12043)
  • Tentacle  Cheese Gratin (ID: 12058)
  • Clam Soup (ID: 12053)
  • Honey Herbal Tea (ID: 12048)
  • Fruit Mix (ID: 12063)
  • Fried Sweet Potato (ID: 12068) 

( Only have to bring him the cooking set 1x then you can always buy from him )

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

-	shop	food_vendor	-1,12043:20000,12058:20000,12053:20000,12063:20000,12068:20000

map,123,123,1	script	Food Vendor 123,{
	if(!vendor_unlocked){
		mes "[ Food Vendor ]";
		mes "Can you give me one " + getitemname(12128) +"?";
		next;
		if(countitem(12128)){
			if(select("Give the "+getitemname(12128)+":Cancel") == 2){
				mes "[ Food Vendor ]";
				mes "That's unfortunate.";
				close;
			}
			mes "[ Food Vendor ]";
			mes "Thank you, now I can prepare my foods.";
			delitem 12128,1;
			vendor_unlocked = 1;
			end;
		} else {
			mes "[ Food Vendor ]";
			mes "Please bring me a " + getitemname(12128) +"?";
			end;
		}
	}
	mes "[ Food Vendor ]";
	mes "How can I help you?";
	next;
	callshop "food_vendor",1;
	end;
}

 

Edited by crazyarashi
fix
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

50 minutes ago, crazyarashi said:

-	shop	food_vendor	-1,12043:20000,12058:20000,12053:20000,12063:20000,12068:20000

map,123,123,1	script	Food Vendor 123,{
	if(!vendor_unlocked){
		mes "[ Food Vendor ]";
		mes "Can you give me one " + getitemname(12128) +"?";
		next;
		if(countitem(12128)){
			if(select("Give the "+getitemname(12128)+":Cancel") == 2){
				mes "[ Food Vendor ]";
				mes "That's unfortunate.";
				close;
			}
			mes "[ Food Vendor ]";
			mes "Thank you, now I can prepare my foods.";
			delitem 12128,1;
			vendor_unlocked = 1;
			end;
		}
	}
	mes "[ Food Vendor ]";
	mes "How can I help you?";
	next;
	callshop "food_vendor",1;
	end;
}

 

Thanks for your reply !

I tested it... after

mes "Can you give me one " + getitemname(12128) +"?";

and you click next, it goes right to the shop , and i dont have the cooking set ...

hope you can fix this 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

@BFPkiller Fixed it. Just copy again ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

19 minutes ago, crazyarashi said:

@BFPkiller Fixed it. Just copy again ?

Wow Thanks !!

Works like a charm!!

Thank you very much !

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