Jump to content

mecwerks

Member
  • Posts

    27
  • Joined

  • Last visited

Everything posted by mecwerks

  1. mecwerks

    Using item_drop_buoyant

    P.S. Sorry, I know you just changed it to the backpack prefab in the latest update, I just like the look of the dry box
  2. mecwerks

    Using item_drop_buoyant

    Hello, I wanted to change to use the item_drop_buoyant prefab for the container. I just wanted to ask what the check what the line on 3017 is checking for? if (container.name == "1771111002") return; Does this need to also be changed or can it be left alone if changing the prefab? Thanks in advance.
  3. Same name and function as a free plugin, but for $5 ....?
  4. Title, if WaterBasesJunkpileFix is loaded, ghost ships cannot spawn.
  5. mecwerks

    Erratic flying

    More controllable, but it pulls hard left for some users and hard right for others. Will not stay straight. Seems to randomly fix and break itself. No one is in the deep sea this time but it sometimes flys okay, sometimes has a hard pull.
  6. mecwerks

    Erratic flying

    Dropping a large backpack, it does not spin
  7. mecwerks

    Erratic flying

    I can test that shortly. It seems to be fine until someone uses it in the deep sea. Then they break for everyone until deep sea closes
  8. mecwerks

    Erratic flying

    After the naval update, jetpacks seem to spin out and not fly straight. Also lag you in/out of flying and eventually just drops you.
  9. CanStackItem currently returns true for any upgraded furnace/oven causing them to turn into whatever you drag them ontop of. Changing line 1271 to return false fixes this issue.
  10. mecwerks

    Missing doors/elevator

    Hello, I'm having troubles getting this prefab to work properly. I have rustedit installed properly on my server as other prefabs work fine, but with this tower the doors, elevators, buttons, and triangle floor grills do not spawn
  11. Hello, noticed a bug if the servers hacked crate timer was below 600, the events would not spawn. Tracked it down to line 1532, just need to change _HackTime to HackableLockedCrate.requiredHackSeconds float remainingTime = HackableLockedCrate.requiredHackSeconds - crate.hackSeconds;
  12. mecwerks

    Infinite stock

    diff --git a/plugins/CustomItemVending.cs b/plugins/CustomItemVending.cs index 0975882..26df4b7 100644 --- a/plugins/CustomItemVending.cs +++ b/plugins/CustomItemVending.cs @@ -561,6 +561,7 @@ namespace Oxide.Plugins public int ShoppyStockBalance; public int ServerRewardsBalance; public bool Broadcast = true; + public bool infiniteStock; public int GetAvailableAmount(ItemData itemData) { @@ -1819,13 +1820,35 @@ namespace Oxide.Plugins continue; } - player.GiveItem(newItem); + if (vmData.infiniteStock) + { + var itemCopy = ItemManager.Create(item.info, item.amount, item.skin); + itemCopy.name = itemData.displayName; + itemCopy.text = itemData.text; + itemCopy.SetItemOwnership("Market Item", $"Purchased from the outpost by {player.displayName}."); + player.GiveItem(itemCopy); + } + else + { + player.GiveItem(newItem); + } break; } else { paid += item.amount; - player.GiveItem(item); + if (vmData.infiniteStock) + { + var itemCopy = ItemManager.Create(item.info, item.amount, item.skin); + itemCopy.name = itemData.displayName; + itemCopy.text = itemData.text; + itemCopy.SetItemOwnership("Market Item", $"Purchased from the outpost by {player.displayName}."); + player.GiveItem(itemCopy); + } + else + { + player.GiveItem(item); + } } if (paid >= purchaseAmount) break; Here is a patch of my quick and dirty way to do it. Does not currently have UI to toggle it on so the plugin has to be unloaded, config changed, then reopened. Probably better to have an admin command for it. Also wasn't sure how to get the ownership tag from the existing item so just set it to a generic tag for now. Feel free to use this is you would like to. Love all your plugins!
  13. mecwerks

    Infinite stock

    Thanks for the quick response! Any chance you plan on adding this or not on your roadmap? Thanks again.
  14. mecwerks

    Infinite stock

    Hello, is there currently a way to do infinite stock in cases of an outpost shop? Use case here is selling legendary weapons, and don't have a good way to keep it stocked. Thanks for all the cool plugins!
  15. mecwerks

    WTrading

    Should be changed to:
  16. Fixed it by adding the following to line ~1095: Could probably be expanded to a config value for extra things to shoot through. I think another one would be brutalist roofs/window braces unless you want to allow brutalist peaks to be used against the brads

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.3k
Customers served
Files Sold
161k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.