nbiz24 Posted June 5, 2022 Share Posted June 5, 2022 So I have a dupe server that gets around 10 - 20 people a day and they all get mad at me for not getting hearts on crystal kills or anchor kills. If anyones knows how to edit this skript to givehearts to the person that crystal/anchored them. That would be awesome! options: prefix: &7[&9&lLIFESTEAL&7] on death: if victim is player: if victim's max health < 1: execute console command "/tempban %victim% 1w Ran out of hearts!" add 1 to attacker's max health subtract 1 from victim's max health set death message to "{@prefix}&c %victim% died to %attacker%, and lost a heart!" command /sethealth [<player>] [<number>]: permission: lifesteal.sethealth trigger: if arg-1 is not set: send "&cYou must choose a player and a number to set someone's hearts to." if arg-2 is not set: send "&cYou must choose a player and a number to set someone's hearts to." else: set max health of arg-1 to arg-2 send "{@prefix}&a Set %arg-1%'s max health to %arg-2%!" Link to comment Share on other sites More sharing options...
TheCodingDuck_ Posted June 18, 2022 Share Posted June 18, 2022 You'd have to detect if it was a kill with end crystal and then use `last attacker` instead of `attacker` One of the most unique Minehut servers. Soon™ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now