need help with my cosmetic skript plis

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

    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.
Feb 24, 2017
191
7
0
foroendertheth.foroactivo.com
I need help because whend people leave the server and they have a dye whend they join again they lost the item they buy. and how i can set whend he buy that item can just selec that item and no buyit again plis help

sorry for my bad English I am Spanish


code_language.skript:
on rightclick holding a gold sword:
    player has permission "user.lobby"
    player is in world "Lobby"
    open chest with 1 rows named "&a&lCosmeticos" to player
    format slot 0 of the player with 1 sponge named "&eSalto Epico 100" to close then run [make player execute command "/salto"]
    format slot 1 of the player with 1 sugar named "&eVelocidad Epica 100" to close then run [make player execute command "/velocidad"]
#Salto epico
command /salto:
    permission: user.lobby
    trigger:
        if player's money is more than or equal to 100:
            subtract 100 from player's money
            give 1 sponge named "&aSalto &bEpico" to the player
        else:
            send "&c&lLosiento No tienes dinero."
            send "&bPero En la tienda Podras comprarlo o ganalo votando en el lobby"
command /velocidad:
    permission: user.lobby
    trigger:
        if player's money is more than or equal to 100:
            subtract 100 from player's money
            give 1 sugar named "&aVelocidad &bEpica" to the player
        else:
            send "&c&lLosiento No tienes dinero."
            send "&bPero En la tienda Podras comprarlo o ganalo votando en el lobby"
on rightclick holding a sponge:
    player has permission "user.lobby"
    player is in world "Lobby"
    apply jump boost 8 to the player for 10 second
    send "&9Salto epico 10 segundos"
    remove 1 sponge from the player
    give 30 gray dye to the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    give 1 sponge to the player
#Velocidad
on rightclick holding a sugar:
    player has permission "user.lobby"
    player is in world "Lobby"
    apply speed 8 to the player for 10 second
    send "&9rapides epica 10 segundos"
    remove 1 sugar from the player
    give 30 gray dye to the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    remove 1 gray dye from the player
    wait 1 second
    give 1 sugar to the player
 
I Will fix iT but i have No time now i Will do it in About 10,5 Hours from now or someone Else fix it
 
Status
Not open for further replies.