First add this code in your UserOptions. Obs: You can add it in any section.

PHP Code:
                {
                        
"type"        "combobox",
                        
"name"        "Skill",
                        
"text"        "Skill",
                        
"description" "Skill",
                        
"items"       : ["Club""Axe""Sword"]
                } 
Then you need to create an action:

PHP Code:
auto(10000)
if 
getuseroption("Skill") == "Club" and getuseroption("OfflineTrain"then
            reachgrounditem
(16200)
            
wait(200500)
            
useitem(16200'ground')
end
if getuseroption("Skill") == "Axe" and getuseroption("OfflineTrain"then
            reachgrounditem
(16199)
            
wait(200500)
            
useitem(16199'ground')
end
if getuseroption("Skill") == "Sword" and getuseroption("OfflineTrain"then
            reachgrounditem
(16198)
            
wait(200500)
            
useitem(16198'ground')
end 

Thats all, good lucky making your cavebot script guys