Jump to content

hsusudhbsjwhdhdgsj

Members
  • Content Count

    19
  • Donations

    $0.00 
  • Joined

  • Last visited

Community Reputation

1 n00b

About hsusudhbsjwhdhdgsj

  • Rank
    Member

Recent Profile Visitors

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

  1. [added 0 minutes later] everything is great now but i wanted to sort the table alphabeticaly and tried table.sort(IDandNames) but if selectedMonsterId = playerMonsters[monsterPoss].id when clicked the id dosnt match with the name from IDandNames should i make a new array like table and sort cause i dont think lua tables can be sort
  2. smooth as butter give me ur paypal i will make sure you will drink a tasty coffee tomorrow
  3. ive tried this local IDandNames = {} for _, v in ipairs(p_mnst) do for keys, val in ipairs(v) do local name = names[v] table.insert(IDandNames, v, name) end end print(IDandNames) but the table is empty edit tried with pair still empty
  4. so is even harder cause the values of p_mnst {} are tables here the print of p_mnst {} Script ended: { -- table(84f1af3) [101] = { -- table(5ad736) ['address'] = 0x72fd2eb420, ['flags'] = 4, -- gg.TYPE_DWORD ['value'] = 23513, }, [104] = { -- table(ac0d7a4) ['address'] = 0x72fd302e40, ['flags'] = 4, -- gg.TYPE_DWORD ['value'] = 19615, }, [107] = { -- table(c7530c2) ['address'] = 0x72fd303f70, ['flags'] = 4, -- gg.TYPE_DWORD ['value'] = 13231, }, [110] = { -- table(e05ca10) ['address'] = 0x72fd308430, ['flags'] = 4, -- gg.TYPE_DWORD ['value'] = 25111, }, [113] = { -- table(de9970e) ['address'] = 0x72fd31b990, ['flags'] = 4, -- gg.TYPE_DWORD ['value'] = 21512, }, [116] = { -- table(65773c) ['address'] = 0x72fd33bd30, ['flags'] = 4, -- gg.TYPE_DWORD ['value'] = 24713, }
  5. How i should match 2 table and if the key match insert them in a third table the key from second table and the value from first table basically what im trying to do is this i have a table with all monsters data names { 101 = "Fairy", 10111 = "Elucia", 10112 = "Iselia", 10113 = "Aeilene", 10114 = "Neal", 10115 = "Sorin", 10131 = "Elucia", 10132 = "Iselia", 10133 = "Aeilene", 10134 = "Neal", 10135 = "Sorin", 102 = "Imp", 10211 = "Fynn", 10212 = "Cogma", 10213 = "Ralph", 10214 = "Taru", 10215 = "Garok", 103 = "Pixie", 10311 = "Kacey", 10312 = "Tatu", 10313 = "Shannon", 10314 = "Cheryl", 10315 = "Camaryn", 10331 = "Kacey", 10332 = "Tatu", 10333 = "Shannon", 10334 = "Cheryl", 10335 = "Camaryn", 104 = "Yeti", 10411 = "Kunda", 10412 = "Tantra", 10413 = "Rakaja", 10414 = "Arkajan", 10415 = "Kumae", } then i retive the monsters that the player Account posses using offset = offset function rst(new_tre, new_ire, original_tre, original_ire, offset) new_tre[new_ire].address= original_tre[original_ire].address + offset new_tre[new_ire].flags = gg.TYPE_DWORD end gg.searchNumber(AccID..";6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, -1) rF = gg.getResults(gg.getResultsCount()) p={} for i=2, #rF, 3 do p[i]={} rst(p, i, rF, i, offset) end p_mnst = gg.getValues(p) so at this point i hate the database with all monster that exist on game on names {} and the monsters ID number that the account have on p_mnst {} now what i want to do is get the names of the IDs on p_mnst {} and insert on new table IDandNames {} so i could ad the monster with the names on a submenu where the people could change data on that particular monster so the p_mnst {} will look like this p_mnst { 10115, 10213, 10315 } the IDandNames {} should look like this IDandNames { 10115 = "monster name", -- so the ID number retrived from p_mnst{} and the monster name retrived from Names{} 10213 = "monster name", 10315 = "monster name", } the submenu should look something like this monsterPoss = gg.choice({ IDandNames[1], --here should be the name of the monster and not the ID number IDandNames[2], IDandNames[3], }, nil, " Select the monster you want to edit") if monsterPoss == 1 then gg.searchNumber(AccID..";"..IDandNames["monster name"]..";1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, -1) rK = gg.getResults(gg.getResultsCount()) do stuff where ..IDandNames["monster name"] should be the ID number of the monster you selected to change i dont know how to do all of this on lua since lua dosnt have table.match or somethink like this Can someone help me build a code for this
  6. ive tried but idk what im doing wrong the is saving the new value and not the original one
  7. actually one last thing how to restore the original_t[original_i].address + offset value that got changed on lol(p, i, r, i, 0x20, 4713)? i've tried everythink i know to revert the changes back to original state value but im lost
  8. Oh God I'm ashamed Thank you so much everythink working now
  9. i've tried but is not giving me any result i just need to retrive the value of the new address and use it to search again gg.searchNumber("19811;1065353216;10616;10606;10611::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5) r = gg.getResults(gg.getResultsCount()) t = {} t[1] = {} t[1].address = r[1].address - 0x8 t[1].flags = gg.TYPE_DWORD t = gg.getValues(t) AccID = t[1].value gg.searchNumber("AccID;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5) r = gg.getResults(gg.getResultsCount()) for some reason using AccID = r[1].value is working but i need the new address value that is t[1].address = r[1].address - 0x8 and is giving nil result using t[1].value
  10. but can not use as variable and will return nil
  11. How retrive the value of an offset address and use the value as variable? how to retrive the value of an offset address? gg.searchNumber("19811;1065353216;10616;10606;10611::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5) r = gg.getResults(gg.getResultsCount()) t = { { address = r[1].address - 0x8 } } p = { { val = t[1].value } } print(' value: ', p[1].value) this giving me nil i want to use val as variable
  12. i need some further help how to retrive the value of an offset address? gg.searchNumber("19811;1065353216;10616;10606;10611::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5) r = gg.getResults(gg.getResultsCount()) t = { { address = r[1].address - 0x8 } } p = { { val = t[1].value } } print(' value: ', p[1].value)
×
×
  • Create New...