Solved Farming areas

Discussion in 'Plugin Requests' started by LoneSurvivor, Mar 2, 2016.

  1. So here are a bunch of ideas I've had personally for my server along with plugin ideas. Devs hit me up if you think any of these are do-able and maybe i can help you out for your time.

    Customize killfeed to not say as much and is much cleaner example;
    Player|Ak|Leg|35m|Killed|Deadplayer

    Referral system to recommend players to my server

    Time spent on server credits
    /rewards to buy with credits

    Small Custom /balance GUI in a bottom corner or something

    Set waypoints for normal players. Example; /setwaypoint RAID
    Then minimap will mark a spot for x minutes or something

    Make /info screen not pop up on entering server all the time

    Make it so /remove works whenever you craft whatever is made and is not solely dependent upon cupboard access

    Farm Plugin:
    Players unable to cut trees and harvest node if within building block (only accessible for cupboard authorized players. Makes "farming" aspect into the game
    Once cupboard is place player can say
    /setfarm home or /setfarm nodefield if they place cupboards on in the field and make a limit to how many "farms" you can have. Also create a little base protection of player wants to leave a tree near his base to hide it.

    Top player chart
    A small square or even just a list of names at the top right of screen that has minimizing option like minimap to display top 3-5 killers on the server and it cycles through other things like, most hours, most resources harvested, just to bring the server to "life" just a bit

    Player Vote GUI
    /vote can bring up a list or menu in game where players can vote upon anything the owner allows them too. Whether it's to vote on a plugin, weather, night, kick player, whatever you want
     
  2. Wulf

    Wulf Community Admin

    Please keep plugin request to one per thread to avoid duplicates. I'd also recommend checking for existing requests/plugins that match what you are looking for.
     
  3. Most of those things already exist. RankME for top list, PollSystem for voting, the /info thing can be changed in config, the server rewards is waiting for approval and I'll be adding a referral system to it. The farm is something you will have to get made, seems easy enough to do and are you sure you are talking about kill feed? Its pretty minimalistic as it is
     
  4. My apologies :/ I figure this would have been better than making 5 or 6 threads. Won't happen again.
     
  5. Wulf

    Wulf Community Admin

    Quicker, but harder to find it and for others to express their desire for the same. ;)

    As k1lly0u mentioned though, most of this is already available.
     
  6. Oh okay, you can remove it then if you want
     
  7. Wulf

    Wulf Community Admin

    No need to remove it, I just updated the title to reflect the one unique request I see currently. :)
     
  8. Thanks! Yeah I thought that one would be pretty cool for different purposes. By the way, out of curiosity. Would it be possible to test plugins before release or even before people upload them on this site? I think that would be awesome! I'd really like to learn how to code myself I just don't have the patience but would love to help out Devs in the process
     
  9. Wulf

    Wulf Community Admin

    You can run a local server to test plugins. If someone is making a plugin for you, I'm sure they'd ask you to help test.
     
  10. So, I made a quick plugin for the farm area, I have not included the ability to set a farm home or something like that. This only disables resources that a player gathers, then punishes then for 10seconds. IF you would like for this to be a full plugin PM me on here.
    Code:
    using System.Collections.Generic;
    using System;
    using UnityEngine;
    using Oxide.Core.Plugins;
    using System.Reflection;
    using Oxide.Core;
    using System.Data;
    using Rust;namespace Oxide.Plugins
    {
        [Info("AuthFarm", "You may only destory a resource in a authorized area.", "0.0.1", ResourceId = 4215)]
        public class AuthFarm : RustPlugin
        { 
            private readonly int triggerMask = LayerMask.GetMask("Trigger");
          
            private bool IsBuildingAllowed(Vector3 position, BasePlayer player)
            {
                var hits = Physics.OverlapSphere(position, 2f, triggerMask);
                foreach (var collider in hits)
                {
                    var buildingPrivlidge = collider.GetComponentInParent<BuildingPrivlidge>();
                    if (buildingPrivlidge == null) continue;
                    if (!buildingPrivlidge.IsAuthed(player)) return false;
                }
                return true;
            }
           
            void OnDispenserGather(ResourceDispenser dispenser, BaseEntity entity, Item item)
            {
                BasePlayer player = entity.ToPlayer();
                var playerPos = player.transform.position;
                if (!IsBuildingAllowed(playerPos, player))
                {
                    var amount = item.amount;
                    item.amount = (int)(item.amount * 0);
                    SendReply(player, "You may not farm here as you are not authorized."); 
                    player.SetPlayerFlag(BasePlayer.PlayerFlags.Wounded,true);
                    player.health = 2;
                    timer.Once(10, () =>
                    {
                        player.SetPlayerFlag(BasePlayer.PlayerFlags.Wounded,false);
                        timer.Repeat(0.1f, 50, () =>
                        {
                            player.health++;
                        });                  
                    });
                }
                else
                {
                    return;
                }
            }   
        }
    }
     
  11. Thread admin you can mark this as solved:)
     
  12. You can mark it solved yourself if you made trend =) Wulf has enough to do =)