Jump to content

Death animation click


FFTL

Recommended Posts

So i have one simple killing script, it basically just clicks on wanted npc and loops it. But every time when npc is doing death animation it is still clicking it once again. I cant seem to fix my problem, can someone help me lol

 

Change

if (target != null && target.exists() && target.interact("Attack")) 

To

if (target != null && target.exists() && target.getHealth() > 0){

    target.interact("Attack")

You are interacting with the NPC in your if statement... which makes no sense

 

Edited by Explv
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...