kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 332 forks source link

Want to understand the bot #1968

Open Leoschw opened 4 years ago

Leoschw commented 4 years ago

Dear community,

I'm sorry if this isn't really an issue, but I'm learning to code and I'm really interested in bot creation. I read alot of the code of the bot and there is one thing I don't understand. How does the bot recognize monsters and items and/or get other informations in/from the game like HP, EXP and so on? I assume it's not done via image recognition as this would probably be to unreliable? Maybe to ask in a more general way, how does the bot interact with the actual game?

Thanks a lot for any answers, very much appreciated!! Cheers, Leo

mf022 commented 4 years ago

https://github.com/blizzhackers/documentation/tree/master/d2bs#d2bs - follow the sub-links https://d2bot.discourse.group/t/diablo-2-packet-documentation/67

Leoschw commented 4 years ago

Hmm okey so all the functions have already been written by blizzard? But how do you actually interact with the game? I mean there has to be a script which moves the player and such? Or do you start an "altered" version of Diablo 2?