Hi. I need help with my quest skript. It gives no errors in the console but will act like it is completed whenever i right click him even before it starts the quest. My code:
the last line
is what it will only say every time its right clicked. Can anyone fix it?
Code:
on right click on zombie:
if name of event-entity is "Lazy Miner":
if {queststart::%player%} is false:
send "&eLazy Miner ----> you: &aHello %player%" to player
set {queststart::%player%} to true
wait 0.5 seconds
send "&eLazy Miner ----> you: &aCan you mine me 5 coal?" to player
wait 0.5 seconds
send "&eLazy Miner ----> you: &aI will reward you greatly for a adventurer like you" to player
wait 0.5 seconds
send "&eLazy Miner ----> you: &aBut first. Take this" to player
wait 0.5 seconds
send "&e&lQUEST STARTED| &r&aMine 5 coal" to player
give player 1 of unbreakable wooden pickaxe named "&aLazy Miner's pickaxe" with lore "&7breaking power: 1"
set {questcomp::%player%} to false
else:
if {questcomp::%player%} is false:
if {coalmined::%player%} is not set:
send "&cIm sorry but you have 0 coal! You need to mine more" to player
else:
if {coalmined::%player%} is 1:
send "&cIm sorry but you have 1 coal! You need to mine more" to player
else:
if {coalmined::%player%} is 2:
send "&cIm sorry but you have 2 coal! You need to mine more" to player
else:
if {coalmined::%player%} is 3:
send "&cIm sorry but you have 3 coal! You need to mine more" to player
else:
if {coalmined::%player%} is 4:
send "&cIm sorry but you have 4 coal! You need to mine more" to player
else:
send "&aThanks! Take these rewards!" to player
add 50 to {miningxp::%player%}
add 50 to {bal::%player%}
set {questcomp::%player%} to true
else:
send "&aThanks for your help! It won't be needed anymore" to player
the last line
Code:
send "&aThanks for your help! It won't be needed anymore" to player