Hello good people, I need little help regarding my new skript which will contain selling items.
So I want to create options like you see on some bigger plugins involving player to just write infinite amount of items and next to it price for that item for which it will be sold.
So I imagined this:
Options:
item_id
rice_for_that_item
item_id2
rice_for_that_item2
item_id2
rice_for_that_item2
Item_id is item type which player will type for example (stone).
item_price_for_that_item is price for that item for example (10).
So for this first item stone will be price 10$
So player will just type stone:10 and that's it
How can I do that? I know I can just put in options and make skript but my code will be pretty large and I want smaller one which will loop all of them so I don't have to add new item in every part of my code.
Thanks for helping me.
So I want to create options like you see on some bigger plugins involving player to just write infinite amount of items and next to it price for that item for which it will be sold.
So I imagined this:
Options:
item_id
item_id2
item_id2
Item_id is item type which player will type for example (stone).
item_price_for_that_item is price for that item for example (10).
So for this first item stone will be price 10$
So player will just type stone:10 and that's it
How can I do that? I know I can just put in options and make skript but my code will be pretty large and I want smaller one which will loop all of them so I don't have to add new item in every part of my code.
Thanks for helping me.