Cloth yields and vending machines
Hello! Been at least 6-7 years since I touched base with the Oxide crew, I'm an old mod author that a few will undoubtedly remember. I was going by the name Wolf back then, author of LIME (Legacy Inspired Mod for Experimental), Cornucopia, NoDecay and a bunch of others I don't even remember.

Anyway I'm not getting back into modding unless I have to, I'm here to ask if it's possible to mod the yields from player-planted crops. I'm on a 2X server that doesn't mod that and with the upcoming nerf to cloth trade, I'm wondering if it's even possible. Suggested to the admins there and they tell me it's impossible. Not a word I accept lightly :)

Also was wondering if there is any way to mod the Outpost/Bandit vending machine offers? Been told no since it's client side, figured I'd double check while I'm here.

Thanks in advance.

hi
1. OnGrowableGathered(GrowableEntity growable, Item item, BasePlayer player)
2. vending machine offers can easy changed

5df88d179ce26.jpg AVOCoder

hi
1. OnGrowableGathered(GrowableEntity growable, Item item, BasePlayer player)
2. vending machine offers can easy changed

Thanks, about point 2, I'd like more info. One of the things that botters me is limits, especially on non-stackable items. Is it possible to modify, for example, the solar panel to be sold in multiples? Like increase that counter to whatever number and just fill your inventory in one go?
Stack size controller? And compound options?
Deicide666
Thanks, about point 2, I'd like more info. One of the things that botters me is limits, especially on non-stackable items. Is it possible to modify, for example, the solar panel to be sold in multiples? Like increase that counter to whatever number and just fill your inventory in one go?

class VendingMachine has public field VendingMachine.SellOrderContainer sellOrders;
VendingMachine.SellOrderContainer has public field List<VendingMachine.SellOrder> sellOrders;
VendingMachine.SellOrder has public fields:
public int itemToSellID;
public int itemToSellAmount;
public int currencyID;
public int currencyAmountPerItem;

simple can change itemToSellAmount for Order with solar panel to 2 =)