BFPkiller Posted September 25, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Share Posted September 25, 2019 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 ) Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted September 25, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 7 hours ago Share Posted September 25, 2019 (edited) - 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 September 25, 2019 by crazyarashi fix 1 Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted September 25, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted September 25, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted September 25, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 7 hours ago Share Posted September 25, 2019 @BFPkiller Fixed it. Just copy again Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted September 25, 2019 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted September 25, 2019 19 minutes ago, crazyarashi said: @BFPkiller Fixed it. Just copy again Wow Thanks !! Works like a charm!! Thank you very much ! Quote Link to comment Share on other sites More sharing options...
Question
BFPkiller
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)
( 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.