Fishing Bot Interaction Broken

Report potential bugs here, and if they seem valid we can create gitlab issues for them.

Moderator: Bug Janitor

Forum rules
- Check if a topic exists before creating a new one.
- Duplicate topics will be immediately deleted.
- Issues lacking detail or sources (where applicable) will be deleted immediately.
- Unimplemented content is not bugged content. Do not report unimplemented content.
- IF YOUR BUG IS EXPLOITABLE DO NOT REPORT IT HERE. DM the report to a Bug Janitor instead.
- Repeated violation of these rules may result in a user being denied access to this section.
Post Reply
User avatar
Legendary Rare
Noob
Posts: 6
Joined: Fri May 03, 2024 1:32 pm
Has thanked: 9 times
Been thanked: 7 times

Fishing Bot Interaction Broken

Post by Legendary Rare »

Draynor Fishing bots get stuck in the FISHING state, they simply stand at the fishing spot forever and never bank, I fixed this bug by changing the following code in DraynorFisher.kt
Line 25 -

Code: Select all

                    spot?.interaction?.handle(bot,spot.interaction[0]) ?: scriptAPI.walkTo(fishingZone.randomLoc)
Line 25 +

Code: Select all

                    if (spot != null) {
                        InteractionListeners.run(spot.id, IntType.NPC,"net",bot,spot)
                    } else {
                        scriptAPI.walkTo(fishingZone.randomLoc)
                    } 
Add these imports at line 11

Code: Select all

import core.game.interaction.IntType
import core.game.interaction.InteractionListeners 
Last edited by Legendary Rare on Sat May 04, 2024 4:25 am, edited 3 times in total.
User avatar
Ceikry
Site Admin
Posts: 591
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 84 times
Been thanked: 109 times

Re: Fishing Bot Interaction Broken

Post by Ceikry »

So open a merge request
Nerds
User avatar
Legendary Rare
Noob
Posts: 6
Joined: Fri May 03, 2024 1:32 pm
Has thanked: 9 times
Been thanked: 7 times

Re: Fishing Bot Interaction Broken

Post by Legendary Rare »

Ceikry wrote: Fri May 03, 2024 1:45 pm So open a merge request
I've opened Merge Request 1825
Post Reply