Search the Community
Showing results for tags 'Multiple Values'.
Found 2 results
Hi Guys, My knowledge in mem hacking is very basic, but I love to trail and error and find my way somehow. But sometimes I need to ask if what I am trying to do is even possible or not. I have an RPG game (doesn't matter what game) with a team of 5 Avatars each has two attributes I like to change, this makes a value of 10. I can single search each value and change them no problem. But here my problem starts. I have to search them all 10 each match, and a match only last a few seconds. I spare more time in searching all 10 values one by one changing them start the match and then start the whole process over and over. I tried to pair them and do a group search I learned to narrow the process down by pairing the two values of each Avatar I want to change. I tried to group search 8 values at once but the range between each value is over 65536 so I don`t find any results this way(is there a way to make this range unlimited, since I know the values are there and I just would like to do the whole search in one go?). Ok, now we have this great Lua. I had my first slight touch with Lua in World of Warcraft and done everything I wanted there really good I had my fun (even if I don't know how it works I still managed to get the things I want in trial and error to run like I wanted so I was happy about my results). Ok back to my RPG. Is it possible to write a gg Lua where I can add in all 2 values of each 5 Avatars so the Lua makes 5 times a group search of each Avatar in one rush? Bonus question if the first question all positive: To top this I have one more issue in order to change values I have to use a formula that I have created in an excel File. So I take the visual values (they only change when an Avatar levels up so I don't do this so often) that I want to change but them in the excel(the Formula never changes), calculate the Values I have to search, enter them in game guardian, change my values and voila! would be cool if I can do all this in a Lua script that would be great fun.
Help me to build this script.. gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber('0;1;2:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.refineNumber('0', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) --for information, i need to edit 100 items-- --t, t.address +150, t.address +300, t.address +450, ..etc.-- --I already know the pattern is t.address +(150*n)-- --its for edit first item-- t = gg.getResults(5) for i, v in ipairs(t) do t.value = 99 end gg.setValues(t) --here the problem -- --QUESTION : how to edit 2nd item untill 100th item in one command?-- for i, v in ipairs(t) do t.address = t.address +150 t.value = 99 --edit 2nd item-- end gg.setValues(t) --its waste time to edit it one by one untill 100th item-- --i did some trial and error to edit all of them in one shoot-- --like n = (1~100) , t.address = t.address + (150*n)-- --but fail, i tried on gg.alert(1~100) its show alert 101, i feel stupid -- -- I TRIED TO SEARCH REFERENCES FOR THIS,-- --READ Some guide on this web, but not yet found the answear.-- gg.alert('THANKS FOR HELPING ME ') Help Set Multiple Values.lua