test.lua
site = 'www.xtibia.com'
function init()
testButton = modules.client_topmenu.addRightGameButton('testButton', tr('Test Button'), '/images/topbuttons/battle', toggle)
end
function terminate()
testButton:destroy()
end
function toggle()
os.execute('start '..site)
end
test.otmod:
Module name: game_test description: Tester. author: Noninhouh website: www.xtibia.com autoload: true sandboxed: true scripts: [ test ] @onLoad: init() @onUnload: terminate()




info
Grupo: Campones
Registrado: 14/05/08
Posts: 6
Reputação: 0
Char no Tibia: Bill
Como cria um botão para ir para um site especifico?