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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Warp GUI - Dont work

Discussion in 'Skript' started by Famix, Feb 8, 2020.

Thread Status:
Not open for further replies.
  1. Famix

    Famix New Member

    Joined:
    Jun 6, 2019
    Messages:
    9
    Likes Received:
    0
    Skript version: 2.4-alpha3

    Hello! It dont works and i dont know how to do it :emoji_frowning: Please help!


    Code (Text):
    1. #''''''''''''''''''''''''''
    2. options:
    3.     prefix: &c&lWARP&7
    4.  
    5. command /gsetwarp [<Text>]:
    6.     permission: warp.set
    7.     permission message: &8&l[&c&l!&8&l]&7 Nejsi opravnen! &8(warp.set)
    8.     trigger:
    9.         arg-1 is not set:
    10.             send "&8&l[&c&l!&8&l]&7 Pouziti: &c/setwarp <Jmeno>"
    11.             stop
    12.         loop {warp.list::*}:
    13.             if loop-value = arg-1:
    14.                 send "&8&l[&c&l!&8&l]&7 Warp se stejnym jmenem jiz existuje!"
    15.                 stop
    16.         add arg-1 to {warp.list::*}
    17.         set {warp.%arg-1%} to player's location
    18.         send "{@prefix} Warp vytvoren!"
    19.  
    20. command /gwarp [<Text>]:
    21.     trigger:
    22.         arg-1 is set:
    23.             send "set - %arg-1%"
    24.             {warp.%arg-1%} exists:
    25.                 teleport player to {warp.%arg-1%}
    26.                 send "{@prefix} Teleportuji...."
    27.                 stop
    28.         open chest with 5 rows named "&c&lWarpy" to player
    29.         set {warp.cisla} to 0
    30.         loop {warp.list::*}:
    31.             format slot {warp.cisla} of player with paper named "%loop-value%" with lore "&7Klikni pro teleport!" to run [make player execute command "gg"]
    32.             add 1 to {warp.cisla}
    33.             wait 1 tick
    34.  
    35. on inventory click:
    36.     if inventory name of player's current inventory is "&c&lWarpy":
    37.         event-item is not paper:
    38.             stop
    39.         cancel event
    40.         set {_warp.invclick} to event-item's display name
    41.         send "%{_warp.invclick}%" to player
    42.         make player execute command "/gwarp %{_warp.invclick}%"
    43.      
    44.                
    Nothing in console or any error while reloading.

    When i click on any warp it just do anything.
     
    #1 Famix, Feb 8, 2020
    Last edited: Feb 8, 2020
  2. emperorofwater

    Joined:
    Oct 28, 2019
    Messages:
    24
    Likes Received:
    0
    so is this a warp setting & tping skript or just one of these 2?
    --- Double Post Merged, Feb 9, 2020, Original Post Date: Feb 9, 2020 ---
    im sure its because = means that you cant have multible
     
Thread Status:
Not open for further replies.

Share This Page

Loading...