-
Posts
589 -
Joined
-
Last visited
Content Type
Profiles
Downloads
Forums
Store
Support
DOWNLOADS EXTRA
Services
Everything posted by 0xF
-
Version 1.3.2
1,349 downloads
This library allows developers to create their own ItemDefinitions, which will allow them to create custom items with their own unique values. What is an ItemDefinition created with the library? It is a full-fledged ItemDefinition just like the other ones created by Rust developers, a new item definition is created based on an existing one with modified settings. It has its own shortname and itemid, and can also have its own itemMods created by the developer, which is very convenient. You can use the give command, item.info.[anything], and any other way you want. A simple example of item creation: // Requires: CustomItemDefinitions using static Oxide.Plugins.CustomItemDefinitions; namespace Oxide.Plugins { [Info("LightsaberItem", "0xF", "1.0.0")] public class LightsaberItem : RustPlugin { public static LightsaberItem PluginInstance; ItemDefinition PARENT_DEFINITION = ItemManager.FindItemDefinition("longsword"); void Init() { PluginInstance = this; CustomItemDefinitions.RegisterPluginItemDefinition(new CustomItemDefinition { shortname = "lightsaber", parentItemId = PARENT_DEFINITION.itemid, maxStackSize = 1, category = ItemCategory.Weapon, defaultName = "Lightsaber", defaultSkinId = 3035762342, itemMods = new ItemMod[] { PARENT_DEFINITION.GetComponentInChildren<ItemModEntity>(), new ItemModLightsaberCreatedNotice() { exampleField_message = "Item with name \"{0}\" just created! Yay!" } } }, this); } public class ItemModLightsaberCreatedNotice : ItemMod { public string exampleField_message; public override void OnItemCreated(Item item) { base.OnItemCreated(item); if (exampleField_message != null) PluginInstance.Puts(string.Format(exampleField_message, item.name)); } } } } What are some things to keep in mind? Always register new item definitions in the Init hook! This is important! You must take care to register unique shortnames and item ids. ItemId should never be changed in your plugin, as items created with an old itemId will break if they don't have their definition. After your plugin is unloaded, all items created with your item definitions will lose interaction, as all ItemMods will be removed. This is done for safety, don't worry, after loading the plugin back in, all items will work again as before. CustomItemDefinition class structure: public class CustomItemDefinition { public int parentItemId; public string shortname; public int? itemId; // optional public string defaultName; public string defaultDescription; // For use by other plugins, this will not be displayed on the client side when selecting an item public ulong defaultSkinId; public int? maxStackSize; public ItemCategory? category; public ItemDefinition.Flag flags; public ItemMod[] itemMods; } ItemMods details: ItemMods are overwritten, this means the new item definition will not include the itemMods of the parent. If you need to import an item mod from the parent, you can use PARENT_DEFINITION.GetComponent<ItemModYouNeed>() if you need to import everything ItemMods new List<ItemMod>(PARENT_DEFINITION.itemMods).ToArray() Custom itemMods are added using the method of creating a new class, i.e. new YourItemMod() Here you can also specify the fields you want, example: new YourItemMod() { field: value } Quick answers to questions: Items have become coal, what does that mean? This is a fallback ItemDefinition in case the plugin providing this item is no longer available. The items will be restored if the plugin is returned. Will there be a video? No. Where can I learn more about this? Disassembling and self-study. Explore the workings of ItemDefinition and their mods on your own. Here's a little overview on items from Facepunch: https://wiki.facepunch.com/rust/Items_OverviewFree -
- 24 comments
-
- 1
-
-
- #sorting
- #filtering
-
(and 6 more)
Tagged with:
-
- 2 comments
-
- 1
-
-
Yes, the description is outdated, that's my fault, I'll fix it. I will now respond to your messages: 1. Yes, it is because you have auth level 2. It says so in the first video in the description, right after the first paragraph in the first seconds. 2. No, you can't remove the panel and it's not because I can't or I'm too stupid to realize that it would be a good idea to add it to the MAP. This is a limitation of the CUI, I will not go into details, if you are interested in the details - you can familiarize yourself with it. 3. No, you don't have to read all the patchnotes, but if you are really interested in the plugin, you can do it, all the patchnotes for the history of the plugin are available and they are made to be read.
-
Changed Status from Closed to Not a Bug
-
Changed Status from Pending to Closed
-
Teleport by marker are present in this plugin, no need for an additional one. For this you need to press Ctrl and press RMB at the point you want to teleport to. About merging into 1 plugin, that doesn't make sense. If you just take 2 plugins and merge it will not give you optimization because the code is written the same. Also it is more difficult to determine where the fault is in case of plugin breakage and if the plugin is one, you can not unload something separately, but only all together and lastly if the plugin breaks, it will break the same whether it is 1, or 10 separately, the only difference is how fast the developer will update it.
-
Changed Status from Pending to Closed Changed Fixed In to 1.2.7
-
Hello, yes, this was the case in version 1.0.0, in version 1.0.0 sorting was only done by category and items were moved in random order of their category. In version 1.0.3 items are sorted more consistently, as a different sorting scheme [category name -> rarity -> shortname -> amount] has been implemented. Sorry for the long reply, didn't have a chance to reply in the discussions
- 24 comments
-
- 1
-
-
- #sorting
- #filtering
-
(and 6 more)
Tagged with:
-
- 24 comments
-
- #sorting
- #filtering
-
(and 6 more)
Tagged with:
-
Hello, this has been fixed in the version for discord server members. I'm going to release it soon, if you don't want to wait you can get it in discord.
-
Sorry for the long reply, I don't get any alerts for support requests
-
Changed Status from Pending to Not a Bug
-
Hello, you must have the time format specified, there should be no numbers, go back to the default configuration and see what it should be like
-
Version 1.0.7
392 downloads
Introducing Sortify, the best plugin for making it easy to sort and filter boxes and containers from various plugins, all without the need for complex integrations. Sortify offers an intuitive solution to easily categorize your items, all within an elegant and efficient Rust-style user interface. Key Features: Custom Categories: With Sortify, you can create and customize your own categories to suit your unique needs. Rust style user interface: The plugin has a minimalistic and aesthetic Rust style user interface. Ease of Use: Sortify is designed with ease of use in mind. Whether you're a beginner or an experienced user, you'll find Sortify incredibly easy to use. It does not require complex training or any action on the part of the player, which allows the player to immediately begin organizing elements effectively. Permissions: sortify.allow - permission to use the plugin Video at moment version 1.0.0 (after the sorting scheme was changed, see gif):$15.00- 24 comments
- 2 reviews
-
- 3
-
-
- #sorting
- #filtering
-
(and 6 more)
Tagged with:
-
Changed Status from Pending to Closed
-
Glad it worked for you, I will really appreciate your review, thanks â¤ï¸ If you have any questions, you can message me in discord, I can't answer here anywhere but support requests.
-
I think the reason is that you have granted the timedpermissionsinstatusbar.hide permission on the group, this permission is not meant to be granted, this permission is used to switch the visibility of the player, so please try to remove all places where you set this permission
-
One more question: was the group given by the temporary permissions plugin or just?
-
Hello, I will ask you some questions that may be the reason: is the group name specified correctly? Is this plugin running after CustomStatusFramework? Is the Timedpermissions plugin installed together with IQPermissions? If you set the game language to English, will you have statuses displayed? Please answer these questions, maybe your case falls under one of them.
-
Changed Status from Pending to Closed
-
Changed Status from Pending to Closed