How can I set items not to be purchased?
Max66888 opened this issue · 3 comments
I want to implement a function to unlock different projects for different vips. For example, vip1 can only use footprints for free, and vip2 can only use player skins for free. Can I have such a function?
Or let the free items of vip be excluded. For example, I hope vip can use all the items for free, But Player skins can only be distributed by me on my own initiative
I'm very looking forward to it
Then how do I set the items in the store to be banned from purchase so that I can only actively distribute them to players
I really want this function
"buyable" "0"
"ignore_vip" "1"
"ignore_free" "1"
put these 3 above to your item will make this item become non-buyable, non-free item (even admin with root access). To get this item give it a unique_id and install lootbox or voucher modules to get it or use sql query to give.
"flag" "op"
this keyvalue can use multiple flag. "flag" "o" or "flag" "q" only so just give your vip player whether o or q flag.
“可购买” “0”
“忽略_vip”“1”
“忽略免费”“1”
将这 3 个放在您的项目中将使该项目成为不可购买的、非免费的项目(即使是具有 root 访问权限的管理员)。要获得此物品,请为其提供一个 unique_id 并安装 lootbox 或 voucher 模块以获取它或使用 sql 查询来提供。
"flag" "op"
此键值可以使用多个标志。"flag" "o" or "flag" "q" only 所以只要给你的贵宾玩家 o 或 q 标志。
I found a bug. If "preview" "1" is set, "buyable" "0" will not work
From my experience that isn't true. You do need to set the price to 1 however, making it 0 will make it accessible for everyone, even if "buyable" is set to 0.