Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. quest notificari begin
  2. state start begin
  3. function read_notice_line(l)
  4. return read_server_line("/usr/home/game/share/locale/germany/quest/system/text_file.txt", l)
  5. end
  6.  
  7. when login begin
  8. loop_timer("loop_notificari", 20)
  9. end
  10.  
  11. when loop_notificari.timer begin
  12. local version = read_server_line("/usr/home/game/share/locale/germany/quest/system/version.txt", 1)
  13. local lineas = 7
  14.  
  15. if tonumber(version) > pc.getqf("state_of_quest") then
  16.  
  17. for line in io.lines("/usr/home/game/share/locale/germany/quest/system/text_file.txt") do lineas = lineas + 1 end
  18.  
  19. cmdchat("open_notice_info")
  20. pc.setqf("state_of_quest", version)
  21.  
  22. for i = 1,lineas do
  23. cmdchat("write_notice_info "..string.gsub(notificari.read_notice_line(i), ' ', '_'))
  24. end
  25. end
  26. end
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement