1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skript-mirror 0.19.1

Natural reflection utilities for Skript

  1. MeHow

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    128
    Likes Received:
    12
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,093
    Likes Received:
    146
    btk5h updated skript-mirror with a new update entry:

    skript-mirror 0.14.0

    Read the rest of this update entry...
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,093
    Likes Received:
    146
  4. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    Code (Skript):
    1. effect testing %player%:
    2.     trigger:
    3.         open virtual chest inventory with size 5 named "&8&l» &3ARENA SETTINGS" to expression-1
    4.         wait 2 ticks
    5.         make a gui slot 0 of expression-1 with black glass named "&7" to run:
    6.             send "..." to expression-1
    7.             close expression-1's inventory
    Code (Skript):
    1. [02:11:32 ERROR]: The expression 'expression' may only be used in a custom syntax. (test.sk, line 19: send "..." to expression-1')
    2. [02:11:32 ERROR]: The expression 'expression' may only be used in a custom syntax. (test.sk, line 20: close expression-1's inventory')
    you cannot use expresssion-x after to run: - from tuske
     
  5. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    154
    Likes Received:
    155
    I'm not sure if this is skript-mirror's fault. It seems to be an issue with whatever gui addon you are using.
     
  6. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    This is why I not open a issue for it, its tuske anyway
     
  7. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    126
    Medals:
    Within the make gui tuske scope, the code is parsed as if it was an inventory click event. You have to set a local variable to the expression's value and use that.
     
    • Informative Informative x 1
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,093
    Likes Received:
    146
    btk5h updated skript-mirror with a new update entry:

    skript-mirror 0.15.0

    Read the rest of this update entry...
     
  9. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    a little help please

    Code (Skript):
    1. on script load:
    2.     import "com.nametagedit.plugin.api.NametagAPI"
    3.                
    4.            
    5. command /test:
    6.     trigger:
    7.         NametagEdit.getApi().setPrefix(player, "&c")
     
  10. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    154
    Likes Received:
    155
    The import effect was changed into the import block.
    Code (Skript):
    1. import:
    2.   com.nametagedit.plugin.api.NametagAPI
     
    • Like Like x 1
  11. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    do you have any idea why this do not work?

    Code (Skript):
    1. import:
    2.     com.nametagedit.plugin.api.NametagAPI
    3.              
    4.          
    5. command /test:
    6.     trigger:
    7.         NametagEdit.getApi().setPrefix(player, "&c")
    Code (Skript):
    1. Can't understand this condition/effect: NametagEdit.getApi().setPrefix(player, "&c")
     
  12. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    154
    Likes Received:
    155
    You imported NametagAPI, not NametagEdit.
     
  13. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    thanks
     
  14. xbxy

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    170
    Likes Received:
    8
    Code (Text):
    1.  
    2.  List<String> record = new ArrayList();
    3.  vg.addComponent(new VexText(10, 20, "test"));
    4.  
    This code in java should I write in SK?
     
  15. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    154
    Likes Received:
    155
    Do you have more context?
     
  16. xbxy

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    170
    Likes Received:
    8
    I want to get an ArrayList, the following two kinds of code, how should I write?
    Code (Text):
    1.  
    2. set {_text} to new ArrayList("text1" and "text2")
    3.  
     
  17. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    after 0.15.0 update if you use skquery

    Code (Skript):
    1. command /test:
    2.     trigger:  
    3.         testing(player)
    4.        
    5.        
    6. function testing(p: player):
    7.     {_p}.setAllowFlight(true)
    8.     send "the code after the line from above will not be used" to {_p}
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,093
    Likes Received:
    146
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,093
    Likes Received:
    146
  20. krulaks

    krulaks Member

    Joined:
    Aug 9, 2017
    Messages:
    17
    Likes Received:
    0
    Is it possible to import functions from bungecoord plugin?

    I mean I wanted to use api of this bungee plugin:
    Code (Skript):
    1. https://www.spigotmc.org/resources/party-and-friends-for-bungeecord.9531/
    2. http://simonsator.de/JavaDoc/Party-and-Friends-MySQL-API/overview-summary.html

    Can i somehow import "de.simonsator.partyandfriends.api.party" to spigot server?

    Thank you in advance!
     
Loading...