Jump to content

tananiki

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by tananiki

  1. anyone know how to correct this script?

    i keep getting error on choice number 2...

    the function is to search a number when press Search, then refine search and freeze the first 4 address to 10. after done unfreeze and clear the list.

    function doAction()
        local menu = gg.choice({'Search','Change','Clear','exit'})
        if menu==1 then 
            gg.clearResults()
            gg.searchNumber('1.23',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1) end
        if menu==2 then
            gg.refineNumber('4.56',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1)
            local t = gg.getResults(4)
            t[1].value = '10'
            t[1].freeze = true
            t[1].freezeType = FREEZE_NORMAL
            t[2].value = '10'
            t[2].freeze = true
            t[2].freezeType = FREEZE_NORMAL
            t[3].value = '10'
            t[3].freeze = true
            t[3].freezeType = FREEZE_NORMAL
            t[4].value = '10'
            t[4].freeze = true
            t[4].freezeType = FREEZE_NORMAL
            gg.addListItems(t) end
        if menu==3 then
            local r = gg.getListItems()
            r[1].freeze = false
            r[2].freeze = false
            r[3].freeze = false
            r[4].freeze = false
            gg.clearList()
            end
        if menu==4 then os.exit() end
    end
    gg.setVisible(false)
    while true do
        if gg.isVisible() then
            gg.setVisible(false)
            doAction()
        end
        gg.sleep(100)
    end

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