Jump to content

Someone please help with my lifesteal skript.


nbiz24

Recommended Posts

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...