asqx Posted November 20, 2021 Share Posted November 20, 2021 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 More sharing options...
Ramina__ Posted November 20, 2021 Share Posted November 20, 2021 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 More sharing options...
Theleast47 Posted November 21, 2021 Share Posted November 21, 2021 e Link to comment Share on other sites More sharing options...
asqx Posted November 21, 2021 Author Share Posted November 21, 2021 @nolando09How can I make it so if u are in combat already then u get him/hit somebody it doesnt say the message again Link to comment Share on other sites More sharing options...
asqx Posted November 21, 2021 Author Share Posted November 21, 2021 and 2. now the combatlog doesnt work at all. with that skript u sent Link to comment Share on other sites More sharing options...
Ramina__ Posted November 21, 2021 Share Posted November 21, 2021 5 hours ago, CraftingHimself said: and 2. now the combatlog doesnt work at all. with that skript u sent I'm not sure if you need any addons but I don't know how to make the skript any differently sorry 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