Solved Please 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.

NoCriticals

Member
Apr 7, 2018
4
0
0
Singapore
Hi i am wondering if anyone can help me on my code as i am new.
i am trying to make a trophies skript that is based on how many kills that player has, when i reach 5 kills of the mob wither it does not send me a messaging saying hi. i want to know what is causing this so i can continue with the other mobs.

#========== MADE BY NOCRITICALS ==========
#========== MOB TROPHIES ==========
#========== VERSIONS 0.1 ==========

variables:
{dragonkill} = 0
{witherkill} = 0
options:
prefix: &8[&6&lMob Trophies&8]&f

#test commands
command /witheradd:
trigger:
add 1 to {witherkill}
command /witherremove:
trigger:
remove 1 from {witherkill}

command /trophies [<text>]:
aliases: /mt
trigger:
arg 1 is not set:
send "{@prefix} Do &4/trophies help&f, for more info about this plugin!" to player
#======MENU=====
else:
open chest with 1 rows named " &8&lMOB KILLS" to player
format slot 0 of player with gray stained glass pane named "&4Click To Close" to close
format slot 1 of player with gray stained glass pane named "&4Click To Close" to close
format slot 2 of player with dragon egg named "&dDragon Kills" with lore "&a&lKills: %{dragonkill}%" to close
format slot 3 of player with gray stained glass pane named "&4Click To Close" to close
format slot 4 of player with red stained glass pane named "&4&lEXIT" to close
format slot 5 of player with gray stained glass pane named "&4Click To Close" to close
format slot 6 of player with soul sand named "&7Wither Kills" with lore "&a&lKills: %{witherkill}%" to close
format slot 7 of player with gray stained glass pane named "&4Click To Close" to close
format slot 8 of player with gray stained glass pane named "&4Click To Close" to close
format slot 9 of player with gray stained glass pane named "&4Click To Close" to close

#======WITHER KILLS======
on death of a wither:
add 1 to {witherkill}
if {witherkill} is more than 5:
send "hi" to player
 
Status
Not open for further replies.