• 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Famix

New Member
Jun 6, 2019
9
0
1
23
Skript version: 2.4-alpha3

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


Code:
#''''''''''''''''''''''''''
options:
    prefix: &c&lWARP&7

command /gsetwarp [<Text>]:
    permission: warp.set
    permission message: &8&l[&c&l!&8&l]&7 Nejsi opravnen! &8(warp.set)
    trigger:
        arg-1 is not set:
            send "&8&l[&c&l!&8&l]&7 Pouziti: &c/setwarp <Jmeno>"
            stop
        loop {warp.list::*}:
            if loop-value = arg-1:
                send "&8&l[&c&l!&8&l]&7 Warp se stejnym jmenem jiz existuje!"
                stop
        add arg-1 to {warp.list::*}
        set {warp.%arg-1%} to player's location
        send "{@prefix} Warp vytvoren!"

command /gwarp [<Text>]:
    trigger:
        arg-1 is set:
            send "set - %arg-1%"
            {warp.%arg-1%} exists:
                teleport player to {warp.%arg-1%}
                send "{@prefix} Teleportuji...."
                stop
        open chest with 5 rows named "&c&lWarpy" to player
        set {warp.cisla} to 0
        loop {warp.list::*}:
            format slot {warp.cisla} of player with paper named "%loop-value%" with lore "&7Klikni pro teleport!" to run [make player execute command "gg"]
            add 1 to {warp.cisla}
            wait 1 tick

on inventory click:
    if inventory name of player's current inventory is "&c&lWarpy":
        event-item is not paper:
            stop
        cancel event
        set {_warp.invclick} to event-item's display name
        send "%{_warp.invclick}%" to player
        make player execute command "/gwarp %{_warp.invclick}%"

Nothing in console or any error while reloading.

When i click on any warp it just do anything.
 
Last edited:
so is this a warp setting & tping skript or just one of these 2?
[doublepost=1581232721,1581224234][/doublepost]im sure its because = means that you cant have multible
 
Status
Not open for further replies.