Ranks on server

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

P_refixes

Member
May 21, 2020
4
0
0
23
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:
command /niceshop:
    trigger:
        wait 1 tick
        open chest with 6 rows named "&6&lNice Shop" to player
        wait 1 tick

        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"]
        wait 1 tick
        if player is holding name tag:
            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
 
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:
command /niceshop:
    trigger:
        wait 1 tick
        open chest with 6 rows named "&6&lNice Shop" to player
        wait 1 tick

        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"]
        wait 1 tick
        if player is holding name tag:
            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
I modified your skript a bit depending on what you wanted. And i recommend you use the vanilla or TuSKe inventories. Like this:
code_language.skript:
command /niceshop:
    trigger:
        open virtual chest inventory with size 6 named "&6&lNice Shop" to player
        set {_vip.vouncher} to name tag named "&6&lVIP Vouncher"
        set line 1 of lore of {_vip.vouncher} to "&c&lYou Get /feed and /nick!"
        wait a tick
        format a gui slot 10 of player with {_vip.vouncher} to run:
            give 1 of {_vip.vouncher} to player's inventory
       
on right click:
    set {_vip.vouncher} to name tag named "&6&lVIP Vouncher"
    set line 1 of lore of {_vip.vouncher} to "&c&lYou Get /feed and /nick!"
    if player's held item = {_vip.vouncher}:
        #This part would depend on what permission plugins you have to add the commands, to use /feed and use /nick to the player.
        console command "pex user %player% add nickchange.use"
        console command "pex user %player% add feed.use"
        #If you want set the group VIP to player do:
        console command "pex user %player% group set Vip"
 
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?
 
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?
I recommended TuSKe or vanilla inventories because SkQuery inventories have bugs. But well, i didnt try this:
code_language.skript:
command /shop:
    trigger:
        open chest with 6 rows named "&6&lNice shop" to player
        set {_vip.vouncher} to name tag named "&6&lVIP Vouncher"
        set line 1 of lore of {_vip.vouncher} to "&c&lYou Get /feed and /nick!"
        wait a tick
        format slot 10 of player with {_vip.vouncher} to close then run [give 1 of {_vip.vouncher} to player's inventory]
 
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
 
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
What do you mean when you say to make a 'nice shop'? And I doubt that your stores dont work because you downloaded TuSKe.
 
Status
Not open for further replies.