secure.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef CONFIG_SECURE_HPP
  4. #define CONFIG_SECURE_HPP
  5. /**
  6. * rAthena configuration file (http://rathena.org)
  7. * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
  8. **/
  9. /**
  10. * @INFO: This file holds optional security settings
  11. **/
  12. /**
  13. * Optional NPC Dialog Timer
  14. * When enabled all npcs dialog will 'timeout' if user is on idle for longer than the amount of seconds allowed
  15. * - On 'timeout' the npc dialog window changes its next/menu to a 'close' button
  16. * Comment to disable the timer.
  17. **/
  18. #define SECURE_NPCTIMEOUT
  19. /**
  20. * Number of seconds after an 'input' field is displayed before invoking an idle timeout.
  21. * Default: 180
  22. **/
  23. #define NPC_SECURE_TIMEOUT_INPUT 180
  24. /**
  25. * Number of seconds after a 'menu' is displayed before invoking an idle timeout.
  26. * Default: 60
  27. **/
  28. #define NPC_SECURE_TIMEOUT_MENU 60
  29. /**
  30. * Number of seconds after a 'next' button is displayed before invoking an idle timeout.
  31. * Default: 60
  32. **/
  33. #define NPC_SECURE_TIMEOUT_NEXT 60
  34. /**
  35. * (Secure) Optional NPC Dialog Timer
  36. * @requirement : SECURE_NPCTIMEOUT must be enabled
  37. * Minimum Interval Between timeout checks in seconds
  38. * Default: 1s
  39. **/
  40. #define SECURE_NPCTIMEOUT_INTERVAL 1
  41. #endif /* CONFIG_SECURE_HPP */