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.

Ranks on server

Discussion in 'Skript' started by P_refixes, May 21, 2020 at 8:35 AM.

  1. P_refixes

    P_refixes Member

    Joined:
    Thursday
    Messages:
    4
    Likes Received:
    0
    Alright, i wanted to make a gui where people can buy a rank with ingame money. (Not BuyCraft). I was making the skript for a gui and everything works but the only thing that doesnt work is the moment where it should rename. I wanted to make the skript rename the item but that doesnt work. I downloaded different plugins but it just doesnt work.

    Code (Text):
    1. command /niceshop:
    2.     trigger:
    3.         wait 1 tick
    4.         open chest with 6 rows named "&6&lNice Shop" to player
    5.         wait 1 tick
    6.  
    7.         format slot 10 of player with name tag named "&6&lVIP Voucher" with lore "&c&lYou Get /feed and /nick!" to run [execute console command "give %player% name_tag 1"]
    8.         wait 1 tick
    9.         if player is holding name tag:
    10.             to run [execute console command "rename &a&lVIP Voucher"]
    this is my skript. I would like it if someone could help me :emoji_slight_smile:
    -Kevin
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    533
    Likes Received:
    20
    I modified your skript a bit depending on what you wanted. And i recommend you use the vanilla or TuSKe inventories. Like this:
    Code (Skript):
    1. command /niceshop:
    2.     trigger:
    3.         open virtual chest inventory with size 6 named "&6&lNice Shop" to player
    4.         set {_vip.vouncher} to name tag named "&6&lVIP Vouncher"
    5.         set line 1 of lore of {_vip.vouncher} to "&c&lYou Get /feed and /nick!"
    6.         wait a tick
    7.         format a gui slot 10 of player with {_vip.vouncher} to run:
    8.             give 1 of {_vip.vouncher} to player's inventory
    9.        
    10. on right click:
    11.     set {_vip.vouncher} to name tag named "&6&lVIP Vouncher"
    12.     set line 1 of lore of {_vip.vouncher} to "&c&lYou Get /feed and /nick!"
    13.     if player's held item = {_vip.vouncher}:
    14.         #This part would depend on what permission plugins you have to add the commands, to use /feed and use /nick to the player.
    15.         console command "pex user %player% add nickchange.use"
    16.         console command "pex user %player% add feed.use"
    17.         #If you want set the group VIP to player do:
    18.         console command "pex user %player% group set Vip"
     
  3. P_refixes

    P_refixes Member

    Joined:
    Thursday
    Messages:
    4
    Likes Received:
    0
    Well, it looks good but i did everything with skQuery. Also the /shop command. It doesnt work so do you know how to make this skript in skQuery so that my other shops work?
     
  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    533
    Likes Received:
    20
    I recommended TuSKe or vanilla inventories because SkQuery inventories have bugs. But well, i didnt try this:
    Code (Skript):
    1. command /shop:
    2.     trigger:
    3.         open chest with 6 rows named "&6&lNice shop" to player
    4.         set {_vip.vouncher} to name tag named "&6&lVIP Vouncher"
    5.         set line 1 of lore of {_vip.vouncher} to "&c&lYou Get /feed and /nick!"
    6.         wait a tick
    7.         format slot 10 of player with {_vip.vouncher} to close then run [give 1 of {_vip.vouncher} to player's inventory]
     
  5. P_refixes

    P_refixes Member

    Joined:
    Thursday
    Messages:
    4
    Likes Received:
    0
    No, i ment, Could u make the nice shop skript into skQuery? I made all my other shops with it and they dont work now because i downloaded TuSke
     
  6. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    533
    Likes Received:
    20
    What do you mean when you say to make a 'nice shop'? And I doubt that your stores dont work because you downloaded TuSKe.
     
  7. P_refixes

    P_refixes Member

    Joined:
    Thursday
    Messages:
    4
    Likes Received:
    0
    The nice shop skript. and yes, my other shops dont work anymore because of TuSKe
     
Loading...