Jump to content

Poison npc


CJ7

Recommended Posts

What's up guys,

I'm looking for a way to determine if the NPC my character is fighting is poisoned. I'm using mithril bolts (e), but I want to switch them for normal mithril bolts if the target is poisoned. 

I've done a bit of research, isPoisoned in the Combat API only checks if the player is poisoned and I can't find anything else in the API that can check for NPC poison. I was thinking of checking the animation of the bolts' special attack and then switching to regular bolts once the animation is visible. If the target's health percent is zero, It would equip the enchanted bolts so the next kill starts with the enchanted bolts equipped. 

Is there a more efficient way to do this?

Thanks in advance, cheers!

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