Quest Skript need help

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

Status
Not open for further replies.
Apr 3, 2020
1
0
0
Skript Version (do not put latest): Skript 2.5
Minecraft Version: 1.15.2
---
Full Code:
Note: If the code is too large, feel free to use a pasting website (Pastebin or hastebin)
Note: If a variable is being set in another script, but not shown, please explain how they are being set




#i kan ændre det
Options:
missionprefix: &8&l[ &c&lBob &a&lVagt &8&l]
missionnpc: &c&lBob &a&lVagt
guinavn: &c&lBob &a&lVagt
nopermmission: &8&l[ &c&lBob &a&lVagt &8&l] &cDu er ikke admin!
#ik ændre mere (men i bestemmer selv )

command /bobreset:
permission: test
trigger:
set {bob.1.%player%} to "&aKlar"
set {bob.2.%player%} to "&cLåst"
set {bob.3.%player%} to "&cLåst"


on join:
if {bob.1.%player%} is not set:
set {bob.1.%player%} to "&aKlar"
if {bob.2.%player%} is not set:
set {bob.2.%player%} to "&cLåst"
if {bob.3.%player%} is not set:
set {bob.3.%player%} to "&cLåst"

on rightclick on entity:
entity is "{@missionnpc}":
execute player command "/missioner"




command /missioner:
aliases: /mission
trigger:
wait 3 tick
open chest with 3 rows named "{@guinavn}" to player
if {bob.1.%player%} is "&cLåst":
format slot 10 of player with Redstone Block named "&c = &4Mission Låst &c=" with lore "&e---------------------" and "&a &3Niks Niks" and "&aDu skal først lave mine andre opgaver først" and "&e---------------------" to close
else:
if {bob.1.%player%} is "&aKlar":
format slot 10 of player with Diamond Block named "&2 = &aOpgave 1 &2=" with lore "&c------------------------------" and "&e&lDu skal aflevere " and "&7- &a32 Brød" and "&7- &a16 pile" and "&c------------------------------" and "&e&lBelønning:" and "&7- &a6000kr" to close
else:
if {bob.1.%player%} is "&3Lavet":
format slot 10 of player with Emerald Block named "You noob" to close




command /opgave1:
trigger:
if {bob.1.%player%} is "&aKlar":
if player's inventory contains 32 bread:
if player's inventory contains 16 arrows:
remove 32 bread from player's inventory
remove 16 arrows from player's inventory
message "&8&l[ &a&lQUEST &8&l] &7Tak fordi du gav mig &e64 &7Stykker sten! 1500$"
command "eco give %player% 6000"
set {bob.1.%player%} to "&3Lavet"
set {bob.2.%player%} to "&aKlar"
else:
message "{@missionprefix} &7Du skal aflevere &332 Brød og 16 pile"


i have no erros when reloading it

Okay so i actually know what the problem is but i dont know how to fix it. so that i have put fat tekst on is the problem area. so the problem is i want the redstone block when its locked and the diamond block when its ready and the emerald block when its finshed but when i use the if statements its only want to show the emerald block and its like the other if statements is just gone




Addons using (including versions):
no addons

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? i have tried some other things like wait 1 tick.
[doublepost=1585997464,1585948625][/doublepost]I have found a fix to it
 
Status
Not open for further replies.