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