Log coreprotect to animal kill

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

korhox

Member
Mar 3, 2017
3
0
1
Hi!

I have a skript that kills animal when egg projectile is thrown to the animal. I've handled this event for now like this:
Code:
on damage:
    if "%projectile%" is "egg":
        if victim is sheep:
            damage victim by 10000

It works, but the only flaw with this is, that it seems in Coreprotect lookup like that sheep has killed itself.
92b9d7132.png


How could I handle this event it would appear as player has killed the targeted animal?



PS: https://www.youtube.com/user/MrSuicideSheep
 
Hi!

I have a skript that kills animal when egg projectile is thrown to the animal. I've handled this event for now like this:
Code:
on damage:
    if "%projectile%" is "egg":
        if victim is sheep:
            damage victim by 10000

It works, but the only flaw with this is, that it seems in Coreprotect lookup like that sheep has killed itself.
92b9d7132.png


How could I handle this event it would appear as player has killed the targeted animal?



PS: https://www.youtube.com/user/MrSuicideSheep
Set the damage expression instead of damaging the sheep
 
Hi!

Thank you for your reply. This helped a little bit, at least we know that egg killed the sheep. It would be even more helpful if, we would know who killed the sheep.

5203bd583.png


Skript that I now have:
Code:
on damage:
    if "%projectile%" is "egg":
        if victim is sheep:
            increase the damage by 10000
 
Hi!

Thank you for your reply. This helped a little bit, at least we know that egg killed the sheep. It would be even more helpful if, we would know who killed the sheep.

5203bd583.png


Skript that I now have:
Code:
on damage:
    if "%projectile%" is "egg":
        if victim is sheep:
            increase the damage by 10000
Does it log the attacker when you kill a sheep with a bow?
 
With normal vanilla bow, yes.

c15c102b1.png
In that case I don't think you can do it without editing CoreProtect (maybe you can do something via their API tho)
 
Status
Not open for further replies.