Git Product home page Git Product logo

albn-fishing-bot's Introduction

Albion Fishing Bot

a simple attempt to implement a bot for fishing in albion online
mainly for educational purposes

How it works

this bot works by sniffing the fishing event packets, reading pixel changes and sending mouse events. No injection was done into the game client.

Thanks to

FashionFlora for his packet sniffing method on his project

this bot would not be possible without incredible packages:

albn-fishing-bot's People

Contributors

nafalabi avatar

Stargazers

 avatar  avatar Magiciel avatar  avatar Sandalots avatar  avatar VSEMILA avatar spix avatar Raphaël avatar Lazycoderz avatar

Watchers

 avatar VSEMILA avatar Cenk Eren Arkan avatar

albn-fishing-bot's Issues

error

so i change the event codes,
also i change the color
const getActionFromCoordinates = (pullPoint, restPoint) => {
if ('#00ff00' !== getPixelColorAt(restPoint[0], restPoint[1])) {
return 'rest'
}

if ('#4b8624' !== getPixelColorAt(pullPoint[0], pullPoint[1])) {
return 'pull'

so now how i can change the resolution?

here is the dimension...

const robot = require('robotjs')

const getDimensions = (windowInstance) => {
const dimensions = windowInstance.getDimensions()
const winWidth = dimensions.right - dimensions.left
const winHeight = dimensions.bottom - dimensions.top

return {
top: dimensions.top,
bottom: dimensions.bottom,
left: dimensions.left,
right: dimensions.right,
winHeight,
winWidth,
}
}

const getTargetCoordinates = (windowInstance) => {
const {
top,
bottom,
left,
right,
winHeight,
winWidth,
} = getDimensions(windowInstance)

const yBuffer = 23;
const x = left + (winWidth / 2)
const y = top + (winHeight / 2) + yBuffer
const center = [x, y - yBuffer]

return {
pullPoint: [x, y],
restPoint: [x + 15, y],
throwPoint: [x - 100, y - 65],
fishBaitCoor: [center[0] + (center[0] * 0.375), center[1] + (center[1] * 0.15)],
center,
}
}

const getCurMouseCoor = () => {
const coor = robot.getMousePos();
return [coor.x, coor.y]
}

module.exports = {
getTargetCoordinates,
getCurMouseCoor,
}

Question

Hello mate! i want to know if i can run it with windows.... i am little noob xD thanks! :)

Failed to Catch Fish

Hi bro,
Thank you for making this app.

I have problem when try it.
First, I always failed to catch fish.

precisely when holding down the click button. The system always doesn't hold back the click to get the fish.
Maybe I can see the setting of Albion. Graphics, resolution etc

Thank you bro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.