Newbie2010 Posted April 29, 2010 Posted April 29, 2010 (edited) Hey I'm completely new to autoit and atm I'm just trying to get it to read HP and MP from a game. I found that nomad HP thing and I already found the base address for the hp/mp in my game. Here is how I find the hp/mp in CE: 1. Get address from 00978910 2. Add 598 to it 3. Get the value from the address you just added 598 to 4. Add 2d4 to it 5. That is the mana address How do I implement this in autoit so that it reads the MP? This is what I did so far...lol: Removed I don't think it's storing my value right though. I made the TestPTR() function to see if its storing my values right - but when I click the button it says "Variable used without being declared". Run it for yourself and see...I attatched Nomad memory editor aswell. I hope someone can help me or give some hits as to how I can do this...I'm completely new. D:NomadMemory.au3 Edited April 30, 2010 by Valik Code removed
Hiyoal Posted April 30, 2010 Posted April 30, 2010 Just one quick tip. You can store Hex values to variables directly without using Hex() $HP=0xAddress $Mana=0xAddress Global $Offset_HP = Hex( 9931024, 7 ) Global $Offset_MP = Hex( 9931024, 7 ) Can be expressed as: Global $Offset_HP = 0x0978910 Your Mana address would look like this according to your instructions: Global $Offset_MP = ($Offset_HP+2*(0x598)+0x2d4) Final code for Addresses: Global $Offset_HP = 0x0978910 Global $Offset_MP = ($Offset_HP+2*(0x598)+0x2d4) Remember, you can always check to see what the addresses will be by using Windows Calculator. Change it to Programmer if you are using windows 7, or just use scienftific if you are on XP. Select Hex as your variable type and just type in your addresses. As simply as: 978910+598+598+2d4 It will spit out the value: 979714 which is your Mana Address. Now stick a 0x0 before it and you have your address in hex. Hope that helped, Hiyoal
Moderators Melba23 Posted April 30, 2010 Moderators Posted April 30, 2010 Guys,Please read the sticky at the top of the forums. Game bots like this are not welcome here. From the Runes of Magic EULA:You may not use in Game play macros or other stored rapid keystrokes, "dupes," "cheats" or other patterns of play that facilitate acquisition of items, currency, objects, character attributes, rank or status at an accelerated rate when compared with ordinary Game play. You may not use your or third-party software to rewrite or modify the user interface or otherwise manipulate data in such a way as to use the System to acquire items, currency, objects, character attributes or beneficial actions not actually acquired or performed in the GameM23 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: Spoiler 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
Valik Posted April 30, 2010 Posted April 30, 2010 Why is it so fucking hard for you half-wits to read the announcement at the top of the forum? I think I answered my own question.
Recommended Posts