So I made a quest system for a server I skript on, I went to test it out on my server with a boosted chance to get the zombie quest so i can test if the quest will work. I killed 50 zombies as my quest says to do and didnt get no message. No skript errors either. I even added a thing where itll tell me everytime i killed a zombie and it still didnt work. Heres my code
Code:
function breadQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eCraft 48 Bread" to {_p}
set {%{_p}%'s uuid::48breadQuest} to 0
function sugarQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eCraft 2 Stacks Of Sugar" to {_p}
set {%{_p}%'s uuid::128sugarQuest} to 0
function fish30Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eFish 30 Items" to {_p}
set {%{_p}%'s uuid::fish30Quest} to 0
function fish25Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eFish 25 Items" to {_p}
set {%{_p}%'s uuid::fish25Quest} to 0
function walk1500Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eWalk 1500 Blocks" to {_p}
set {%{_p}%'s uuid::walk1500Quest} to 0
function walk1000Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eWalk 1000 Blocks" to {_p}
set {%{_p}%'s uuid::walk1000Quest} to 0
function place200Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&ePlace 200 Blocks" to {_p}
set {%{_p}%'s uuid::place200Quest} to 0
function place150Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&ePlace 150 Blocks" to {_p}
set {%{_p}%'s uuid::place150Quest} to 0
function break200Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eBreak 200 Blocks" to {_p}
set {%{_p}%'s uuid::break200Quest} to 0
function break150Quest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eBreak 150 Blocks" to {_p}
set {%{_p}%'s uuid::break150Quest} to 0
function endermanQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eKill 40 Zombies" to {_p}
set {%{_p}%'s uuid::endermanQuest} to 0
function spiderQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eKill 50 Spiders" to {_p}
set {%{_p}%'s uuid::spiderQuest} to 0
function creeperQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eKill 50 Creepers" to {_p}
set {%{_p}%'s uuid::creeperQuest} to 0
function skeletonQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eKill 50 Skeletons" to {_p}
set {%{_p}%'s uuid::skeletonQuest} to 0
function zombieQuest(p: player):
send "&eYou have gotten the quest:" to {_p}
wait 1 second
send "" to {_p}
send "&eKill 50 Zombies" to {_p}
set {%{_p}%'s uuid::zombieQuest} to 0
function loadQuests():
loop all offline players:
delete {%loop-offlineplayer%'s uuid::*}
broadcast "&eQuests By &e&lPureNuggets!"
function getQuest(p: player):
if {%{_p}%'s uuid::*} is set:
send "&cYou already have a ongoing quest!" to {_p}
else:
send "" to {_p}
send "&eRolling you a random quest!" to {_p}
send "" to {_p}
wait 3 seconds
chance of 5%: #Kill 50 Zombies
zombieQuest({_p})
chance of 5%:
skeletonQuest({_p})
chance of 5%:
creeperQuest({_p})
chance of 5%:
spiderQuest({_p})
chance of 5%:
endermanQuest({_p})
chance of 5%:
break150Quest({_p})
chance of 5%:
break200Quest({_p})
chance of 5%:
place150Quest({_p})
chance of 5%:
place200Quest({_p})
chance of 5%:
walk1000Quest({_p})
chance of 5%:
walk1500Quest({_p})
chance of 5%:
fish25Quest({_p})
chance of 5%:
fish30Quest({_p})
chance of 5%:
sugarQuest({_p})
chance of 5%:
breadQuest({_p})
command /quest:
cooldown: 1 day
trigger:
getQuest(player)
command /loadquests:
permission: quests.load
trigger:
loadQuests()
on load:
loadQuests()
on death:
if victim is zombie:
if {%attacker%'s uuid::zombieQuest} is set:
add 1 to {%attacker%'s uuid::zombieQuest}
if {%attacker%'s uuid::zombieQuest} > 49:
send "&eYou have completed the following quest:"
send ""
send "&eKill 50 Zombies"