Hi, please is it possible to set the condition of the item or genetics for clone? If it is not possible to do this with a plugin, does anyone know how to do this by command? I would like to sell (for example) a cheap machine gun in 50% condition. And an expensive machine gun in 100% condition. Or clones. The backpack allows this by "DataInt", for example DataInt:102828130 is for clone GGGGYY. Thanks for any help W
Possibility to set the condition, etc.Suggestion
Currently, I do not provide support for this feature request. But I can push out a beta update when I get back home for you to try out
Merged post
The latest beta update has your feature request in it Beta update 2.2.493
Read update notes for the known bug currently relating to condition values. ( work in progress )
Merged post
Anything you set up as a shop item with conditions;
If it's to buy, make sure you set the Buy Quantity/Amount to only one until I resolve the Bulk Purchase bug with the new feature update.
All new shop items will now default to max condition levels if it's supported.
If the condition value is zero, it means it's not a supported item.
Hello, yes,it works great! I didn't expect such enthusiasm from you :-) Thank you very much!
So and what about a second part? I gave an example with seed clones, where DataInt 102828130 is for potatoes clone with genetics GGGGYY. I want to sell this clones in the shop :-)
Thanks again khan! w
uh, Genetic clone support is not easy to do exactly. Especially with how the guishop is currently set up, not sure how I could handle that properly.
oh :-( I see. thank you anyway
Yo / I have managed to add full genetic buying support into the latest guishop beta update! version 2.3.3 have fun!
direct link > https://umod.org/plugins/gui-shop?branch=beta#updates
It will require 6 genetic types wrapped in strings for each one you want to set up, here's an example below.
All available genetic types are these
case 'g': return GrowableGenetics.GeneType.GrowthSpeed;
case 'y': return GrowableGenetics.GeneType.Yield;
case 'h': return GrowableGenetics.GeneType.Hardiness;
case 'x': return GrowableGenetics.GeneType.Empty;
case 'w': return GrowableGenetics.GeneType.WaterRequirement; "Hemp Clone": {
"DisplayName": "Hemp Clone",
"CraftAsDisplayName": false,
"Shortname": "clone.hemp",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 0.0,
"EnableBuy": true,
"EnableSell": true,
"Image": "",
"SellPrice": 1.0,
"BuyPrice": 1.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": [],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [
"g",
"g",
"g",
"g",
"y",
"y"
],
"SkinId": 0
},