Custom Commands by badplayer

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
I am in no way trying to copy Njinir. I just have some ideas for fun commands of my own and to freshen his up a bit. I am using his commands as inspiration.

With the new 2064 Update it brought a lot of awesome features with it, but Player Any Chat is what I am most excited about. No more having 3 events for the same command!!
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Poop Potatos

Usage: /poop {player name}

Type: Player Any Chat

Conditionals: STARTSWITH:/poop||ALEVEL:=0

Script:
say "[00FF00]{2} is pooping potatos!! Don't forget to clean them before you eat them."
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1

Notes: You have to use the give console command rather than bc-give because you want the potatos to fall on the ground. It sells the poop effect better. If you use bc-give, they will spawn in the players backpack.
You also have to have several lines of 1 potato otherwise it spawns a bag with the quantity of potatos in it.

Special thanks to Ciro and Trekkan for helping me with these as I am not the sharpest tool in the shed. Also inspired by Botman
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Bot Reply

Usage: Automatic

Type: Player Public Chat

Conditionals: CONTAINS:bot

Script: say "[00FF00]Oh hai {player_name}"

Notes: This is a fun command to add some randomness to your server. You can add whatever trigger word you want and any reply you want. Inspired by Botman.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Friend Teleport

Usage: /friend {friends name}

Type: Player Any Chat

Conditionals: STARTSWITH:/friend:{player_steamid},{2}

Script:
tele {player_id} {2}
sayplayer {{player_name}} "[AE00FF]Your being teleported to {2}."

Notes: This is an easy teleport to setup.
They have to be allies in game for it to work.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Hunting

Usage: /hunt

Type: Player Any Chat

Conditionals: STARTSWITH:/hunt||COOLDOWN:12H

Script:
sayplayer {{player_name}} "[00FF00] I hope your ready. You gotta be quick! You can only use this once a day."
.RANDOMNUMBER: 85,88
se {player_id} {random_number}
.RANDOMNUMBER: 85,88
se {player_id} {random_number}

Notes: This makes hunting random and you always get 2 animals. You can make it so only 1 animal spawns or 5 if you want. Just add or takeaway the
.RANDOMNUMBER: 85,88
se {player_id} {random_number}

Or you can add predator to the list too. Just add
.RANDOMNUMBER: 90,99
se {player_id} {random_number}

These entity numbers change over time, just type se into the console to see the entity list and make sure these are animals.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
This is a precursor to some of the commands that will be coming up later.

Name: New Player Change Chat Color and Admin Status

Usage: Automatic

Type: Player New Connected

Conditionals: None

Script:
bc-chatcolor {player_name} FFFF00 false
admin add {player_id} 800

Notes: This command sets the chat name color to yellow (you can change the hex color to whatever you want) and adds the admin status to 800.
Now, in all the teleport commands you will have to add the ||ALEVEL:<900 condition to the conditionals box. This will allow you to "turn off" teleports for badplayers. (see what I did there) This will come in handy for the Teleports Remove command and the jail commands coming up.

Admin level 800 will allow players to use teleports.
Admin level 1000 will not allow players to use teleports.

If you need to manually set a player to level 800, you can do it easily in RAT.
In the players tab, right click the players name and choose admins>add
Change the level to 800 and click save That's it. You can verify your work in the permissions tab.
Now do that to all the players and let RAT take it from there.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Teleports Remove

Usage: /remove {player name}

Type: Player Any Chat

Conditionals: STARTSWITH:/remove||ALEVEL:=0

Script:
admin add {2} 1000
sayplayer {{player_name}} "[00FF00] {2}'s teleports have been removed."
sayplayer {2} "[00FF00] Your teleports have been removed for breaking the rules."

Notes: I have often thought about being able to remove a players teleport privileges. Now it is possible. This one is self explanatory.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Teleports Reinstate

Usage: /reinstate {player name}

Type: Player Any Chat

Conditionals: STARTSWITH:/reinstate||ALEVEL:=0

Script:
admin add {2} 800
sayplayer {{player_name}} "[00FF00] {2}'s teleports have been reinstated."
sayplayer {2} "[00FF00] Your teleports have been reinstated."

Notes: This one is also self explanatory. Just the opposite of the one above.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Jail Arrest Player

Usage: /arrest {player name}

Type: Player Any Chat

Conditionals: STARTSWITH:/arrest||ALEVEL:=0

Script:
teleportplayer {2} {tele_jail}
admin add {2} 1000
say "[FFFF00]{2} has been sent to jail by {player_name}"
sayplayer {2} "[FFFF00]Warning! You have been arrested and your teleport powers have been removed. An admin will be in touch shortly."

Notes: To begin with, you will need to setup a jail location in the teleports/misc tab. I personally made an iron bar cage in the safehouse that is also trader protected. Just make sure the jail teleport location is in that cage and everything will be fine. With the players admin level being changed to 1000, they will not be able to teleport out and they won't be able to break out because of the trader protection. Another good option would be to make a cell in the ground somewhere that is trader protected. You could let your imagination go wild with this one. You could even use the new gallows POI to have a public execution. So many options.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Jail Release Player

Usage: /release {player name}

Type: Player Any Chat

Conditionals: STARTSWITH:/release||ALEVEL:=0

Script:
teleportplayer {2} {tele_safehouse}
admin add {2} 800
say "[FFFF00]{2} has been released from jail by {player_name}"
sayplayer {2} "[FFFF00]You are being released from jail and being telelported to the Safehouse. Your teleport powers have been restored. Remember we are watching you....."

Notes: This will release the player from jail and give them back their teleport privileges.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Admin Meassage to Discord

Usage: /calladmin {message}

Type: Player Any Chat

Conditionals: STARTSWITH:/calladmin

Script:
.DSAY:[ADMIN MESSAGE]<{player_name}> {player_pos} {player_chat} [ADMIN MESSAGE]

Notes: Naturally, you will have to have the discord integration setup with this.

I wanted a simple way for people to get a hold of an admin. I am usually on Discord, so it is the logical choice.

I added the [ADMIN MESSAGE] to the beginning and end of the discord message so it can easily spotted and taken care of.

I also added the {player_pos} variable so you know where the player is.
 
Last edited:

Abrondino

Member
Name: Reset A Small Area

Usage: /reset {chunk radius}

Type: Player Public Chat

Conditionals: STARTSWITH:/reset||ALEVEL:=0

Script:
bc-reset {player_pos} /r={2}
sayplayer {{player_name}} "[00FF00] You have reset the chunks."
cr {player_pos}

Notes: This is a dangerous script to use but powerful when cleaning up old bases.
It resets that particular chunk (16x16 block area) you are standing in back to day one, from bedrock to sky.
You should be flying when you use this command.
Set the chunk radius to no more than 2 or 3 or you might crash the server. Best if you do it when no one is on the server. The radius you set is that many chunks around you plus the one you are standing in. A radius of 1 means you are resetting a 3x3 chunk area. A radius of 2 means you are resetting a 5x5 chunk area. A radius of 3 means you are resetting a 7x7 chunk area and so on.
I absolutely LOVE the idea of this event because I run a server where everyone joining gets "The Hammer Of Thor" and some people use it to destroy POIs.

Curious, is there another requirement I am missing besides the event? I cannot seem to get it to work on my test server. I tried to teleport away and back along with logging out and back in. The POI has the same damage as before I typed in the event. It does say "You have reset the chunks", though.

Thank you!
 

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
I absolutely LOVE the idea of this event because I run a server where everyone joining gets "The Hammer Of Thor" and some people use it to destroy POIs.

Curious, is there another requirement I am missing besides the event? I cannot seem to get it to work on my test server. I tried to teleport away and back along with logging out and back in. The POI has the same damage as before I typed in the event. It does say "You have reset the chunks", though.

Thank you!
Yeah, the more I played with it the more unreliable it got. It does work sometimes, but not worth the hassle. Much easier to just do the command in the F1 console.
 

Trekkan

JFF Administrator
Staff member
In order to reset a chunk, all players must be out of it before it'll work (it has to unload from the server, then the reset actually works). That much I remember from others doing similar things.
 

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
This is different. This only resets part of the chunk. I use it to clean up old bases that people don't come around.
 

Abrondino

Member
The command usage is also /reset (Radius # of blocks from person doing command).

It might work better if the command first teleported you out of the area of effect and then resets the chunk?
 

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
I think it is because RAT doesn't communicate your location, that's why I added the player pos script.

I think that's what mucks it up.

EDIT: I have removed the /reset command from above.
 
Last edited:

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Admin join message

Usage: Automatic

Type: Player Spawn Join

Conditionals: ALEVEL:=0

Script: say "[00ff00] Oh crap, look busy. The boss is coming."
 

badplayer

Active Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Donor Teleports

Usage: /casino

Type: Player Any Chat

Conditionals: STARTSWITH:/casino||ALEVEL:=490||HASFUNDS:{player_steamid},20

Script:
.BANKWITHDRAW:{player_steamid},20
teleportplayer {player_steamid} {tele_casino}
sayplayer {player_steamid} "[AE00FF] Whoosh, your at the casino where you will turn into a zombie if you get a lap dance."

Setting up donor only teleports
I have thought of a way to add donor teleports that only that donor can use. Before I was just setting up teleports at permission level 500 (my donor admin level). The problem with that is another donor with that permission level can teleport if they know the command.
To remedy this, just use the ALEVEL:=490 variable.
Each donor can have their own ALEVEL and as long as it is less than the 500 level, everything will work fine.

So at the 500 level, I have /lounge setup as a donor only teleport that any donor can go to. And then each donor gets their own permission level less than 500.
player a ALEVEL:=490
player b ALEVEL:=489
player c ALEVEL:=488
and so on

The only drawback to this is that the player can't set it up themselves or edit it. And each teleport name has to be unique. It is usually not a big deal because they don't change much anyway.
 
Last edited:
Top