Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Calling #interact on NPC fails to work

Joined
Jun 9, 2015
Messages
3,727
Gamemode: RS3

Code used:

Code:
        Npc waterfiend = Npcs.newQuery().names("Waterfiend").results().nearest();
        if(waterfiend != null) {
            if (waterfiend.isVisible()) {
                if (waterfiend.interact("Attack")) {
                    //
                }
            }
        }

Debugging:

Code:
00:00:01 DEBUG    Waterfiend: Waterfiend(level: 107, position: 1766, 5360, 0)
00:00:03 DEBUG    Waterfiend visibility: 100.0
00:00:03 DEBUG    Waterfiend definition: NpcDefinition(id: 5361, name: Waterfiend, actions: [Attack, Examine])
00:00:03 DEBUG    Waterfiend actions: [Attack, Examine]
00:00:03 DEBUG    Waterfiend distance to player: 4.47213595499958
00:00:03 DEBUG    Waterfiend ID: 5361

The bot does hover over, but not interact with the entity. Seems to be an edge case. Some people have the same issue, but others do not.

@Cloud or @Party what more info do you need in order to solve this?
 
Last edited:
Top