Can any help me with this skript?
on rightclick on npc:
if npc is named "&a&lKrav":
wait 1 tick
Open chest with 3 rows named "&a&lKRAV" to player
wait 1 tick
Format slot 0 of player with Light Blue Stained Glass to close
Format slot 1 of player with White Stained Glass to close
Format slot 2 of player with Light Blue Stained Glass to close
Format slot 3 of player with White Stained Glass to close
Format slot 4 of player with Light Blue Stained Glass to close
Format slot 5 of player with White Stained Glass to close
Format slot 6 of player with Light Blue Stained Glass to close
Format slot 7 of player with White Stained Glass to close
Format slot 8 of player with Light Blue Stained Glass to close
Format slot 9 of player with White Stained Glass to close
Format slot 17 of player with White Stained Glass to close
Format slot 18 of player with Light Blue Stained Glass to close
Format slot 19 of player with White Stained Glass to close
Format slot 20 of player with Light Blue Stained Glass to close
Format slot 21 of player with White Stained Glass to close
Format slot 22 of player with Light Blue Stained Glass to close
Format slot 23 of player with White Stained Glass to close
Format slot 24 of player with Light Blue Stained Glass to close
Format slot 25 of player with White Stained Glass to close
Format slot 26 of player with Light Blue Stained Glass to close
Format slot 27 of player with White Stained Glass to close
Here is the fails https://gyazo.com/8205b51ba512b1cfeb6375f718782118
on rightclick on npc:
if npc is named "&a&lKrav":
wait 1 tick
Open chest with 3 rows named "&a&lKRAV" to player
wait 1 tick
Format slot 0 of player with Light Blue Stained Glass to close
Format slot 1 of player with White Stained Glass to close
Format slot 2 of player with Light Blue Stained Glass to close
Format slot 3 of player with White Stained Glass to close
Format slot 4 of player with Light Blue Stained Glass to close
Format slot 5 of player with White Stained Glass to close
Format slot 6 of player with Light Blue Stained Glass to close
Format slot 7 of player with White Stained Glass to close
Format slot 8 of player with Light Blue Stained Glass to close
Format slot 9 of player with White Stained Glass to close
Format slot 17 of player with White Stained Glass to close
Format slot 18 of player with Light Blue Stained Glass to close
Format slot 19 of player with White Stained Glass to close
Format slot 20 of player with Light Blue Stained Glass to close
Format slot 21 of player with White Stained Glass to close
Format slot 22 of player with Light Blue Stained Glass to close
Format slot 23 of player with White Stained Glass to close
Format slot 24 of player with Light Blue Stained Glass to close
Format slot 25 of player with White Stained Glass to close
Format slot 26 of player with Light Blue Stained Glass to close
Format slot 27 of player with White Stained Glass to close
Here is the fails https://gyazo.com/8205b51ba512b1cfeb6375f718782118