Jump to content

Archived

This topic is now archived and is closed to further replies.

Sean

Interacting Id

Recommended Posts

Is the interacting id hook(Entity) broken on SS? It seems to always return 32 for me. I was trying to get rid of NPCs that are being used by AFK trainers since they're in combat but the inCombat method only knows if it's in combat by whether the HP bar is showing.

 

Has anyone found a way around this?

Share this post


Link to post
Share on other sites
if (Players.getMyPlayer().isInCombat() && yournpcname != null) {
                                    if (yournpcname.getCurrentHealth() == 0) {
                                            yournpcname = null;
                                            break;
            }
   }

for (int i = 0; i < NPCs.getAll().length; i++) {
                            if (!NPCs.getAll().isInCombat()) {
                                    yournpcname = NPCs.getAll();

Are you talking about this kinda thing?

 

Something along those lines or something?

Share this post


Link to post
Share on other sites

No. I'm talking about AFK trainers who use air(the lowest level spell) to afk train magic or something. It doesn't do damage to the monster so no HP bar shows up so the isInCombat method won't work.

 

Just saw a post about it. Guess I'll just have to wait till next update for it to be fixed.

Share this post


Link to post
Share on other sites

×