Jerek Posted November 9, 2018 Posted November 9, 2018 Hi, first off, I've read all the releated topics in the forum and i want to mantion ,that i'm not playing this old game on battle net or have the skills to code a bot ^^ Just wanted some nostalgic feeling from the old good days back, and playing in singleplayer for couple weeks. Now i was woundering if i can read the memory for health and mana and code something like "automatic take helath/mana potions" when health/mana drops to a certain level. Just a help for me because I'm playing on hardcore modus (as mantioned only singleplayer) So i have tried to reach the life adress but i became always a "0" as a respond! following code is working with all other games, but not with diablo .-. so i#m really confused and frusrated. it should be so easy, as i said in other games it works like a charm. #RequireAdmin #include <NomadMemory.au3> $open = _MemoryOpen(ProcessExists("game.exe")) $adresse = 0x0026B2FC ; confirmed with cheatengine $value = _MemoryRead($adresse, $open) MsgBox(0,"",$value) so why the heck i'ts not working and how i can fix it? does it something to do with warden? because to make shortcuts and remap keys is working without problems. I also do not want to write in the memory only check if health/mana is dropped to like ,100 and then send a keystroke (take potion) thats all i need! p.s. sorry for my poor english, I am obviosly not native speaker ^^ lol thanks anyway
Moderators Melba23 Posted November 9, 2018 Moderators Posted November 9, 2018 Jerek, Welcome to the AutoIt forum. Quote i want to mantion ,that i'm not playing this old game on battle net or have the skills to code a bot Expand But you still fall foul of the Forum rules. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Reveal hidden contents ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts