Found out how to do it, for anyone else interested:
Code:
script_id = script.get(_SCRIPTNAME).id
script_timer = db:getrow('SELECT params FROM scripting where id = ?', script_id).params
Thank you!
Morkov
Morkov