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)

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 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**

4) Name: Jail
Type: Public Chat
Conditions: STARTSWITH:!jail||ALEVEL:<2
Script:
teleportplayer {2} {tele_Jail}
say "[FFFF00]{2} has been sent to jail by {player_name}"
say "[FFFF00]Warning! Any attempt to leave the jail will result in a permanent ban. Standby for admin."
bc-givebuff {2} buffEncumberedInv
bc-givebuff {2} buffNearDeathTrauma
bc-givebuff {2} buffLegBroken
bc-givebuff {2} buffArmBroken
**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. *update* - with these debuffs, people don't walk away that easy. Not really a need to mute them.

**NOTE: Added "Release"
Release
Player Public Chat
STARTSWITH:!release||ALEVEL:<2
teleportplayer {2} {tele_Lobby}
say "[FFFF00]{2} has been released from jail by {player_name}"
say "[FFFF00]{2} remeber we are watching you....."
bc-debuffplayer {2} buffEncumberedInv
bc-debuffplayer {2} buffNearDeathTrauma
bc-debuffplayer {2} buffLegBroken
bc-debuffplayer {2} buffArmBroken
**This will fix them up after they get beat up**

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.

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!

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.

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

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.

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

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)**

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.

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.

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!

Slash Chat
Player Public Chat
STARTSWITH:/
sayplayer {{player_name}} "[00FFFF] There are no slash commands. Try !help for more info."
*notes - Added so that players who confuse / for ! can be updated. It is just to give feedback.*

PVP - Kill the Killer
Player Killed Player
*no conditions*
say "[FFFF00] {player_killer_name} has killed a player. {player_killer_name} will now be processed. PvP is not allowed on this server, unless specified for an event."
kill {player_killer_id}

Map
Player Public Chat
STARTSWITH:!map
Script:
sayplayer {{player_name}} "[00FFFF] The live map is found in discord, or open your web browser to 198.96.95.106:41396. Sign in with steam (bottom left). Click Players and Land Claims. Make sure you don't build in a wipe zone."

*Notes - My live map is edited (java script) so that players see areas where they do not need to build. It has helped keep players out of reset zones and works very well. This command gives them that info.