Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest notificari begin
- state start begin
- function read_notice_line(l)
- return read_server_line("/usr/home/game/share/locale/germany/quest/system/text_file.txt", l)
- end
- when login begin
- loop_timer("loop_notificari", 20)
- end
- when loop_notificari.timer begin
- local version = read_server_line("/usr/home/game/share/locale/germany/quest/system/version.txt", 1)
- local lineas = 7
- if tonumber(version) > pc.getqf("state_of_quest") then
- for line in io.lines("/usr/home/game/share/locale/germany/quest/system/text_file.txt") do lineas = lineas + 1 end
- cmdchat("open_notice_info")
- pc.setqf("state_of_quest", version)
- for i = 1,lineas do
- cmdchat("write_notice_info "..string.gsub(notificari.read_notice_line(i), ' ', '_'))
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement