Noob RAT User

Aussie3236

New member
Apr 8, 2021
6
2
0
51
Hi Guys,
Today i setup a 7d2d box. Instaled RAT on a dedicated server box hosted in the world wide web thing. All Green lights when i connect with client connection. Can see players, Donate items ect. The issue i have is with Events. I tried the poop potatos event. Yep it's enabled ect.... I might be missing something here but this is how i expected it to work.
In game: Press "T" to open chat. In global i typed /poop "playername" and nothing happens. I also noticed with Airdrops no notifications and i tried building a teleport for players for hord nights to a safe location and nothing works. What am i missing here?
Here is an export of my script:
{
"ID": "288",
"Type": "Player Any Chat",
"Name": "Teleport Player Hord",
"Enabled": "1",
"Script": "teleportplayer {player_steamid} {tele_hord}\r\nsayplayer {player_steamid} \"[AE00FF]Whoosh, your in the north.\"",
"Description": "Teleport player on Hord night",
"Parameters": "STARTSWITH:/hord",
"Source": "User",
"OrderBy": "1",
"InitiatedBy": null,
"IsAdvancedScript": false,
"CallBackName": null,
"IsServerEvent": true
}
 
I don't know what the {tele_hord} variable is. I have a command that teleports players to the lobby on my server. It looks like this:

teleportplayer {player_steamid} -2812 43 -1041

You can also use "tp" instead of teleportplayer. You have to use coordinates. x z y format with just spaces between them. You can get a location by standing somewhere then typing in the F1 console "listplayers" without the quotes. From there it will give you POS of every player along with other information. Use those 3 numbers by your name but do not use commas. Just spaces.

if you run the command manually you can teleport players to other players using "tp steamID steamID" but you can also use the playerID as well. The first player/steam ID is the player you are teleporting and the 2nd is the player/steamID that the first ID is going to go to.

I am also not sure what the "r" is for on it's own line.

The sayplayer command would look like this.

sayplayer {player_steamid} "[AE00FF]Whoosh, your in the north."

below is what it should look like in RATS event editor.

Code:
teleportplayer {player_steamid} -2812 43 -1041
sayplayer {player_steamid} "[AE00FF]Whoosh, your in the north."

SteamID or player ID can be used interchangeably. However, SteamID is persistent and wont change unless the person uses another steam account. Player ID on the other hand is new for every saved world. If you reset or create another world the PlayerIDs won't always be the same. I find it depends on the order that they join for the PlayerID.
 
Last edited:
On a side note I noticed the poop potatoes command didn't work for me either when testing. I had to just make it run for the player typing the command by changing the {2} to {player_steamid} and increase the admin level. The admin settings are specified to each game save under the "saves" folder that your world is saved in. The file is serveradmin.xml. This is where you can set the server admin rights. The rights range between 0-1000. 1000 being the default for any new player joining. 0 is the ultimate admin and has rights to shutdown the server, etc. You can set any admins in between with special rights and then check their permissions in RATS conditional area using the "ALEVEL:<#", "ALEVEL:=#" , or "ALEVEL:>#" replacing the # sign with a number 0-1000.

give command just spawns the item by them where the bc-give puts it in their inventory.
Here is an example of a bc-give command.

bc-give /silent {player_steamid} casinoCoin /c=5000

the /silent does not say anything to the player or anyone. It just stuffs the item in their inventory. The player will see the usual game notification as if they picked it up but nothing else.
 
Also, make sure you did not accidentally enable File -> "Client Mode". Make sure that is unselected in the drop down. If its on, that specifically tells RAT not to listen to any events other than chat/player lists.
 
Thank you. So much for your replies. The script i pasted was an export from RAT so perhaps it wasn't very clear. This is my Events Scipt and also i will paste my Teleports Screen.
1298

Tele Screen.
1299

Based on what i have seen in examples on other scripts in the APP. I figured is should have looked as outlined in the screen shots. I am trying to use a condition so the /hord is a friendly name to ref the script.
In the log, Once i execute the script all i see is.
2021-04-10 05:21:30 INF (BCM) Global:AU_Dog:171: /hord
2021-04-10 05:21:30 INF Chat (from 'XXXXXXXXXXXXXXXXXXX, entity id '171', to 'Global'): 'AU_Dog': /hord

The RAT client interface is set as client. This is due to the server being hosted by a company outside of my control. I don't think i can configure the server options if the server is not a localhost to my environment. If you think directly adding the x z y in the script will help then im happy to ammend the script. I thought i would have seen a logging message for the script to execute on the log but nothing.
Thanks again for all your guys help.
 
You need to uncheck the client setting as I said. Its ok that you're hosted remotely, that isn't what that setting is for.

there needs to be one and only one client in RAT connected that has full access to do everything. That means, your copy of RAT should NOT have client mode enabled. Now, if you have say other admins that want to use RAT to connect to your server, THEY should be in client mode. This prevents RAT from responding to events twice (or more depending on connected RAT clients). Otherwise if someone did a command that gave them an item (as an example), all RAT clients would issue the command give the person extra items.