Hi. Im making a skript about medicines in minecraft for an italian server. And im having problems using the GUI:

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

ItzGabryXV_

Member
Mar 28, 2024
4
0
1
The skript part is like:
function operint(p1: player):
set {_operint} to a new chest inventory with 6 rows with name "&4Operazione per &lINTOSSICAZONE"
set slot 0,1,2,10,11,12,13,20,21,22,30,31,32,33,40,41,42,43,50,51,52,53,60,61,62 of {_operint} to red stained glass pane with name "&4Non stai operando qui" with lore "&cQuesto è il resto del corpo insanguinato del paziente!"
open {_operint} to {_p1}
command /opera <player>:
permission: medical.ex
permission message: &cHai bisogno di conoscenze mediche per fare un operazione chirurgica!
trigger:
if player is holding {@bisturi}:
if distance between player and arg-1 is smaller than 4:
if {anestesizzato::%arg-1%} is set:
if {intossicazione::%arg-1%} is set:
operint(player)
send "&aStai operando %arg-1%" to player
else:
send "&cHai bisogno di un bisturi per fare un operazione chirurgica!" to player

Could u please check if this part of the code is ok? Cuz maybe i didnt copy the variables good.
Tyyy
 
Formatted your code properly with indentations and yeah it should be fine.

Python:
function operint(p1: player):
    set {_operint} to a new chest inventory with 6 rows with name "&4Operazione per &lINTOSSICAZONE"
    set slot 0,1,2,10,11,12,13,20,21,22,30,31,32,33,40,41,42,43,50,51,52,53,60,61,62 of {_operint} to red stained glass pane with name "&4Non stai operando qui" with lore "&cQuesto è il resto del corpo insanguinato del paziente!"
    open {_operint} to {_p1}

    
command /opera <player>:
    permission: medical.ex
    permission message: &cHai bisogno di conoscenze mediche per fare un operazione chirurgica!
    trigger:
        if player is holding {@bisturi}
        if distance between player and arg-1 is less than 4:
            if {anestesizzato::%arg-1%} is set:
                if {intossicazione::%arg-1%} is set:
                    operint(player)
                    send "&aStai operando %arg-1%" to player
                else:
                    send "&cHai bisogno di un bisturi per fare un operazione chirurgica!" to player