xyxzero Posted August 31, 2018 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 90 Reputation: 6 Joined: 12/11/12 Last Seen: December 11, 2018 Share Posted August 31, 2018 An item seller that checks if you have this particular item then doesnt sell you anything. For example, NPC sells aloevera for people only who has 10 gold coins and they dont have any aloeveras inside their inventory. If I have aloevera, it will check and wont sell me anything. If I dont have enough gold coins, it will check and wont sell me anything. If I dont have aloevera and has Gold Coin inside my inventory, it gives me 100 aloeveras and deletes the gold coin. Help? Quote Link to comment Share on other sites More sharing options...
0 xyxzero Posted August 31, 2018 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 90 Reputation: 6 Joined: 12/11/12 Last Seen: December 11, 2018 Author Share Posted August 31, 2018 solved prontera,151,174,4 script Green Ale Seller 829,{ mes "[Green Ale Seller]"; mes "What would you like to do?"; switch(select("Buy Green Ale","Close")) { case 1: if (countitem(7929) < 10) goto L_NE; if (countitem(12135) >= 1) goto L_GA; delitem 7929,10; getitem 12135,100; close; L_NE: mes "[Green Ale Seller]"; mes "I'm Sorry but you don't have enough Gold Coins."; close; L_GA: mes "[Green Ale Seller]"; mes "Please use all your Green Ale first before buying."; close; case 2: next; mes "[Green Ale Seller]"; mes "Okay bye!"; close; } OnInit: waitingroom "Green Ale Seller",0; end; } Quote Link to comment Share on other sites More sharing options...
Question
xyxzero
An item seller that checks if you have this particular item then doesnt sell you anything.
For example, NPC sells aloevera for people only who has 10 gold coins and they dont have any aloeveras inside their inventory.
If I have aloevera, it will check and wont sell me anything. If I dont have enough gold coins, it will check and wont sell me anything.
If I dont have aloevera and has Gold Coin inside my inventory, it gives me 100 aloeveras and deletes the gold coin.
Help?
Link to comment
Share on other sites
1 answer 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.