Jump to content
Sign in to follow this  
rei_hunter

Specific Group Search help

Recommended Posts

In loop build table with new values. After loop pass this table to setValues (for edit) or addListItems (for freeze).

All same.

Share this post


Link to post
Share on other sites

Yay. Got it working. I went with adding to the list for safety. Finally 0 master skill cooldown. Ill probably do 1 for regular units skills but gotta check on skillids for those hoho.

 

Thanks

Share this post


Link to post
Share on other sites
gg.searchNumber("980001~980060;2~10;1~99::9", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
local t = gg.getResults(999999)
local out = {}
for i, v in ipairs(t) do
    if i % 3 == 0 then
    out[#out + 1] = v
    end
end
gg.addListItems(out)
gg.clearResults()
-- 
gg.searchNumber("82550;1~10;5~7::9"), gg.TYPE_WORD, false, gg.SIGN_EQUAL, 0, -1)
local t = gg.getResults(999999)
local out = {}
for i, v in ipairs(t) do
    if i % 3 == 0 then
    out[#out + 1] = v
    end
end
gg.addListItems(out)
gg.clearResults()

Right so here's my current script. I wanted to do the 1000~980060 range but somehow i got all other stuff instead.

So i wanted to do seperate searches within the same script, but somehow it doesnt search the second search? Anything i'm doing wrong?

Share this post


Link to post
Share on other sites
3 hours ago, rei_hunter said:

TYPE_WORD

In second search. Look like mistake.

Share this post


Link to post
Share on other sites

Sorry for double post, is it possible, for group searching, to use commas?

Like for example, 82250,100551,213450;1~10;5~8::9 in the searchbar? (I mean the value is a given after all)

Share this post


Link to post
Share on other sites
17 hours ago, rei_hunter said:

Sorry for double post, is it possible, for group searching, to use commas?

Like for example, 82250,100551,213450;1~10;5~8::9 in the searchbar? (I mean the value is a given after all)

No commas like , this is to provide number place value . Like 100,100 will mean the value is Hundred Thousand One Hundred , which is treated as a complete one value. And group search means different values which are seperated by ; and their group size defined after :  . To understand it more clearly you can try writing search function using , and without , and making group and all the possible ways you think. And just look at gg searching it , and see what it is searching.

Share this post


Link to post
Share on other sites
1 hour ago, AKRAMRAZA said:

No commas like , this is to provide number place value . Like 100,100 will mean the value is Hundred Thousand One Hundred , which is treated as a complete one value. And group search means different values which are seperated by ; and their group size defined after :  . To understand it more clearly you can try writing search function using , and without , and making group and all the possible ways you think. And just look at gg searching it , and see what it is searching.

Gah. searching the skillids one by one takes time. I've already turned off the Java trash bulk too. I've got like 33 gg.searchNumber() within that script of mine currently, no hope in reducing it huh 😞

Heck the very first one is easy enough since they're right next to one another, but the specific skillids are seperated by 50s/100s, and sometimes an irregular number that ends with 2. 

oh wells. maybe next time @_@

Edited by rei_hunter

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...