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

[DOC] Event Types

Discussion in 'General' started by Trekkan, Dec 30, 2016.

Tags:
Thread Status:
Not open for further replies.
  1. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
  2. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: TEXT MATCH

    Description: Matches any text that comes through the console. This *IS* CaSe SenSiTivE!

    Parameters:
    CONTAINS:MatchText
    STARTSWITH:MatchText
    ENDSWITH:MatchText

    Notes:

    Works exactly like the PLAYER PUBLIC CHAT event, except that this event will look at ALL text coming in on the console, not just chat. You should only use this command if you know exactly what you are doing. For instance, it is possible to cause a loop by using the same text in the response, as the trigger, etc.

    Short version, use it only if you know now. Do NOT use it to trap player chat, use the PLAYER PUBLIC CHAT event instead.
     
    Last edited: Jan 2, 2017
  3. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player New Connected

    Description: Fires when a new player connects to the server. A player is considered new, if they match ALL of the following conditions:
    Level: 1
    Health: 100
    Deaths: 0
    Zombies: 0
    Player Kills: 0
    Score: 0​

    Parameters:
    none

    Event Variables:
    Player

    Notes:
    This event fires 60 seconds after the player joins the server. This is due to the length of time it takes for a player to actually be fully logged into the server, and the player data to be updated correctly.
     
  4. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Connecting

    Description: As soon as a player starts to connect to the server, this event fires. This is prior to any checks against EAC, etc.

    Parameters:
    none

    Event Variables:
    Player

    Notes:
    Not all player data may be filled out when the event fires. It depends on whether or not the player has ever connected to the server before and what data RAT might already have about the player.
     
  5. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Connected

    Description: After a player has fully connected to the server. Meaning they have passed all EAC checks and whatnot.

    Parameters:
    none

    Event Variables:
    Player

    Notes:
    The player may not be fully in the game at this point, meaning they could be staring at the loading screen still. Unfortunately there is no new event for me to trap once the player is actually in the game and able to move around. I've requested a notification of this from TFP, but we'll see if/when they add it.
     
  6. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Disconnected

    Description: The player has disconnected from the server

    Parameters:
    none

    Event Variables:
    Player

    Notes:
     
  7. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Died

    Description: The player has died

    Parameters:
    none

    Event Variables:
    Player

    Notes:
     
  8. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Kicked

    Description: The player has been kicked from the server using the kick command

    Parameters:
    none

    Event Variables:
    Player
    Kicked

    Notes:
     
  9. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Banned

    Description: The player has been banned from the server using the ban command

    Parameters:
    none

    Event Variables:
    Player
    Banned

    Notes:
     
  10. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Unbanned

    Description: The player has been unbanned from the server.

    Parameters:
    none

    Event Variables:
    Player
    Banned

    Notes:
     
    Last edited: Jan 2, 2017
  11. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Airdrop Spawned

    Description: An airdrop has spawned in the game world

    Parameters:
    none

    Event Variables:
    {airdrop_coords}

    Notes:
     
  12. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Public Chat

    Description: A player has typed something in the public chat window

    Parameters:
    CONTAINS:MatchText
    STARTSWITH:MatchText
    ENDSWITH:MatchText
    LEVEL:=,<,><level>

    Event Variables:
    Player

    Notes:
    You can have multiple parameters by separating them with two || (pipes).
    ** If you use the LEVEL command, it must be the last parameter.

    Example: STARTSWITH:!rules

    Player types the !level command
    Player must be exactly level 10
    Example: STARTSWITH:!level||LEVEL:=10

    Player must be higher than level 10
    Example: STARTSWITH:!level||LEVEL:>10

    Player must be less than level 10
    Example: STARTSWITH:!level||LEVEL:<10​

    All parameters are considered as OR logic, meaning either one will be considering a match. There is currently no AND logic.

    This is probably one of the most used events you can use. Because you can match commands from your players and then perform the script commands against that player, location, etc.
     
    Last edited: Jan 15, 2017
  13. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Spawn Died

    Description: A player has respawned into the world after dying.

    Parameters:
    <none>

    Event Variables:
    Player
     
  14. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Spawn Join

    Description: A player has spawned into the world after joining the server

    Parameters:
    <none>

    Event Variables:
    Player
     
  15. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Player Spawn Teleport

    Description: A player has respawned into the world after a teleport.

    Parameters:
    <none>

    Event Variables:
    Player
     
  16. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Server Down

    Description: RAT is unable to detect the server from either a telnet connection, or the server process itself.
    Parameters:
    <none>

    Event Variables:
    Common
     
  17. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Server Up

    Description: RAT is has detected the server being up.
    Parameters:
    <none>

    Event Variables:
    Common
     
  18. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Server Restart

    Description: RAT is restarting the server, usually due to a scheduled restart, etc.
    Parameters:
    <none>

    Event Variables:
    Common
     
  19. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Server Failed Ping Check

    Description: The server has not responded to ping checks. If you have enabled the Server Ping Check.
    Parameters:
    <none>

    Event Variables:
    Common
     
  20. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,234
    Event Name: Server Failed RAM Check

    Description: The 7D2D server RAM usage has exceeded your set limit.
    Parameters:
    <none>

    Event Variables:
    Common
     
Thread Status:
Not open for further replies.

Share This Page