Jump to content

imthenewguy

Creator
  • Posts

    3,445
  • Joined

  • Last visited

Everything posted by imthenewguy

  1. Yeah it's why I set the default value for building xp to 0. I do like that idea, would just need to work out a way to implement it. I don't have any issues with instant mining and skinning on my end; perhaps you have a conflict with another plugin?
  2. This is the snippet of code that handles the recycling from my end. void OnItemRecycle(Item item, Recycler recycler) { if (string.IsNullOrEmpty(item.text) || !HasPerks(item.text)) return; var perks = GetPerkCount(item.text); if (perks == null) return; BasePlayer player; if (!RecyclerPlayers.TryGetValue(recycler, out player) || !permission.UserHasPermission(player.UserIDString, perm_recycle)) return; if (player == null || !player.IsConnected) { RecyclerPlayers.Remove(recycler); return; } float chance = GetModifiedRecyclerChanceTarget(player, config.enhancementSettings.enhancement_kit_settings.recycle_settings.perk_kit_chance); foreach (var kvp in perks) { var roll = UnityEngine.Random.Range(0f, 100f); if (roll >= 100 - chance) { var kit = CreateEnhancementKit(kvp.Key); if (!kit.MoveToContainer(recycler.inventory)) kit.DropAndTossUpwards(recycler.transform.position); if (!string.IsNullOrEmpty(config.enhancementSettings.enhancement_kit_settings.recycle_settings.success_effect)) RunEffect(player, config.enhancementSettings.enhancement_kit_settings.recycle_settings.success_effect, recycler.transform.position); } } WipeDictionary(perks); return; } private void OnRecyclerToggle(Recycler recycler, BasePlayer player) { if (recycler.IsOn()) { RecyclerPlayers.Remove(recycler); return; } if (player == null) return; if (config.enhancementSettings.enhancement_kit_settings.recycle_settings.perk_kit_chance > 0) { if (!RecyclerPlayers.ContainsKey(recycler)) RecyclerPlayers.Add(recycler, player); else RecyclerPlayers[recycler] = player; } float value = GetTotalPerkMod(Perk.Environmentalist, player); if (value == 0) return; float modifiedSpeed = 5 - (5 * value); if (modifiedSpeed < 0.01) modifiedSpeed = 0.01f; recycler.CancelInvoke(nameof(recycler.RecycleThink)); timer.Once(0.1f, () => recycler.InvokeRepeating(recycler.RecycleThink, modifiedSpeed - 0.005f, modifiedSpeed)); } Do you see any obvious conflicts? Perk.Environmentalist is the perk that changes the speed of the recycler. If they don't have that perk it shouldn't cancel the RecycleThink method. So long as OnItemRecycle is being called correctly and fed non-null information, it should work fine.
  3. If he is removing the recycler logic and adding his own, tell him to call Oxides hooks as well, such as OnItemRecycle
  4. Will update next release.
  5. Is the following value in your config set to more than 0? "Chance when recycling an enhanced item (per enhancement) to give an enhancement kit [0 = off, 100.0 = 100%]"
  6. imthenewguy

    hook error

    How often does this appear?
  7. imthenewguy

    Error in Console

    How often are you seeing this?
  8. imthenewguy

    XP supply drop

    You need to ask the owner of the plugin to check how the lock is being implemented. My xp is awarded once the container has been successfully looted, using the OnLootEntity hook, which is called when the player has been assigned as a looter to the entity. In order to prevent this, he will need to prevent the player from looting using the CanLootEntity hook, as returning false on this prevents OnLootEntity from firing.
  9. Hey could you run me through the exact process, step by step, so I can attempt to replicate the issue on my end?
  10. The plugin isn't skin based, so you will need to have the reward plugin run the console command to give the player an item.
  11. Did you give permissions for it?
  12. imthenewguy

    Cant pick up

    Changed Status from Pending to Closed
  13. Changed Status from Pending to Closed
  14. imthenewguy

    EpicLoot

    Wilol be added to next release. In the mean time you can manually add it to the lang file. "UIEquipmentEnhancerTitle": "Equipment Enhancer", "UIEquipmentEnhancerDescription": "Click on the item that you would like to enhance.",
  15. Changed Status from Pending to Closed
  16. The plugin does not give skinned scrap. It's all skin ID 0.
  17. Re-download Skirmish and you should be good.
  18. So that means you have a conflict with another plugin. Restarting the server reloads all other plugins, reinstating the conflict. Unfortunately you need to go through the painful process of: - Unloading all plugins except for PersonalRecycler. - Loading your other plugins 1 by 1 or in small groups and testing to see if the recycler still spawns when deployed, until you find the plugin that is preventing it.
  19. I think i found the problem haha. I will fix it on my end.
  20. Do you run SurvivalArena by chance?
  21. Just tested on my server without issue. Try the following Unload all plugins on your server by tying o.unload * Once unloaded, load the PersonalRecycler plugin. Redeem a recycler and attempt to place it down. Do you see a recycler?
  22. What perms does it lose? The first issue should be resolved via a plugin reload. If not, it means the data files probably weren't wiped properly.
  23. Odd. If you can replicate it and show me the process to do so on my end, I will look into it. Inconsistent bugs are the hardest to debug Regarding the mining ultimate issue; I will suss it out now.
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.8k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • 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.