Jump to content

Anyone know the script for lifesteal? If do can you post the script in the discussion


AlexanderP5

Recommended Posts

10 hours ago, AlexanderP5 said:

I am trying to make a lifesteal smp for my friends but I don't know how to make it lifesteal because there are no plugins to put that in minehut, so can someone post the script for lifesteal in the comments.

there is a plugin?
https://www.spigotmc.org/resources/lifesteal-smp-plugin.94387/?__cf_chl_jschl_tk__=pmd_DGaXHgralg8ZXe3ChSnYGuWfn49l1vXnywuBVeDu2Ek-1630364140-0-gqNtZGzNAfujcnBszQqR

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

you could try something like this:

on damage:
	if attacker is player:
		set {_life} to player's damage
		heal player by {_life} hearts

 

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

  • 2 weeks later...

Try this:




 


variables:
    {hearts::%player%} = 10

    {hearts.left::%player%} = 1

    {hearts.add::%player%} = 0


options:
    ls: &9[&6&lLife&c&lSteal&r&9]&r

on death:
    if victim is a player:
        if attacker is a player:
            if {hearts::%victim%} is greater than {hearts.left::%victim%}:
                add 1 to {hearts::%attacker%}
                remove 1 from {hearts::%victim%}
            set max health of attacker to {hearts::%attacker%}
            set max health of victim to {hearts::%victim%}


command /lsreset [<player>]:
    permission: op
    trigger:
        set {hearts::%arg-1%} to 10
        set max health of arg-1 to {hearts::%arg-1%}
        send "{@ls} &2Successfully reset &e%arg-1%&e's &2Health to normal" to player

command /lsresetall [<text>]:
    permission: op
    trigger:
        if arg-1 is not set:
            send "{@ls} &cExecuting this command will reset the skript, thus reseting everyones health. Are you sure you want to do this? Do &e/lsresetall confirm &cto confirm" to player

        if arg-1 is "confirm":
            loop all players:
                set {hearts::%loop-player%} to 10
                set {hearts.left::%loop-player%} to 1
                set max health of loop-player to {hearts::%loop-player%}
            send "{@ls} &2Successfully reset the skript" to player


#A command to add hearts to people


command /hearts [<text>] [<number>] [<player>]:
    permission: op
    trigger:
        if arg-1 is "add":
            if arg-2 is set:
                if arg-3 is set:
                    add arg-2 to {hearts::%arg-3%}
                    wait 10 ticks
                    set max health of arg-3 to {hearts::%arg-3%}
                    make console execute command "/effect give 5 regeneration %arg-3% 10 true"
                    send "{@ls} &2Successfully added &e%arg-2% &2hearts to &e%arg-3%" to player

        if arg-1 is "remove":
            if arg-2 is set:
                if arg-3 is set:
                    remove arg-2 from {hearts::%arg-3%}
                    wait 10 ticks
                    set max health of arg-3 to {hearts::%arg-3%}
                    send "{@ls} &2Successfully removed &e%arg-2% &2hearts from &e%arg-3%" to player

Link to comment
Share on other sites

  • 1 month later...
20 hours ago, ChickenManSkripter said:

This skript doesn't work at all it didn't work when i killed someone please try to fix this error.

1. dont necropost
2. run it through a parser
3. check if you have the right addons
4. dont necropost 🙂

  • Like 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

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