Thank you for your help i got it to work right by using the following
function get_module_name()
return "worldbuffs"
end
function worldbuffs()
if get_value( "lv" ) >= 20 then
add_state(1001, 5, 8640000)
add_state(1002, 5, 8640000)
add_state(1011, 5, 8640000)
add_state(1013, 5, 8640000)
add_state(1012, 5, 8640000)
add_state(1014, 5, 8640000)
add_state(1016, 5, 8640000)
add_state(1007, 5, 8640000)
add_state(1008, 5, 8640000)
add_state(1009, 5, 8640000)
add_state(1015, 5, 8640000)
end
if get_value( "lv" ) >= 50 then
add_state(1001, 10, 8640000)
add_state(1002, 10, 8640000)
add_state(1011, 10, 8640000)
add_state(1013, 10, 8640000)
add_state(1012, 10, 8640000)
add_state(1014, 10, 8640000)
add_state(1016, 10, 8640000)
add_state(1007, 10, 8640000)
add_state(1008, 10, 8640000)
add_state(1009, 10, 8640000)
add_state(1015, 10, 8640000)
end
if get_value( "lv" ) >= 80 then
add_state(1001, 20, 8640000)
add_state(1002, 20, 8640000)
add_state(1011, 20, 8640000)
add_state(1013, 20, 8640000)
add_state(1012, 20, 8640000)
add_state(1014, 20, 8640000)
add_state(1016, 20, 8640000)
add_state(1007, 20, 8640000)
add_state(1008, 20, 8640000)
add_state(1009, 20, 8640000)
add_state(1015, 20, 8640000)
end
end