So... we see you haven't signed up here on our website.  

Do you really want to sit here and be "Unregistered" all your life?  No, of course you don't!  So, click this here link and you'll take that all important first step into enlightenment! (or something, whatever...)

Custom Commands - by Njinir (Engineer)

Discussion in 'General' started by Njinir, Nov 27, 2018.

  1. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Greetings! I am the admin of TheWalkingZed and want to share how awesome RAT is when it comes to events. I will keep adding to this post as I continue to expand the awesomeness.

    Ground Rules:
    1) I am not a genius, so no I cant create unicorns.
    2) I am always on discord. Just message me.

    Events:
    1) Name: TP Menu
    Type: Public Chat
    Conditions: Equals:!tp
    Script: say "[00FFF] Set your home point by typing !at Home, !rt to remove, !lt to list, !t followed by a name to teleport there.

    2) Name: Radio for Help!
    Type: Public Chat
    Conditions: STARTSWITH:!radiohelp||ALEVEL:<11||COOLDOWN:24H
    Script:
    se {player_id} 103
    say "Thank you for your patronage! Here is a gift from the Rage Admin Team!"
    say "You may use this command once per day."

    **NOTES** This is so that VIPs get a crate spawned to them 1 time a day. I have my VIPs as admin level 7**

    3) Name: Unlock All
    Type: Public Chat
    Conditions: STARTSWITH:!unlock||ALEVEL:<2
    Script: tile access /id={player_id} /r=10
    **Notes** This unlocks everything around an admin that uses the command (Chests/Doors)

    4) Name: Jail
    Type: Public Chat
    Conditions: STARTSWITH:!jail||ALEVEL:<2
    Script:
    say "[FF0000] {player_name} has sent {2} to jail! Rot sucka!"
    teleportplayer {2} {tele_Jail}
    **Notes** An admin types !jail bob and then Bob goes to Jail.
    Now - Effectiveness - I have a few ideas here.
    - You can set up a script for all new players that says admin add {player_id} 800 so that all new players are set at 800. Then add a line to this script (below teleportplayer) that says admin add {player_id} 1000. This will lower there permissions to 1000 (normal). Now - set all teleport permissions to use ALEVEL:<900. This means your jailed player cannot use teleport commands to leave.

    5) Name: Safehouse
    Type: Public Chat
    Conditions: STARTSWITH:!safe
    Script:
    teleportplayer {{player_name}} {tele_Safe}
    sayplayer {{player_name}} "[00FFFF] You have been teleported to the safehouse."
    ***Notes*** This teleports a player to the safehouse. Use it as a template for your teleport locations.

    6) Name: VIP Lounge
    Type: Public Chat
    Conditions: STARTSWITH:!lounge||ALEVEL:<11||COOLDOWN:1H
    Script:
    teleportplayer {{player_name}} {tele_Lounge}
    sayplayer {{player_name}} "[00FFFF] VIPs may use the lounge command to go to the VIP Lounge."
    **NOTES** This is a teleport that only a VIP can use, and only one time an hour.

    7) NAME: Help
    Type: Public Chat
    Conditions: STARTSWITH:!help
    Script:
    sayplayer {{player_name}} "[00FFFF] Type !tp for teleport help. Type !commands for list of commands. All commands begin with !."
    **Notes** This is just a simple help file. I use !help and also !commands for a list of player commands.

    8) Teleport Njinir
    Type: Public Chat
    Conditions: STARTSWITH:!Njinir
    Script:
    teleportplayer {{player_name}} "Njinir"
    sayplayer {{player_name}} "[00FFFF] You have been teleported to the Admin."
    **Notes** This is something I use at the beginning of every event. They teleport to me so we can do crazy stuff.

    9) Name: Hunting
    Type: Public Chat
    Conditions: STARTSWITH:!hunt||COOLDOWN:2h
    Script:
    sayplayer {{player_name}} "You activated Animal Hunting. Check for spawns nearby!"
    sayplayer {{player_name}} "This is a special Thank You from the Admin Team. You may activate it once every 2 hours!"
    se {player_id} 81
    se {player_id} 82
    se {player_id} 83
    se {player_id} 84
    **Notes** This will spawn animals for players to hunt. Everyone can use the command once per 2 hours.
     
    Last edited: Dec 13, 2018 at 10:07 AM
    • Winner Winner x 1
  2. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Name: Starterkit
    Type: New Player Connected
    Conditions: none
    Script: bc-give {{player_name}} gunPistol /c=1 /q=1
    bc-give {{player_name}} ammo9mmBullet /c=150
    bc-give {{player_name}} foodCanChili /c=3
    bc-give {{player_name}} drinkJarBoiledWater /c=3
    bc-give {{player_name}} cowboyHat /c=1
    bc-give {{player_name}} leatherPoncho /c=1
    **NOTES** You can continue to expand this one soooo much.
    It gives the items at 1 minute into the game (so they are nice and settled).
     
  3. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Name: Shutdown
    Type: Discord Public Chat
    Conditions: STARTSWITH:!shutdown
    Script: shutdown
    **NOTES** My admins have access to the discord channel. They type !shutdown in discord and the server shuts down.
    I am hosted so it comes right back up. It can help since we all have discord on our phone.
    THUS - we have game chat... on our phone - THANK YOU RAT!
     
  4. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Name: Motd (Message of the Day)
    Type: Player Spawn Join
    Conditions: none
    Script: sayplayer {{player_name}} "[00FFFF] Welcome {player_name} to TheWalkingZed!"
    sayplayer {{player_name}} "[00FFFF] Type !commands for a list of commands."
    sayplayer {{player_name}} "[00FFFF] New Traders are on the 3rd Floor! Type !safe to go visit them."
    **NOTES** I made this just after I put traders on the 3rd floor of the safe house.
    Whenever someone logs in, it gives them a message. It can be used as a template.
     
  5. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Items I am working on adding:

    Mute Player (to the point that RAT does not respond.
    This is to add a tag onto my !jail command.
    If RAT doesnt respond, they can't leave the jail.

    Admin Login Notice
    I am working with the Player spawn join to get it to
    identify an admin and put in chat, something like
    say "{player_name} has joined! Hide the bodies and booze!!"

    What I want that I might not get?
    A zone system or protection system (but really....not a must have)
    Lots of security tools, but I will be looking at BC for those.
    Watchlist that notifies admins of bad players, in game, and at login.
    Reset Player Profile from in game command
    Reserved Slot from in game or maybe just in RAT
     
    Last edited: Dec 2, 2018
  6. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,272
    These are awesome, thank you for sharing them. As we talked about, I'll be adding some of these to the default RAT installation. =)

    Also @Njinir Your hunt command, RAT has a random function in it. You could randomly pick a number for the animal types that spawn and their number. =) So your hunts would be totally different each time.
     
  7. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Teleport to Friend (aka Friend Teleport)
    Player Public Chat
    STARTSWITH:!friend
    tele {player_id} {2}
    sayplayer {{player_name}} "Any abuse of the friend teleport results in a ban. Any player grieving will be an immediate ban."

    **Note: I have a PvE server that is mostly community based. This teleports any player to another player.
    Example: !friend bob
    I added
     
  8. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Temp Grab Bag (A17 not working yet)
    Player Public Chat
    STARTSWITH:!gb||COOLDOWN:18H
    se {player_id} 103
    sayplayer {{player_name}} "Thank you for your contribution! You may use this command once every 24 hours."
    ***Note: This spawns a crate so that people remember to use !gb until its fixed.***
     
    Last edited: Dec 13, 2018 at 10:08 AM
  9. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Patron
    Player Public Chat
    STARTSWITH:!patron||ALEVEL:<11||COOLDOWN:18hr
    se {player_id} 103
    bc-give {{player_name}} drinkJarGrandpasLearningElixir /c=16 /q=1
    sayplayer {{player_name}} "[00FFFF] Thank you for your patronage! Here is a gift from the Rage Admin Team!"
    sayplayer {{player_name}} "[00FFFF] You may use this command once per day. Drink all 16 elixirs for a 1 hour XP buff!"
    **Notes: I add VIPs to "add admin" at level 10 down to 5 based on patronage. This will allow them to get a 1 hour XP buff and a crate, once per day (for most players)**
     
  10. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Zombies
    Player Public Chat
    STARTSWITH:!zombies||ALEVEL:=0
    sayplayer {{player_name}} "[00FFFF] Watch your back! Incoming!"
    bc-spawn horde /player={player_name}
    bc-spawn horde /player={player_name}
     
  11. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Donor Admin Command
    Player Public Chat
    STARTSWITH:!donor||ALEVEL:=0
    admin add {2} {3}
    bc-pn add vip {2} /force
    bc-chatcolor {2} FFD700 false
    **Notes: Example: !donor <steamId> <Donor level>
    I have the permission system set up where donors are level 10. Some commands require 10 to use (VIP Lounge, etc)
    I already set up bc-pn (chat color and VIP tag). This does it in 1 shot.
     
    Last edited: Dec 16, 2018 at 9:34 PM
  12. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Admin - Give Treasure
    Player Public Chat
    STARTSWITH:!treasure||ALEVEL:=0
    bc-givequest treasure_taylor /all
    **Notes: Gives all players a treasure hunt quest. They will love you for this one.**
     
  13. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Event - Server Event - Hosted
    Player Public Chat
    STARTSWITH:!event
    teleportplayer {{player_name}} Njinir
    bc-give {{player_name}} gunPistol /c=1 /q=3
    bc-give {{player_name}} ammo9mmBullet /c=500 /q=1
    bc-give {{player_name}} medicalFirstAidBandage /c=2 /q=1
    bc-give {{player_name}} drinkJarBoiledWater /c=2 /q=1
    bc-give {{player_name}} foodCanLamb /c=2 /q=1
    bc-give {{player_name}} drinkJarGrandpasLearningElixir /c=10 /q=1
    **Notes: I tell everyone to join me for an event. Come with no weapon, and empty inventory. When ready, type !event to join me.
    They will teleport to me and get this loot to start the event. We usually trash a city and trigger a horde night (st 77 22 00) will set time at 22 00 on day 77. Good times!
     
  14. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,272
    I don't want to mess up this nice clean thread, but... I had to say "Thank you!" for posting these, these are awesome! =)
     
  15. Njinir

    Njinir New Member JFF Member 7D2D RAT Supporter

    Points:
    23
    Adding Guild Functionality
    I did a few things for this to work, so I will walk through it.
    There is only 3 commands (add, remove, help) for guild leaders, but they love it.
    Here is how I do it:
    In game, press F1 and type: bc-pn
    This will give you an idea on how to create a chat prefix group and color.
    Lets create a guild called BOO and a guild leader named Bob.
    First - I admin add bob 100 (This is so that the commands work)
    Second - bc-pn boo (BOO) /color = 1E90FF (blue name)
    Third - bc-pn add boo Bob (Now Bob is in BOO)
    Now I tell Bob that I will murder him if he abuses any adding/removing players.

    Here is my command system.
    *All is Player Public Chat
    ------------------
    Guild - Commands
    STARTSWITH:!ghelp||ALEVEL:=100
    sayplayer {{player_name}} "[0000FF] To add, type !gadd (guild name) (player name or steamid). To remove type !gremove (guild name) (player name or steamid). Note - guild names are 1 word and player names have to be 1 word, or else, use their steamid - or contact an admin."
    -----------------
    Guild - Add Player
    STARTSWITH:!gadd||ALEVEL:=100
    bc-pn add {2} {3} /force
    -----------------
    Guild - Remove Player
    STARTSWITH:!gremove||ALEVEL:=100
    bc-pn remove {2} {3} /force
    ----------------

    I have more things to do, such as - When a guild leader finds a piece of land, they can type !gsummon and it will spawn a guild castle at their location. I already have the castle built as a land claim size with 10 block walls. Its nice.
    Cheers!
     
    • Winner Winner x 1
  16. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,272

Share This Page