Solved Pump jack

Discussion in 'Plugin Requests' started by Bill Murray 2, Nov 21, 2015.

  1. The gather plugin has a place for upping mining multiplier, maybe your previous server had that implemented. Always remember 1 low spent equals one crude which once refined equals 3 low grade fuels... so you gain 2 per one spent....
     
  2. I know this has been asked a few times before but before you just close the page Im looking to be able to re add pumpjacks to the crafting list and make them ignore the need to have an oil spot.... meaning that with the item crafted it could placed anywhere keeping in mind coliders of other items.
     
  3. Plugin Name:
    PumpJack, OilPump, PumpjackBack, OilQuarry, OilSurvey

    Brief description:
    This plugin allows players to search for Oil deposits using standard Survey Charges, with the ability to craft and place the Pumpjack in successful locations too!

    Use:
    Players will start out by crafting the necessary Survey Charges and Pumpjack as needed. Once a successful location is found, players are able to equip the Pumpjack and place it down in the same way you would a Mining Quarry.

    Inner Workings:
    First off is crafting the Pumpjack: Small piece of code which checks players inventory for all necessary items/ components needed to craft a Pumpjack (5000x Wood, 1500x Metal Fragments, 6x Gears, 4x Empty Propane Tanks). If all materials are found, they are removed from players inventory and player is given 1x Pumpjack. Easy Peasy!

    Placing the Oil Crater:
    Main code would need to recognise a successful Survey Charge explosion from player. There is a percentage (maybe 5-10%) where this survey_crater.prefab will be destroyed and replaced with a survey_crater_oil.prefab in the same position. This will allow players to use the Pumpjack they crafted which will snap into position just like the Mining Quarry does. It's funny to see this game mechanic still works perfect and should definitely be taken full advantage of :)

    Config Options:
    "usePermissions": true,
    "maxAllowed": 1, <-- Maximum allowed entities (mining.pumpjack) per player.
    "percentageSuccess": 5,
    "percentageSuccessVip": 10,
    "pumpjackCost": {"wood": 5000,
    "metal.fragments": 1500,
    "gears": 6,
    "propanetank": 4 }

    Permissions:
    pumpjack.allowed
    pumpjack.bypass (unlimited entities)
    pumpjack.vip (higher success percentage)

    Commands:
    /pj --> (Displays the following information in chat to player):
    PumpJack by AwesomeDeveloper:
    /pjinfo - Detailed information on how to get started.
    /pjbuy - Purchase a Pumpjack, providing you have the necessary components (see /pjinfo).

    /pjinfo --> (Displays the following information in chat to player):
    PumpJack Info:
    To get started, you need to purchase a Pumpjack using /pjbuy.
    Alternatively, this can be purchased after finding a suitable location.
    To search for a suitable location, simply use Survey Charges as normal, with a small chance to uncover an Oil Crater.
    These are easily recognised by the oil bubbling from the surface of the crater.
    Once found, equip the Pumpjack and place it over your crater where it will snap into position.
    Max allowed Pumpjacks per player: {0} (must read config file for amounts set).
    The cost of 1 Pumpjack is {1} (must read config file for amounts set).

    /pjbuy --> Runs code to check players inventory for necessary components. If successful, items will be removed and player will be given 1x Pumpjack. If unsuccessful, player will receive a message "You do not have the required components! type /pjinfo"

    More Info:
    I can't see any room for abuse here which is awesome! Players still need to successfully find a location in the same way they would with a Quarry. The Oil Crater would only ever spawn in the same place where you can already place a Quarry. Obstructions would also affect the placement of the Pumpjack in the exact same way because we are manually 'building' the Pumpjack rather than 'pasting' it into position.

    I look forward to any responses/ corrections/ criticism or added info and good day to you all! :)

    EDIT: Thanks to @RDOwnerOP for pointing out this plugin already exists here OilCrate for Rust | Oxide
    Not exactly the same but very similar. Oh well, back to the drawing board! Thanks
     
  4. This one doesn't work and isn't supported. It has large bug and almost useful. After restarting the server all Pump Jacks and Queries change oil/ore to something different, for example Pump Jacks starting mining stone and sulfur or metal but queries mine crude oil.
     
  5. Who knows the name of the plug-in that gives players the authority to make pumping units?
     
  6. whats a pumping machine ?
    Do u mean quarries or Pumpjacks ?
     
  7. Yeah would be awesome to get a working plugin of this
     
  8. What is the name of the player's own generate 《pump jack》 plug-in?
    Sorry, I'm Google-translated English
     
  9. oilcrate