Fowskill Posted February 28, 2023 Posted February 28, 2023 Need help to Make a setting type (and what would then be saved in cfg) and then these values were used in the script my exaple t[i] = { address = i.address + 4, flags = 16, value = (HERE VALUE OF THIS gg.prompt) gg.setValues(t) } who can help with ?
0 MANDO01 Posted March 1, 2023 Posted March 1, 2023 15 hours ago, Fowskill said: Need help to Make a setting type (and what would then be saved in cfg) and then these values were used in the script my exaple t[i] = { address = i.address + 4, flags = 16, value = (HERE VALUE OF THIS gg.prompt) gg.setValues(t) } who can help with ? I didn't understand anything you said 1
0 Fowskill Posted March 1, 2023 Author Posted March 1, 2023 4 hours ago, MANDO01 said: I didn't understand anything you said u have telegram?>
0 MANDO01 Posted March 2, 2023 Posted March 2, 2023 7 hours ago, Fowskill said: u have telegram?> No I don't
0 Fowskill Posted March 2, 2023 Author Posted March 2, 2023 6 minutes ago, MANDO01 said: No I don't give discord
0 MANDO01 Posted March 2, 2023 Posted March 2, 2023 7 hours ago, Fowskill said: give discord THE MANDALORIAN#8836
0 HEROGAMEOfficial Posted March 2, 2023 Posted March 2, 2023 On 3/1/2023 at 5:17 AM, Fowskill said: Need help to Make a setting type (and what would then be saved in cfg) and then these values were used in the script my exaple t[i] = { address = i.address + 4, flags = 16, value = (HERE VALUE OF THIS gg.prompt) gg.setValues(t) } who can help with ? Why are many people lazy to read before asking? Your answer is here.
0 Fowskill Posted March 2, 2023 Author Posted March 2, 2023 58 minutes ago, HEROGAMEOfficial said: Why are many people lazy to read before asking? Your answer is here. i make that , just now have other problem
0 MANDO01 Posted March 2, 2023 Posted March 2, 2023 9 hours ago, Fowskill said: i make that , just now have other problem So ask them what you wait for
0 Fowskill Posted March 3, 2023 Author Posted March 3, 2023 On 3/2/2023 at 3:05 PM, HEROGAMEOfficial said: Why are many people lazy to read before asking? Your answer is here. how can i seach? i need seach my item spec gg.searchNumber(itemsSpec[itemType][item].id , gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1, 0) local t = gg.getResults(25000, nil, nil, nil, nil, nil, nil, nil, nil) Its my item spec what i need change that for find that value (ID) itemsSpec = { { id = 21, name = " Ball of Light " }, { id = 22, name = " Poisonous Green Cloud " }, { id = 33, name = " Piercing Trace " }, { id = 24, name = " Ice Projectile " }, {
0 MAARS Posted March 4, 2023 Posted March 4, 2023 14 hours ago, Fowskill said: how can i seach? Search what ? you need to give more information about your issue or if you are lucky enough people will try to guess else no one will resply to your topic
0 Fowskill Posted March 4, 2023 Author Posted March 4, 2023 (edited) 35 minutes ago, MAARS said: Search what ? you need to give more information about your issue or if you are lucky enough people will try to guess else no one will resply to your topic ITS My script/ function skill() local itemType = gg.choice({ "Weapon Type", "Weapon Type ", "Weapon Type ", "Weapon Type ", }, nil, "ℹWhat kind of Skill do you want to Trade?") if itemType == nil then return end local item = gg.choice(map(itemsSpec[itemType], function(item) return item.name end ), nil, "ℹWhich Weapon Type do you want to choose?") if item == nil then return end gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber(I need here seach my itemsspec ID, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) its my itemsspec itemsSpec = { { { id = 1, name = " Single Arrow " }, { id = 2, name = " Rain Blue " }, { id = 3, name = " Fire Arrow " }, { id = 4, name = " Green Projectile" }, { id = 5, name = " Black Spell " }, { id = 6, name = " Blue Projectile " }, Edited March 4, 2023 by Fowskill
0 MANDO01 Posted March 5, 2023 Posted March 5, 2023 (edited) 15 hours ago, Fowskill said: ITS My script/ function skill() local itemType = gg.choice({ "Weapon Type", "Weapon Type ", "Weapon Type ", "Weapon Type ", }, nil, "ℹWhat kind of Skill do you want to Trade?") if itemType == nil then return end local item = gg.choice(map(itemsSpec[itemType], function(item) return item.name end ), nil, "ℹWhich Weapon Type do you want to choose?") if item == nil then return end gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber(I need here seach my itemsspec ID, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) its my itemsspec itemsSpec = { { { id = 1, name = " Single Arrow " }, { id = 2, name = " Rain Blue " }, { id = 3, name = " Fire Arrow " }, { id = 4, name = " Green Projectile" }, { id = 5, name = " Black Spell " }, { id = 6, name = " Blue Projectile " }, Your array is missing an array here an example i made mo = { { {id = 1,name = "one Single Arrow "}, {id = 2,name = "two Rain Blue "}, {id = 3,name = "three Fire Arrow "}, {id = 4,name = "four Green Projectile"}, {id = 5,name = "five Black Spell "}, {id = 6,name = "six Blue Projectile "} },{ -- I'm sure 80% you forgot to add this in your array or any other array -- and game guardian will not tell you to add the missing "{" he will tell you to remove the closeing "}" . {id = 8,name = "some one "}, {id = 10,name = "some body "}, {id = 13,name = "some reason "}, {id = 15,name = "some thing "}, {id = 12,name = "some day "}, {id = 143,name = "some time "}, } } If you want to call this array it will be like print(itemsSpec[1][2]) -- {id = 2,name = "two Rain Blue "} print(itemsSpec[1][6]) -- {id = 6,name = "six Blue Projectile "} print(itemsSpec[2][1]) -- {id = 8,name = "some one "} print(itemsSpec[2][6]) -- {id = 143,name = "some time "} print(itemsSpec[2][2].id) -- 10 print(itemsSpec[2][3].name) -- some time -- if you forget the array the answers will be like this print(itemsSpec[1][2]) -- {id = 2,name = "two Rain Blue "} print(itemsSpec[1][6]) -- {id = 6,name = "six Blue Projectile "} print(itemsSpec[2][1]) -- nil print(itemsSpec[2][6]) -- nil print(itemsSpec[2][2].id) -- error print(itemsSpec[2][3].name) -- error If you forget the array this error will come to you Edited March 5, 2023 by MANDO01
Question
Fowskill
Need help to
Make a setting type (and what would then be saved in cfg)
and then these values were used in the script
my exaple
t[i] = {
address = i.address + 4,
flags = 16,
value = (HERE VALUE OF THIS gg.prompt)
gg.setValues(t)
}
who can help with ?
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now