Robbery for Rust

Players can steal money, points, and/or items from other players

Total Downloads: 1,011 - First Release: Dec 15, 2014 - Last Update: Nov 22, 2017

5/5, 10 likes
  1. Wulf
    Robbery allows players to steal money, points, and/or items from other players by pickpocketing (sneaking from behind with use key) or mugging them (attacking from any direction.)

    The percent of money that can be stolen is customizable and based on if the victim is awake or sleeping. Items are stolen one random slot at a time, with the entire item stack being stolen if there is an item in the randomly selected slot.

    This plugin also supports Zone Manager/Event Manager, whereas it will disable robbery if the victim is in an event or a zone where they have the "noplayerloot" flag.

    Both Friends API and Rust:IO Friends are supported, so if the target victim has the attacker as a friend, they can't be robbed. The same applies to the Clans, Rust:IO Clans, and Factions plugins.

    Permissions

    This plugin uses Oxide's permission system. To assign a permission, use oxide.grant user <name or steam id> <permission>. To remove a permission, use oxide.revoke user <name or steam id> <permission>.
    • robbery.killing (allows stealing by killing another player)
      Ex. grant user Wulf robbery.killing
      Ex. revoke user Wulf robbery.killing
      Ex. grant group moderator robbery.killing
    • robbery.mugging (allows stealing by attacking from any direction)
    • robbery.pickpocket (allows stealing by stealth, behind victim and use key)
    • robbery.protection (protects players from being mugged or pickpocketed)
    Configuration

    You can configure the settings in the Robbery.json file under the oxide/config directory.
    Code (Javascript):
    {
      "Allow item stealing (true/false)": true,
      "Allow money stealing (true/false)": true,
      "Allow point stealing (true/false)": true,
      "Clan protection (true/false)": false,
      "Friend protection (true/false)": false,
      "Maximum chance of stealing an item (0 - 100)": 25,
      "Maximum chance of stealing money (0 - 100)": 50,
      "Maximum chance of stealing points (0 - 100)": 50,
      "Usage cooldown (seconds, 0 to disable)": 30
    }
    Localization

    The default messages are in the Robbery.json file under the oxide/lang/en directory. Language files are also available for French, German, Russian, and Spanish by default. To add support for another language, create a new language folder (ex. de for German) if not already created, copy the default language file to the new folder, and then customize the messages.
    Code (Javascript):
    {
      "CanBeSeen": "You can't pickpocket right now, you were seen",
      "CantHoldItem": "You can't pickpocket while holding an item",
      "Cooldown": "Wait a bit before attempting to steal again",
      "IsClanmate": "You can't steal from a clanmate",
      "IsFriend": "You can't steal from a friend",
      "IsProtected": "You can't steal from a protected player",
      "NoLootZone": "You can't steal from players in this zone",
      "StoleItem": "You stole {0} {1} from {2}!",
      "StoleMoney": "You stole ${0} from {1}!",
      "StolePoints": "You stole {0} points from {1}!",
      "StoleNothing": "You stole pocket lint from {0}!"
    }
    Credits
    • TheRotAG, for the original RotAG-Roubo plugin in Lua.
    Nais_One likes this.