captcha_db.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //===== rAthena Documentation ================================
  2. //= Captcha Database Structure
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20220920
  7. //===== Description: =========================================
  8. //= Explanation of the captcha_db.yml file and structure.
  9. //============================================================
  10. ---------------------------------------
  11. Id: Unique ID.
  12. ---------------------------------------
  13. Filename: Name of the BMP image file (with location).
  14. The path of the file can be different for each captcha image, but it's best practice to keep them in the same directory.
  15. Example:
  16. Filename: db/import/captcha/rathena.bmp
  17. ---------------------------------------
  18. Answer: Correct answer for the captcha (case-sensitive).
  19. ---------------------------------------
  20. Bonus: NPC script that is ran when a captcha is successfully answered. Accepts all forms of script constants, variables, as well as the
  21. unique player variable @captcha_retries. This variable can be used within the Bonus script to get the remaining retries a player
  22. has. Coupled with the script command 'getbattleflag()' this could be used to assign different bonuses based on success rate.
  23. Example:
  24. # Give level 10 Blessing for 20 minutes with no failures, else give for 30 seconds.
  25. Bonus: >
  26. if (@captcha_retries == getbattleflag("macro_detection_retry")) {
  27. # Player solved it on first try
  28. specialeffect2 EF_BLESSING;
  29. sc_start SC_BLESSING,1200000,10;
  30. } else {
  31. # Player needed more than one try
  32. specialeffect2 EF_BLESSING;
  33. sc_start SC_BLESSING,30000,10;
  34. }