RGive

Allows you to randomly give out items to players

Total Downloads: 3,418 - First Release: Apr 10, 2015 - Last Update: Jun 2, 2018

4.6/5, 10 likes
  1. Wulf

    Wulf Community Admin

    They're listed in the Oxide Docs, which you can find at the top of the website.
     
  2. Thank you. I wasn't aware of that resource. Much appreciated.
     
  3. LaserHydra updated RGive (Random Item Give) with a new update entry:

    2.1.1

     
  4. you can add option and true or false so that what you give is in blueprint to learn? instead of an item.
     
  5. Getting some errors, tried removing config / reload with no success.

    Code:
    (22:50:46) | [Oxide] 22:50 [Error] Failed to call hook 'cmdRGive' on plugin 'RGive v2.1.1' (NullReferenceException: Object reference not set to an instance of an object)
    (22:50:46) | [Oxide] 22:50 [Stacktrace]   at Oxide.Core.Libraries.Covalence.Formatter+Lexer.Lex (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.Parse (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.ToTreeFormat (System.String text, System.Collections.Generic.Dictionary`2 translations) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.ToUnity (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Player.Message (.BasePlayer player, System.String message, System.String prefix, UInt64 userId) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Rust.SendChatMessage (.BasePlayer player, System.String name, System.String message, System.String userId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RGive.SendMessage (.BasePlayer player, System.String prefix, System.String msg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RGive.GiveRandomItem (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RGive.cmdRGive (.BasePlayer player, System.String cmd, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RGive.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  6. I seem to be getting the same error.
     
  7. LaserHydra updated RGive (Random Item Give) with a new update entry:

    2.1.2

     
  8. maybe an rgive group feature would be a valuable addition, to be used to give a certain group like VIP random items or in my server's case to give all players that aren't staff random items.
     
  9. hi, i tried this plugin and it's amazing but some of my user reported not receiving any items and after taking a good hard look i noticed they were speaking the truth. the /rgive command (at least in my case) isn't giving everyone an item
    what could be causing this?
     
  10. Are there any errors showing up in your console when that happens?
     
  11. no, not at all, i just triedrgiv
     
  12. Hey @LaserHydra

    Can you update findplayer function that its found player by ID. Here is my modified version for that feature

    And here is all lines what i modified
    Code:
            private bool isSteamID(string str)
            {
                foreach (char c in str)
                {
                    if (c < '0' || c > '9')
                        return false;
                }
                return true;
            }        private BasePlayer FindPlayer(string searchedPlayer, BasePlayer player)
            {
                foreach (BasePlayer current in BasePlayer.activePlayerList)
                    if (current.displayName.ToLower() == searchedPlayer.ToLower() && !isSteamID(searchedPlayer))
                        return current;
                    else if (current.UserIDString == searchedPlayer && isSteamID(searchedPlayer))
                        return current;            List<BasePlayer> foundPlayers;
                if (!isSteamID(searchedPlayer))
                    foundPlayers =
                        (from current in BasePlayer.activePlayerList
                         where current.displayName.ToLower().Contains(searchedPlayer.ToLower())
                         select current).ToList();
                else
                    foundPlayers =
                        (from current in BasePlayer.activePlayerList
                         where current.UserIDString.Contains(searchedPlayer)
                         select current).ToList();            switch (foundPlayers.Count)
                {
                    case 0:
                        SendMessage(player, "The player can not be found.");
                        break;                case 1:
                        return foundPlayers[0];                default:
                        List<string> playerNames = (from current in foundPlayers select current.displayName).ToList();
                        SendMessage(player, "Multiple matching players found: \n" + playerNames.ToSentence());
                        break;
                }            return null;
            }
     
  13. Did you ever get around to making the whitelist for this mod?
     
  14. Hey, first at all thank you for your wonderfull plugins :)
    Do you think it is possible to add console commands ? I want to make it buyable in the ServerRewards shop and give random items from RCON.
    My second request is to add a timer, to set up something like a daily gamble.
     
  15. No, currently it only has a blacklist.
    [DOUBLEPOST=1524068464][/DOUBLEPOST]
    There are console commands, they are the same as the chat commands, simply without the leading slash (/).
     
  16. Code:
    07:00 [Error] Failed to initialize plugin 'RGive v2.1.2' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.RGive.Init () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RGive.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    on server initialize. reloading the plugin will make it compile.
     
    Last edited by a moderator: May 23, 2018
  17. LaserHydra updated RGive with a new update entry:

    2.1.4

     
  18. Please option to give steam id instead of player name would be really awesome for packages.
    And also removing items from blacklist and then reloading somehow resets it blacklist XD

    ------------------------------------

    My bad changed it in the plugin itself. Got it all working now. Great plugin!!
     
    Last edited by a moderator: Jun 27, 2018
  19. This plugin is by time? If execute like 12 at the same like 4-5 will be the same and then next next 4-5 aswell anything i can do about that and make it real random?