Advertisement
Hanryu

tapregister.cmd

Jun 21st, 2018
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. #Turns a register list into a wikitable format file
  2. #
  3. # By Hanryu
  4. # Please report any bugs to Hanryu#0052 (Discord) or sauva@play.net
  5. # This script may be reused in whole or in part as long as credit is given
  6. #
  7. #debug level 5
  8.  
  9. put #class clear
  10. put #class all off
  11.  
  12. action goto writeloop when "^(\d+)\s{1,2}(\w+).+ ([\w ']+)$"
  13. action var year $1 when "^It has been (\d+) years,"
  14. action var day $1 when "(\d+) days since the Victory of Lanival the Redeemer\.$"
  15. action var month $1 when "It is the \d+.. month of (['\w]+)"
  16.  
  17. pause 0.5
  18. matchre setleader (Tomma|Ievia|Kalika|Paglar|Marion|Tolle)
  19. send look
  20. matchwait
  21. setleader:
  22. var leader $1
  23. send time
  24. waitfor It is currently
  25. math day modulus 40
  26. math day add 1
  27. var filename Ranger_Register-%leader-$date.txt
  28. goto %leader
  29.  
  30. Kalika:
  31. put #log >%filename ==Crossing==
  32. put #log >%filename '''Last updated:''' %day %month %year ($date)<br />
  33. put #log >%filename <br>
  34. put #log >%filename Let it be known, the following Rangers are those that have shown skill in all aspects of the Ranger that I have deemed worthy:
  35. put #log >%filename :'''Criteria''': {{skill|Evasion}}, {{skill|Locksmithing}}, {{skill|Athletics}}, {{skill|First Aid}}, {{skill|Skinning}} and {{skill|Primary Magic}}.
  36. send tap register
  37. wait
  38. pause
  39. goto openfile
  40.  
  41. Ievia:
  42. put #log >%filename ==Riverhaven==
  43. put #log >%filename '''Last updated:''' %day %month %year ($date)<br />
  44. put #log >%filename <br>
  45. put #log >%filename Let it be known, the following Rangers are those that have progressed this season to a point where they should be able to take care of themselves in the wild.
  46. put #log >%filename :'''Criteria''': Have to be under 20th [[circle]].
  47. goto openfile
  48.  
  49. Tolle:
  50. put #log >%filename ==Langenfirth==
  51. put #log >%filename '''Last updated:''' %day %month %year ($date)<br />
  52. put #log >%filename <br>
  53. put #log >%filename Let it be known, the following Rangers are those that have shown skill in all aspects of the bow.
  54. put #log >%filename :'''Criteria''': {{skill|Bow}} and {{skill|Crossbows}}
  55. send tap register
  56. wait
  57. pause
  58. goto openfile
  59.  
  60. Tomma:
  61. put #log >%filename ==Shard==
  62. put #log >%filename '''Last updated:''' %day %month %year ($date)<br />
  63. put #log >%filename <br>
  64. put #log >%filename Let it be known, the following Rangers are those that have shown skill in the finer points of flora and fauna.
  65. put #log >%filename :'''Criteria''': {{skill|Outdoorsmanship}}
  66. send tap register
  67. wait
  68. pause
  69. goto openfile
  70.  
  71. Marion:
  72. put #log >%filename ==Aesry Surlaenis'a==
  73. put #log >%filename '''Last updated:''' %day %month %year ($date)<br />
  74. put #log >%filename <br>
  75. put #log >%filename Let it be known, the following Rangers are those that have shown skill in the more subtle ways of the Ranger.
  76. put #log >%filename :'''Criteria''': {{skill|Stealth}}, {{skill|Scouting}} and {{skill|Perception}}
  77. goto openfile
  78.  
  79. Paglar:
  80. put #log >%filename ==Boar Clan==
  81. put #log >%filename '''Last updated:''' %day %month %year ($date)<br />
  82. put #log >%filename <br>
  83. put #log >%filename Let it be known, the following Rangers are those that have advanced well within the Guild.
  84. put #log >%filename :'''Criteria''': [[Circle]]
  85. send tap register
  86. wait
  87. pause
  88. goto openfile
  89.  
  90. openfile:
  91. put #log >%filename {|class="wikitable sortable"
  92. put #log >%filename |-
  93. put #log >%filename !Rank!!Name!!Race
  94. put #log >%filename |-
  95. put read register
  96. waitfor positive attitude
  97. writeloop:
  98. put #log >%filename |$1||[[$2]]||$3
  99. put #log >%filename |-
  100. waitfor To REMOVE your name from this list, RUB the register
  101.  
  102. end:
  103. done:
  104. send #log >%filename |}
  105. send #class -critterapp -mana -health -analyze -app -trail -gagbees -gagclimb -gagboxes -gagapp -gagorigami -gagjuggle -gagforage -gagscrape -gaghorse
  106. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement