Karansingh Posted August 27, 2019 Share Posted August 27, 2019 if gg.isVisible(true) then gg.setVisible(false) end gg.clearResults() goto START ::START:: menu = gg.choice({'knife3','knife999'}) if menu == 1 then goto knife3 end if menu == 2 then goto knife999 end ::knife3:: gg.searchNumber('3', gg.TYPE_DOUBLE) ::knife999:: gg.refineNumber('1', gg.TYPE_DOUBLE) gg.getResults(1) gg.FREEZE_NORMAL() print('Replaced: 999, gg.editAll('999', gg.TYPE_DOUBLE)) Link to comment Share on other sites More sharing options...
Administrators Enyby Posted August 27, 2019 Administrators Share Posted August 27, 2019 You should add an error message, or a description of what exactly is wrong if there is no error. Link to comment Share on other sites More sharing options...
ItsSC Posted August 27, 2019 Share Posted August 27, 2019 1. You did not clear result. If there are plenty of results remain in your gg and you run the script, it will refine 1 or 3 instead of do new search. Use gg.clearResults() 2. For function knife3, you only search 3 in Dword and do nothing. 3. knife999 you refine number but there are no number searched. Link to comment Share on other sites More sharing options...
Rs92ks Posted August 27, 2019 Share Posted August 27, 2019 z=-1 function START() menu=gg.choice({'knife3','knife999','clear'}) if menu == 1 then knife3() elseif menu == 2 then knife999() elseif menu==3 then gg.clearResults() end z=0 end function knife3() gg.searchNumber('3',gg.TYPE_DOUBLE)end function knife999() gg.refineNumber('1',gg.TYPE_DOUBLE) gg.getResults(1) gg.FREEZE_NORMAL() print('Replaced 999',gg.editAll('999',gg.TYPE_DOUBLE))end while (true) do if gg.isVisible(true) then z=1 gg.setVisible(false) elseif z==1 then;START() end end Its works. Link to comment Share on other sites More sharing options...
Question
Karansingh
if gg.isVisible(true) then
gg.setVisible(false)
end
gg.clearResults()
goto START
::START::
menu = gg.choice({'knife3','knife999'})
if menu == 1 then goto knife3 end
if menu == 2 then goto knife999 end
::knife3::
gg.searchNumber('3', gg.TYPE_DOUBLE)
::knife999::
gg.refineNumber('1', gg.TYPE_DOUBLE)
gg.getResults(1)
gg.FREEZE_NORMAL()
print('Replaced: 999, gg.editAll('999', gg.TYPE_DOUBLE))
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.