[DOC] Event Commands

Trekkan

JFF Administrator
Staff member
Event commands are custom commands I've written and now exposed so that you can use them from within the Script section of events. All event commands are prefixed with a . (period) when calling them. Multiple Parameters are separated by two || (pipes).

Commands with a second parameter of either PUBLIC or PRIVATE, means that the command responses will be sent to public chat, or whispered privately to the person that initiated the command.

All examples below, would be pasted into the Script section of an event.

See the Event Variables thread for information about each variable that the content it can contain.

SENDTOIRC
Example: .SENDTOIRC: {player_name} has connected to the server!
SENDEMAIL
Example: .SENDEMAIL:SubjectText||BodyText||toemail@address.com
All emails are sent FROM the address specified from within the RAT Settings​

SEENPLAYER
Example: .SEENPLAYER:PUBLIC:{seen_name}||The last the time I saw {seen_name} was {seen_time}.||I've never seen {seen_name} here on {servername}
GETGRABBAG
Example: .GETGRABBAG
There are many responses from the grabbag system, I will be working to allow customization of these at a later time.​

NEXTBLOODMOON
Example: .NEXTBLOODMOON:PUBLIC:The bloodmoon is tonight!!||The next blood moon is in {bloodmoon_days} days.​

ADDTELEPORT
Example: .ADDTELEPORT:PRIVATE:Destination Added, Name : {tele_dest_name}, Location: {tele_dest_loc}||You are at the maxium of {tele_dest_max} teleport destinations. Either remove, or overwrite an existing destination.​

REMOVETELEPORT
Example: .REMOVETELEPORT:PRIVATE:Destination '{tele_dest_name}' successfully deleted.||Unable to delete '{tele_dest_name}' destination, make sure the destination name is correct and try again.​

LISTTELEPORTS
Example: .LISTTELEPORTS:PRIVATE:Name: {tele_dest_name}, Position: {tele_dest_loc}||No teleport destinations found.​

TELEPORT
Example: .TELEPORT:PRIVATE:Teleporting you to '{tele_dest_name}'||Unable to find destination '{tele_dest_name}'||You must wait {tele_dest_time} minutes between teleports.​

SERVERVOTECLAIM
Example: .CLAIMSERVERVOTE:PUBLIC:Thanks for your vote, here is a little something for your effort!||Unable to find your vote! Visit 7 Days To Die Server List | 7 Days To Die Multiplayer Servers to vote!||Nice try, but you've already claimed your vote for today!
RANDOMNUMBER
Example: .RANDOMNUMBER:1,100
Returns a value as variable {random_number}
DISCORDW
Example: .DISCORDW:This will write to the local Discord window in RAT
Writes whatever you say to the Discord local window. Does not actually send to Discord.​

CHATW

Example: .CHATW:This will write to the local Chat window in RAT
Writes whatever you say to the Chat local window. Does not actually send to game chat.
DSAY
Example: .DSAY:Hello Discord peeps!
Sends the content to Discord​
 
Last edited:
Top