-
Posts
4,631 -
Joined
-
Last visited
-
Days Won
57
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Services
Downloads Plus Support
DOWNLOADS EXTRA
Everything posted by imthenewguy
-
It doesn't add to raidable base loot automatically, nor does the plugin say that it does. You can manually add them into the raidable base loot tables via the raidable base configs/data files. It adds to containers fine. If not, then there is another plugin on your server (not BetterLoot) that is causing the issue. RestoreUponDeath also supports the text field, so it should be restoring it fine. It's not an issue on other servers that run it, which is a large amount of PVE servers. public static Item CreateItem(ItemData itemData) { Item item = ItemManager.CreateByItemID(itemData.itemid, Mathf.Max(1, itemData.amount), itemData.skin); if (item == null) return null; item.condition = itemData.condition; item.maxCondition = itemData.maxCondition; if (itemData.displayName != null) { item.name = itemData.displayName; } if (itemData.text != null) { item.text = itemData.text; } item.flags |= itemData.flags; if (itemData.frequency > 0) { ItemModRFListener rfListener = item.info.GetComponentInChildren<ItemModRFListener>(); if (rfListener) { PagerEntity pagerEntity = BaseNetworkable.serverEntities.Find(item.instanceData.subEntity) as PagerEntity; if (pagerEntity) { pagerEntity.ChangeFrequency(itemData.frequency); item.MarkDirty(); } } } if (itemData.instanceData != null && itemData.instanceData.IsValid()) itemData.instanceData.Restore(item); FlameThrower flameThrower = item.GetHeldEntity() as FlameThrower; if (flameThrower) flameThrower.ammo = itemData.ammo; if (itemData.contents != null && item.contents != null) { foreach (ItemData contentData in itemData.contents) { Item childItem = CreateItem(contentData); if (childItem == null) continue; if (!childItem.MoveToContainer(item.contents, contentData.position) && !childItem.MoveToContainer(item.contents)) item.Remove(); item.MarkDirty(); } item.contents.MarkDirty(); } if (itemData.container != null) { if (item.contents == null) { ItemModContainerArmorSlot armorSlot = FindItemMod<ItemModContainerArmorSlot>(item); if (armorSlot) armorSlot.CreateAtCapacity(itemData.container.slots, item); else { item.contents = Pool.Get<ItemContainer>(); item.contents.ServerInitialize(item, itemData.container.slots); item.contents.GiveUID(); } } itemData.container.Load(item.contents); } // Process weapon attachments/capacity after child items have been added. BaseProjectile weapon = item.GetHeldEntity() as BaseProjectile; if (weapon) { weapon.DelayedModsChanged(); if (!string.IsNullOrEmpty(itemData.ammotype)) weapon.primaryMagazine.ammoType = ItemManager.FindItemDefinition(itemData.ammotype); weapon.primaryMagazine.contents = itemData.ammo; } return item; }
- 199 comments
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 199 comments
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 31 comments
-
- 1
-
-
- #chat
- #better chat
-
(and 4 more)
Tagged with:
-
- 1,526 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 279 comments
-
- 1
-
-
- #enhanced
- #custom loot
-
(and 7 more)
Tagged with:
-
- 223 comments
-
- 1
-
-
Yeah I made a mistake with the version number when I pushed the update. It is 1.0.8, it just shows as 1.0.7. /* 1.0.8 * Fixed an issue with permissions being checked each time a group received a new permission. */ namespace Oxide.Plugins { [Info("Hardy Planters", "imthenewguy", "1.0.7")] [Description("Planterboxes that require no light or water to grow")] class HardyPlanters : RustPlugin
-
- 87 comments
-
- #vip
- #monetization
-
(and 2 more)
Tagged with:
-
- 93 comments
-
- #recycler
- #monetization
- (and 5 more)
-
-
- 52 comments
-
- #competition
- #event
- (and 6 more)
-
- 1,526 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 1,526 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 1,526 comments
-
- #leveling
- #progression
- (and 19 more)
