VariableTriggers

VariableTriggers

VT Logo

Fourms {{|Tickets / Bug Reports Share Scripts Video Examples Permissions About VT


Make your own plugin like features and more using VariableTriggers

This is a very powerful plugin that has unlimited potential. Create triggers that run lines of script when a player Clicks or Walks on a block (dirt, door, switch, trigger, torch, any block) or Create Event Triggers such as PlayerDeath , EntityDeath, BlockBreak, BlockPlaced, Join, Quit, Respawn, Interact and EntitySpawn that also run scripts. You can define Area Triggers and Command Triggers as well. You can use Dynamic Object variables and conditional IF and ELSE statements in the scripts. You can run any command that a player or OP can run and many speacial built-in commands to Teleport, Spawn Entities, Play Effects Visual or Sound, Set Blocks, Toggle Blocks, Check Players Heath and much more!. The scripts are executed on their own threads to take the strain off of the main server thread.

Arrow Vault

Arrow Script Commands

Arrow Triggers

Arrow Place Holders

Arrow Functional Place Holders

Arrow Dynamic Objects

Arrow Scripts

Arrow In-Game Commands

Arrow Notepad++ UDL

Arrow

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of adambor adambor Sep 21, 2014 at 20:29 UTC - 0 likes

    @H8llfire: Go

    OK but what combination do you think.

  • Avatar of rysroma rysroma Sep 21, 2014 at 14:29 UTC - 0 likes

    Mistake at:

    Execute a command as as if it were typed in the server console. This is good if OP will not get the job done but ony works with commands that can be executed from the console

    not ony but only :D

  • Avatar of adambor adambor Sep 21, 2014 at 08:50 UTC - 0 likes

    Please can you add variables or functional PHS to inventory menu. This will be great. Thanks :D

  • Avatar of Gaurav1234 Gaurav1234 Sep 15, 2014 at 23:46 UTC - 0 likes

    <<reply 2345175>>

    Yeah, I did that.  It still keeps going to localhost.

    EDIT: As in the actual IP of the server (162.254 blablabla, not 127.0.0.1)

    Last edited Sep 15, 2014 by Gaurav1234
  • Avatar of Lyoko_Firelyte Lyoko_Firelyte Sep 15, 2014 at 23:26 UTC - 0 likes

    @Gaurav1234: Go

    Turn off server, edit MySQL.yml file, save file, turn server on :)

    BFAK:90735004,cc5ec88dfba6293887a2f34e5fe38c9ae259b0e4f38968f5b8717c4323db9c06

  • Avatar of Gaurav1234 Gaurav1234 Sep 15, 2014 at 22:27 UTC - 0 likes

    <<reply 2344656>>

    It appears that no matter what, VariableTriggers tries to connect to a database at localhost no matter what I put into the MySQL.yml file.

  • Avatar of KyadCK KyadCK Sep 15, 2014 at 04:16 UTC - 0 likes

    @Gaurav1234: Go

    For INSERT? Nothing.

    If I did SELECT? It turn this;

    Into this;

      MYSQL:
        Integers: {}
        Strings: {}
        StringLists:
          5bd32234-4e15-3d89-8d03-855abb04ca57:
          - begin data
          - 5bd32234-4e15-3d89-8d03-855abb04ca57
          - KyadCK
          - '2014-07-25 03:00:58.0'
          - 6902966a-989b-3bd3-abe5-6792609e536c
          - BritishBob
          - '2014-07-25 14:03:33.0'
          - 5bd32234-4e15-3d89-8d03-855abb04ca57
          - KyadCK
          - '2014-07-27 01:02:35.0'
          - 5bd32234-4e15-3d89-8d03-855abb04ca57
          - KyadCK
          - '2014-08-04 18:23:52.0'
    
    "start line"
    "Row 1, Column 1"
    "Row 1, Column 2"
    "Row 1, Column 3"
    "Row 2, Column 1"
    "Row 2, Column 2"
    "Row 2, Column 3"
    etc
    

    It's up to you to reformat and use the data as you see fit. I use this for my test database;

      ListSQL:
        Override: true
        Script:
        - '    @SETINT $<playeruuid>.RowCounter @MySQL.<playeruuid>'
        - '    @SUBINT $<playeruuid>.RowCounter 1'
        - '    @DIVINT $<playeruuid>.RowCounter 3'
        - '    @PLAYER $<playeruuid>.RowCounter'
        - '    @SETINT $<playeruuid>.ColumnCounter 1'
        - '    @LOOP $<playeruuid>.RowCounter'
        - '        @SETSTR $<playeruuid>.ColumnName <playeruuid>[<var:$<playeruuid>.ColumnCounter>]'
        - '        @PLAYER &6Player UUID:&7 @MySQL.<var:$<playeruuid>.ColumnName>'
        - '        @ADDINT $<playeruuid>.ColumnCounter 1'
        - '        @SETSTR $<playeruuid>.ColumnName <playeruuid>[<var:$<playeruuid>.ColumnCounter>]'
        - '        @PLAYER &ePlayer Name:&2 @MySQL.<var:$<playeruuid>.ColumnName>'
        - '        @ADDINT $<playeruuid>.ColumnCounter 1'
        - '        @SETSTR $<playeruuid>.ColumnName <playeruuid>[<var:$<playeruuid>.ColumnCounter>]'
        - '        @PLAYER &4Submit Date:&c @MySQL.<var:$<playeruuid>.ColumnName>'
        - '        @ADDINT $<playeruuid>.ColumnCounter 1'
        - '        @PLAYER &9--------------------'
        - '    @ENDLOOP'
    

    Which results in this;

  • Avatar of Lyoko_Firelyte Lyoko_Firelyte Sep 15, 2014 at 00:32 UTC - 0 likes

    @Gaurav1234: Go

    It contains whatever output the query provides

  • Avatar of Gaurav1234 Gaurav1234 Sep 15, 2014 at 00:15 UTC - 0 likes

    <<reply 2344334>>

    So in your example, "@MYSQL.<playeruuid>" would be an array?
    What would it contain?

    Thanks

  • Avatar of KyadCK KyadCK Sep 14, 2014 at 18:14 UTC - 0 likes

    @Gaurav1234: Go

    Literal MYSQL commands. Exactly what you would put into command line, you put there.

    Example;

        - '    @MYSQL @MYSQL.<playeruuid> INSERT INTO vt_temp2 (UUID, Name, Date) VALUES("<playeruuid>", "<playername>", NOW());'
    

    Don't forget to make your table first.

    Last edited Sep 14, 2014 by KyadCK

Facts

Date created
May 27, 2012
Categories
Last update
Aug 05, 2014
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
VariableTriggers
Downloads
35,773
Recent files

Authors