Jump to content

Ender Pearls Triggers Combat Log Skript (help)


asqx

Recommended Posts

I need help with fixing my combat log skript. If I throw a pearl and it lands, it triggers the combat log and puts me on an timer.

Is there any way to fix this?

 

This is my skript:

on damage:
	if attacker is a player:
		if victim is a player:
			set {combattag} to 1
			send "&cYou have combat tagged &4%victim%!" to attacker
			send "&cYou have been combat tagged by &4%attacker%!" to victim
			wait 15 seconds
			set {combattag} to 0
			send "&aYou are not in combat anymore!" to attacker
			send "&aYou are not in combat anymore!" to victim
			
on projectile hit:
	if projectile is a ender pearl:  
		wait 1 tick
		set {combattag} to 0

on quit:
	if {combattag} is 1:
		kill player
		broadcast "&4%player% &cTried combat logging!"
	

 

Link to comment
Share on other sites

3 hours ago, CraftingHimself said:

I need help with fixing my combat log skript. If I throw a pearl and it lands, it triggers the combat log and puts me on an timer.

Is there any way to fix this?

 

This is my skript:

on damage:
	if attacker is a player:
		if victim is a player:
			set {combattag} to 1
			send "&cYou have combat tagged &4%victim%!" to attacker
			send "&cYou have been combat tagged by &4%attacker%!" to victim
			wait 15 seconds
			set {combattag} to 0
			send "&aYou are not in combat anymore!" to attacker
			send "&aYou are not in combat anymore!" to victim
			
on projectile hit:
	if projectile is a ender pearl:  
		wait 1 tick
		set {combattag} to 0

on quit:
	if {combattag} is 1:
		kill player
		broadcast "&4%player% &cTried combat logging!"
	

 

on damage:
    if attacker is a player:
        if victim is a player:
            if attacker is player:
                stop
            else:
                set {combattag} to 1
                send "&cYou have combat tagged &4%victim%!" to attacker
                send "&cYou have been combat tagged by &4%attacker%!" to victim
                wait 15 seconds
                set {combattag} to 0
                send "&aYou are not in combat anymore!" to attacker
                send "&aYou are not in combat anymore!" to victim
on quit:
    if {combattag} is 1:
        kill player
        broadcast "&4%player% &cTried combat logging!"      

I'm sure this will work! But if not Lmk 😊

 

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