1. ignignokt84

    ignignokt84 Plugin Developer

    Could sellOrderId and numberOfTransactions be added to OnVendingTransaction and OnBuyVendingItem?
    Also, could the SellOrder itself also be added to OnAddVendingOffer?
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Those are available through the VendingMachine already.
     
  3. ignignokt84

    ignignokt84 Plugin Developer

    That's true for OnVendingTransactions, but OnBuyVendingItem doesn't seem to have it set yet when it gets called. Same with OnAddVendingOffer - the SellOrder hasn't been added to the VM yet when the hook is called.
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I'll take a look later tonight and see what we can do. :)
     
    ignignokt84 likes this.
  5. Mughisi

    Mughisi Community Mod Oxide Developer

    Added the sell order as 3rd argument to OnAddVendingOffer and bumped the injection index so that it is called after the order is added to the VM. Also updated OnVendingTransaction and OnBuyVendingItem to include the sell order id (3rd arg) and number of transactions (4th arg).
    These changes should be included in the next build.
     
  6. ignignokt84

    ignignokt84 Plugin Developer

    Thank you :)