Jump to content

Illuminus

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Illuminus's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Illuminus

    Can i lua this?

    ok sorry your code not working Script ended: Script error: org.luaj.vm2.LuaError: @/sdcard/Download/Test.lua:8 ` while not gg.isVisible() do` attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(LuaValue.java:2838) at org.luaj.vm2.LuaValue.callmt(LuaValue.java:2015) at org.luaj.vm2.LuaValue.call(LuaValue.java:1442) at org.luaj.vm2.LuaClosure.execute(LuaClosure.java:363) at org.luaj.vm2.LuaClosure.call(LuaClosure.java:133) at android.ext.Script.runScript(Script.java:1039) at android.ext.Script.access$8(Script.java:1032) at android.ext.Script$ScriptThread.run(Script.java:998) _______________________________________________ added 1 minute later Trying your new suggestions now
  2. Illuminus

    Can i lua this?

    Works great. i was working with function Script:Start() local gamedata = FileSystem:WriteFile("lastsearch.txt") end second attempt file = gg.open("<filename>", "w") file:write("Avar = "..var) file:close() then I saw this code but I didn't manage it to get it work Config = { data={} } function Config.load(filename) local h = fs.open(filename, 'r') local str = h.readAll() h.close() Config.data = textutils.unserialize(str) end function Config.save(filename) local h = fs.open(filename, 'w') local str = textutils.serialize(Config.data) h.write(str) h.close() end Config.load('config') print(Config.data.testKey)
  3. Illuminus

    Can i lua this?

    Working great but every time I execute the Lua file i have to enter all values in again. is there a way to save the Previous entries from search before? since the value only changes when i level up?
  4. Illuminus

    Can i lua this?

    Ok i tested it and i ended up with this result: _______________________________________________ added 4 minutes later Never mind i messed up with Dots and Comas second attempt went trough but i have to raise search range to 2024
  5. Illuminus

    Can i lua this?

    this is what I wrote so far : if gg.BUILD < 5511 then gg.alert('You need a newer version of GameGuardian app to run this script. At least build 5511.') os.exit() end gg.clearResults() ::restart:: if gg.isVisible(true) then gg.setVisible(false) end gg.toast('my first GG Lua script Great Thx to Backlift and Enyby') --Entering both values of every Avatar --Avatar 1 v = gg.prompt({a1_1='Enter Avatar 1 value 1'}, {a1_1='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end v = gg.prompt({a1_2='Enter Avatar 1 value 2'}, {a1_2='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end --Avatar 2 v = gg.prompt({a2_1='Enter Avatar 2 value 1'}, {a2_1='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end v = gg.prompt({a2_2='Enter Avatar 2 value 2'}, {a2_2='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end --Avatar 3 v = gg.prompt({a3_1='Enter Avatar 3 value 1'}, {a3_1='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end v = gg.prompt({a3_2='Enter Avatar 3 value 2'}, {a3_2='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end --Avatar 4 v = gg.prompt({a4_1='Enter Avatar 4 value 1'}, {a4_1='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end v = gg.prompt({a4_2='Enter Avatar 4 value 2'}, {a4_2='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end --Avatar 5 v = gg.prompt({a5_1='Enter Avatar 5 value 1'}, {a5_1='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end v = gg.prompt({a5_2='Enter Avatar 5 value 2'}, {a5_2='0'}) if v == nil then gg.alert ('Script Canceled, No input') os.exit() end --Converting inputs in searchable Values --Avatar 1 B1 = gg.getValue(a1_1) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 1_1 = read() B1 = gg.getValue(a1_2) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 1_2 = read() --Avatar 2 B1 = gg.getValue(a2_1) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 2_1 = read() B1 = gg.getValue(a2_2) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 2_2 = read() --Avatar 3 B1 = gg.getValue(a3_1) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 3_1 = read() B1 = gg.getValue(a3_2) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 3_2 = read() --Avatar 4 B1 = gg.getValue(a4_1) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 4_1 = read() B1 = gg.getValue(a4_2) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 4_2 = read() --Avatar 5 B1 = gg.getValue(a5_1) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 5_1 = read() B1 = gg.getValue(a5_2) A1 = 1072693248+1048576*math.floor(math.log(B1)/math.log(2))+math.floor(1048576*((B1+B1-math.pow(2,math.floor(math.log(B1)/math.log(2))+1))/math.pow(2,math.floor(math.log(B1)/math.log(2))+1))) type(B1, A1) 5_2 = read() --Ordered group scan of both Search values for first avatar gg.setRanges (gg.REGION_ANONYMOUS) --I got so far. Problem here i cant find any commands to do a ordered group search --i would try this for my understanding: gg.searchNumber(v['1_1'], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1);(v['1_2'], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1):1024 _______________________________________________ added 3 minutes later Holy yours much shorter then mines ROFL great thx
  6. Illuminus

    Can i lua this?

    This is the Excel Formula: =1072693248+1048576*INT(LOG(B1;2))+INT(1048576*((B1+B1-POWER(2;INT(LOG(B1;2))+1))/POWER(2;INT(LOG(B1;2))+1))) now lets convert this to a normal math Formula X=? 1072693248+1048576*INT(LOG(X;2))+INT(1048576*((X+X-POWER(2;INT(LOG(X;2))+1))/POWER(2;INT(LOG(X;2))+1)))= X=520 1072693248+1048576*INT(LOG(520;2))+INT(1048576*((520+520-POWER(2;INT(LOG(520;2))+1))/POWER(2;INT(LOG(520;2))+1)))=1082146816 _______________________________________________ added 1 minute later WOW you guys are genius!
  7. Illuminus

    Can i lua this?

    I know you could do it with math.modf but i dont have the experience in converting a excel Formula into an Lua code. The complete excel formula ist: =1072693248+1048576*INT(LOG(B1;2))+INT(1048576*((B1+B1-POWER(2;INT(LOG(B1;2))+1))/POWER(2;INT(LOG(B1;2))+1))) so if i add lets take my above example for avatars first value HEALTH its 520 and his attack power of45,2 in order to change both values i have to enter in excel the values 520 the formula =1072693248+1048576*INT(LOG(B1;2))+INT(1048576*((B1+B1-POWER(2;INT(LOG(B1;2))+1))/POWER(2;INT(LOG(B1;2))+1))) excel calculates the search value of 1082146816 and same for attack power 45,2 equals to 1078368665 these are the values i search for in gg as dword as ordered group search like this: 1082146816;1078368665::1024 and change all results in 1107468383
  8. Illuminus

    Can i lua this?

    I´ll explain my Steps here what I have to do: I have 5 Avatars with 2 Values I want to change each. For each Avatar I can easily do a group scan with both values in ordered search. Step one: collecting data and convert each value with my formula avatar 1 Healths: visible:520 Converted by Excel Formula: =1072693248+1048576*INT(LOG(B1;2))+INT(1048576*((B1+B1-POWER(2;INT(LOG(B1;2))+1))/POWER(2;INT(LOG(B1;2))+1))) Calculated search value: 1082146816 attackdamage:visible 45,2 Calculated search value: Formula: =1072693248+1048576*INT(LOG(B1;2))+INT(1048576*((B1+B1-POWER(2;INT(LOG(B1;2))+1))/POWER(2;INT(LOG(B1;2))+1))) Calculated search value: 1078368665 do groupsearch: health+attackdamage 1082146816;1078368665::1024 editAll 1107468383 --(change all values to 9999999999 which needs to be converted too aka same formula -> 1107468383 but I never change this so value is always 1107468383 here) clearResults restart Process for avatar 2 - 5 done.
  9. Illuminus

    Can i lua this?

    1_doesnt realy matters 2_Dword 3_all Values need to be converted with this formula in order to be changed properly: =1072693248+1048576*INT(LOG(B1;2))+INT(1048576*((B1+B1-POWER(2;INT(LOG(B1;2))+1))/POWER(2;INT(LOG(B1;2))+1)))
  10. Illuminus

    Can i lua this?

    Never mind i just read the Lua Math lib and it won't do Integral calculations, so that part will not be possible. but that only means the script can be written quicker and easier.
  11. Illuminus

    Can i lua this?

    Ok to be more specific. I thought I could write a Lua and search Form opens up asking me to enter raw values I wish to change Avatar 1:... value one: Value two: Avatar 2:... value one: value two: Avatar 3:... etc. The Lua would use my formula on each value to find the needed Values to search then it starts to do a double group search for each avatar and changes all values to one. _______________________________________________ added 2 minutes later Thx Enyby for your real quick reply. Sounds like my dreams can come true. Quote: "Params for all search you can ask from user one time." I don't really understand what you try to tell me here.
  12. Illuminus

    Can i lua this?

    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.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.