Jump to content

Poison npc


Recommended Posts

Posted

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!

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
  • Recently Browsing   0 members

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