CoreSnap's Wishlist
-
XCustomExcavator
Take full control of excavators on your Rust server with XCustomExcavator. This powerful plugin lets admins fine-tune excavator functionality, ensuring an optimized experience for players. Adjust mined resources, tweak interface settings, and enjoy multi-language support and robust data storage. Custom settings and progress are preserved after restarts. Seamlessly handle multiple excavators and integrate smoothly with your server.
Key Features
Multi-Language Support: Switch plugin language with ease. Available in EN, RU, UK, and ES. Interface Optimization: Adjusts for different monitor resolutions. Persistent Data Storage: Excavator data saved in oxide/data/XDataSystem/XCustomExcavator. Progress saved after server restarts. Sound Effects: Enjoy interactive menu sounds. Multi-Excavator Support: Works seamlessly with multiple excavators on the map. Customizable Resources: Modify resources including shortname, amount, custom name, permission, and skin. Unlimited Resources: No limit on the number of resources. Chat Integration: View excavator information in chat. User-Friendly Resource Selection: Features like check button, distance to button, permission checks, and more. Error Notifications: Informs you of configuration mistakes.
-> In the code you can switch the plugin language - LanguageEnglish = true <-
Permissions
xcustomexcavator.use - access to UI usage/resource selection. xcustomexcavator.info - chat information. xcustomexcavator.admin - administrator mode.
Commands
/einfo, /exinfo, /excavatorinfo - information about excavator in chat. [ Commands can be changed in the config. ] xcustomexcavator_unload - unload the plugin without consequences. [ For those cases when the plugin will be unloaded and will not be used for some time. ]
API
bool IsValidIndex(int index) - check if the resource index is valid. 1. string GetResourceCustomName(int index) - get the custom name of the resource. 2. string GetResourcePermission(int index) - get the resource permission. 3. ulong? GetResourceSkinID(int index) - get the skin of the resource. 4. string GetResourceAmountString(int index) - get a formatted string of the resource amount. 5. string GetResourceDisplayName(int index) - get the formatted name of the resource. ( For 1-5. If index is invalid, null will be returned. )
Hooks
object OnExcavatorResourceSetUI(ExcavatorArm excavator, int index, ulong skinID, BasePlayer player) - called when player tries to select a resource in UI. Returning non null will prevent this action!
Config
{ "General settings": { "SteamID profile for custom avatar": 0, "Chat prefix": "<size=12><color=#FFFFFF50>[</color> <color=#00FF0050>XCustomExcavator</color> <color=#FFFFFF50>]</color></size>\n", "List of commands to view information about the Excavator": [ "einfo", "exinfo", "excavatorinfo" ] }, "GUI settings": { "Color_background_1": "0.517 0.521 0.509 0.95", "Color_background_2": "0.217 0.221 0.209 0.95", "Color_background_3": "0.527 0.531 0.519 1", "Button color (icons)": "1 1 1 0.75", "Block color": "0.517 0.521 0.509 0.5", "Default block color": "0.417 0.521 0.409 0.5", "Color of the active button next": "0.35 0.45 0.25 1", "Color of the inactive button next": "0.35 0.45 0.25 0.4", "Text color of the active button next": "0.75 0.95 0.41 1", "Text color of the inactive button next": "0.75 0.95 0.41 0.4", "Color of the active button back": "0.65 0.29 0.24 1", "Color of the inactive button back": "0.65 0.29 0.24 0.4", "Text color of the active button back": "0.92 0.79 0.76 1", "Text color of the inactive button back": "0.92 0.79 0.76 0.4" }, "HQM": { "Shortname of the resource to be mined": "hq.metal.ore", "Amount of resource that will be mined - one barrel diesel": 100.0, "Custom item name": null, "Permission": null, "Item skin": 0 }, "Sulfur": { "Shortname of the resource to be mined": "sulfur.ore", "Amount of resource that will be mined - one barrel diesel": 2000.0, "Custom item name": null, "Permission": null, "Item skin": 0 }, "Stone": { "Shortname of the resource to be mined": "stones", "Amount of resource that will be mined - one barrel diesel": 10000.0, "Custom item name": null, "Permission": null, "Item skin": 0 }, "Metal": { "Shortname of the resource to be mined": "metal.fragments", "Amount of resource that will be mined - one barrel diesel": 5000.0, "Custom item name": null, "Permission": null, "Item skin": 0 }, "List of mined resources": [ ... ] } -
Undo Block
Download the UndoBlock.cs. undoblock.use allows you to use this plugin.
Put it in the oxide/plugins folder.
And everything should be okay.
If your server doesn't create config file:
UndoBlock.json
If you press 'CTRL + R', the last block you added will be removed.
{ "Refund Block": false }
If you want the materials to return to the player, you can set the setting to true in the config file. Default setting is false.
-
Grade UI
Download the GradeUI.cs. gradeui.use is required to use the interface.
Put it in the oxide/plugins folder. May require new permissions with updates.
And everything should be okay.
If your server doesn't create config file:
GradeUI.json
{ "Consume Materials": false, "Images": { "..." } }
- #construction
- #skin
- (and 7 more)
-
BuildCost UI
Download the BuildCostUI.cs. "buildcost.show"
Put it in the oxide/plugins folder.
And everything should be okay.
If your server doesn't create config file:
BuildCostUI.json
Updated ✅
If you changed the config "/buildcost" is allows you to open interface to calculate
{ "AnchorMax": "0.988 1", "AnchorMin": "0.91 0.491", "Button": true, "Images": { "..." } }
If you do not want to open the interface via the button, you can make changes via the config file.
If you have disabled the button, you can open the interface by typing /buildcost.
If you are familiar with OffsetMin and OffsetMax, you can easily customize the position for button and panel in the configuration. The panel size is set to 170x470 for a resolution of 1920x1080. And the button is 160x35.
- #calculate
- #calculator
-
(and 6 more)
Tagged with:
-
Professions
By imthenewguy in Plugins
Professions is a plugin designed for role play and PVE servers.
Players can choose from any 7 professions, including:
Miner - Has a chance to find gold nuggets while mining, which can be sold to the market for scrap/economy. Miners also gather more resources from nodes. Logger - Has a chance to find Pinecones while chopping trees, which can be sold to the market for scrap/economy. Loggers also gather more resources from trees. Skinner - Has a chance to obtain prime meat while butchering animals, which can be sold to the market for scrap/economy. Skinners can also use a command to locate the nearest animal from their position. Skinners also gather more resources from animals. Weaponsmith - Specializes in crafting weapons from melee swords to guns. Tailor - Specializes in crafting clothing and armour. Electrician - Specializes in electrical components and power sources/storage. Mechanic - Specializes in engine parts and vehicle modules. Also gets access to a quest to unlock car parts by destroying cars at the junkyard (using the magnetic crane & shredder).
The coolest thing about this plugin is that it uses a group system in oxide. This means you can assign permissions from other plugins to a specifc group as part of the professions perks.
Example, on my server we use the Vehicle Tow plugin, and have assigned the "vehicletow.user" permission to the mechanic group. This means that if a player is employed as a mechanic, they can use the tow hammer and tow vehicles around!
We also use the Tree Planter plugin on umod as a perk for loggers, so they can decorate areas with trees.
When a player chooses a profession, their xp/level will be set to 0.
Both gathering and crafting skills have a level/xp.
Gathering: Increasing the gathering level will increase the chance of obtaining the professions unique item (prime meat, gold nugget or pinecone). It will also increase the amount of extra resources you obtain while doing your profession.
Crafting: Crafting levels cap at level 3, and are required in order to craft items of equal workbench tier to the players level. For example, a player who is a level 1 weaponsmith cannot craft a semi-automatic rifle, as it requires a tier 2 workbench.
This feature can be disabled entirely in the config, if you do not want level requirements for items.
To gain xp as a crafter, players will need to craft items specific to their profession from level 1 onwards.
IE weaponsmiths will need to craft items unique to their class in order to get xp.
XP is calculated based on the components required to make the item. You can adjust the xp rates for each component (such as laptops, metal pipes etc) via the config. Items can also have a multiplier attached to them, offering further xp.
Another way to obtain xp is to research items specific to your profession. Researching offers 3x the xp you would have received for crafting the item (by default), but allows you to research items that you do not have the level for (IE researching AK at level 1 will still provide you with xp).
Mechanics in particular have an additional method of levelling. See the Mechanics Quest section below.
Crafting professions can be setup in a number of ways.
By default, only professions that specialize in set items will be able to craft them. For example, a weaponsmith is the only profession that can craft a pistol or rifle.
This can be adjusted in the config to instead use a tax system, charging players who are not part of that profession a scrap or economics tax for crafting it, where as players that are specialized would not be charged this fee. The exception to this is when an item is a "free_craft" item. All players can craft "free_craft" items without issue.
Example: Joe is a weaponsmith who is in need of a roadsign chest piece. He has the blueprint researched, so he decides to craft it himself. Joe is charged 125 scrap (default) to do so, in addition to the material costs.
The idea behind this system is to stimulate an economy, forcing players of differeing professions to trade between each other. This has worked with much success on my RP server.
All players have the chance to receive gold nuggets, prime meat and pinecones while gathering (although gathering professions are significantly more likely to find these items).
These items can be sold at the resource market for scrap or economy dollars (configurable).
The market can be access via a chat command (requires permission), or via an NPC (requires HumanNPC).
The mechanics quest is a plugin that is included with this package. If you do not wish to run it, simply remove it from your server (MechanicQuest.cs).
This plugin will assign mechanics a quest upon employment. The quest involves destroying modular cars at the junkyard using the magnet crane.
Doing so will provide them with xp per car crushed, as well as medium & High quality parts blueprint unlocks unpon completion of each quest.
This quest works extremely well with the towing plugin, as players can tow cars to the junkyard for destruction.
Command: rbag
Action: Opens the resource bag to store prime meat, pinecones and gold nuggets.
Permission: professions.chat.bag
Command: pmarket
Action: Opens the resource market to sell prime meat, pinecones and gold nuggets.
Permission: professions.chat.market
Command: jobmenu
Action: Opens the job menu to choose employment/quit your job.
Permission: professions.chat.jobmenu
Command: clearjobs
Action: Clears all job data from all players.
Permission: professions.admin
Command: updateitems
Action: Searches for any new craftable items added to Rust, and adds them to the data file.
Permission: professions.admin
Command: updatexp
Action: Recalculates the xp using the component xp values in the configuration file.
Permission: professions.admin
Command: setjob
Parameters: <player name> <job>
Action: Sets to the players job, removing their accumulated xp and levels.
Permission: professions.admin
Command: class
Action: Shows the players class, level and xp until next level.
Permission: none
Command: printlevels
Action: Prints the xp requirement for each level into console.
Permission: none
Command: updatemultiplier
Parameters: <item shortname> <value>
Action: Sets the xp multiplier for the desired item when crafting.
Permission: professions.admin
Command: showitems
Action: Prints the item list and xp values for each item in the players profession into the console.
Permission: none
Command: clearstoragebags
Action: Clears all storage bags for every player. This is done automatically on wipe.
Permission: professions.admin
Command: clearprofessions
Action: Clears all professions data.
Permission: professions.admin
Command: resettax
Action: Resets the tax rate for all items back to default.
Permission: professions.admin
Command: giverbag
Action: Gives the user a resource bag item, used to open the resource bag storage without a chat command/permissions.
Permission: professions.admin
Command: track
Action: Finds the closest animal and prints the direction of it from the players location.
Permission: skinner
Command: prof.addnpc
Action: Adds a job npc at the players location.
Permission: admin
Command: prof.removenpc
Action: Removes the target job npc.
Permission: admin
professions.admin professions.chat.bag professions.chat.market professions.chat.jobmenu
void OnPlayerEmployed(BasePlayer player, string job) void OnPlayerUnemployed(BasePlayer player, string job)