Jump to content

How do i make this? (Now in discussion!)


Ezekia

Recommended Posts

Im learning some skript, and my server is going to have a game menu as well as the npcs that are already there.

at the moment, the skript gui is run when you execute the command /games.

i want to:

1. Make it with a nether star that you right click

2. Make the games actually teleport you to their worlds.

3. Figure out how to stop certain cmds from running when u r in the incorrect world (like running /kit in skyblock)

4. Make a message display when you click a game option.

heres the code:

command /games:

  trigger:

    open virtual chest inventory with size 3 named "Games" to player

    format slot 11 with iron chestplate named "&bKitPvP"

    format slot 12 with stick named "&bSumo"

    format slot 13 with red bed named "&bBedwars"

    format slot 14 with stone named "&bFactions"

    format slot 15 with lava bucket named "&bAnarchy"

 

that is the script right now. Can you help with the above points?

i know there is akready a lobby script but i am trying to learn skript, not copy. So helping would ve appreciated!

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

format slot 11 with iron chestplate named "&bKitPvP" to run:
	#code

It's as simple as that. You could make a teleport event such as:

 
 
 
1
 Advanced issues found
 
 
2
Spoiler

format slot 11 with iron chestplate named "&bKitPvP" to run:
    teleport player to location at (100, 60, 100) in world "world"

I made it a spoiler, if you'd like to learn it yourself, but go ahead if you'd like to.

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

unknown.pngunknown.png

Link to comment
Share on other sites

Use of skQuery GUIs is highly discouraged because of the amount of bugs it has. An alternative would be to use TuSKe GUIs or Vanilla GUIs (TuSKe is easier). You can find the syntax for his here.

You can also find helpful documentation for Skript here.

Edited by Star

[VIP] 2019

[JR.MOD] 10/29/2019

[MOD] 12/30/2019

nerd3.png

ok.png

sure.png

q.png

Link to comment
Share on other sites

19 minutes ago, Star said:

Use of skQuery GUIs is highly discouraged because of the amount of bugs it has. An alternative would be to use TuSKe GUIs or Vanilla GUIs (TuSKe is easier). You can find the syntax for his here.

You can also find helpful documentation for Skript here.

I use tuSKe

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

2 hours ago, Creeper1841 said:

format slot 11 with iron chestplate named "&bKitPvP" to run:
	#code

It's as simple as that. You could make a teleport event such as:

Spoiler
 
 
 
1
 Advanced issues found
 
 
2
  Reveal hidden contents

format slot 11 with iron chestplate named "&bKitPvP" to run:
    teleport player to location at (100, 60, 100) in world "world"

I made it a spoiler, if you'd like to learn it yourself, but go ahead if you'd like to.

omg thNkyouthankyouthankyou

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

I now have two things to do left:

  • Make the skript work when you right click a nether star named "&bGame Selector"
  • Stop commands working when you enter a different world (like /kit in bedwars)

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

Hello, I'm glad to hear my code was able to help you. I'll help you with your request for now, but please prefer to the documents, consider using skripthub.net.

For your first request, consider using this:

command /games:
    trigger:
        GamesMenu(player)
on right click:
    if name of player's tool is "&bGame Selector":
        GamesMenu(player)
        
function GamesMenu(p: player):
    open virtual chest with size 3 named "Games" to {_p}
    format gui slot 11 of player with iron chestplate named "&bKitPvP"
    format gui slot 12 of player with stick named "&bSumo"
    format gui slot 13 of player with red bed named "&bBedwars"
    format gui slot 14 of player with stone named "&bFactions"
    format gui slot 15 of player with lava bucket named "&bAnarchy"

Regarding your second request consider using this:

if player is in world "world":

You add it in a skript you currently have. I don't think an example is required.

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

unknown.pngunknown.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...