Advertisement
Cappelle

Copy Rune Book

Feb 22nd, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. // Author: Hawt
  2. // Description: Automatic Runebook Cloner.
  3. // You need to insert the names of each rune on the "Names" List. IT will run over and over if a location is blocked untill it makes it passed too the rune.
  4. //===========================================================
  5. //Select runebook to be cloned
  6. promptalias 'ToBeCloned'
  7. //Select a blank book
  8. promptalias 'Blank Runebook'
  9. //Lists
  10. clearlist 'Runes'
  11. clearlist 'Names'
  12. if not listexists 'Runes'
  13. createlist 'Runes'
  14. endif
  15. if list 'Runes' == 0
  16. pushlist 'Runes' 5
  17. pushlist 'Runes' 11
  18. pushlist 'Runes' 17
  19. pushlist 'Runes' 23
  20. pushlist 'Runes' 29
  21. pushlist 'Runes' 35
  22. pushlist 'Runes' 41
  23. pushlist 'Runes' 47
  24. pushlist 'Runes' 53
  25. pushlist 'Runes' 59
  26. pushlist 'Runes' 65
  27. pushlist 'Runes' 71
  28. pushlist 'Runes' 77
  29. pushlist 'Runes' 83
  30. pushlist 'Runes' 89
  31. pushlist 'Runes' 95
  32. endif
  33. if not listexists 'Names'
  34. createlist 'Names'
  35. endif
  36. if list 'Names' == 0
  37. pushlist 'Names' 'Abyss North'
  38. pushlist 'Names' "Baracoon South"
  39. pushlist 'Names' "Baracoon West"
  40. pushlist 'Names' 'Cove East'
  41. pushlist 'Names' "Cove West"
  42. pushlist 'Names' "Deceit Alter"
  43. pushlist 'Names' 'Destard North'
  44. pushlist 'Names' 'Destard South'
  45. pushlist 'Names' "Oaks Rooftop"
  46. pushlist 'Names' 'Oaks South'
  47. pushlist 'Names' "Orc East"
  48. pushlist 'Names' 'Orc West'
  49. pushlist 'Names' 'Shame West'
  50. pushlist 'Names' 'Terathan East'
  51. pushlist 'Names' 'Terathan North'
  52. pushlist 'Names' 'Water'
  53. endif
  54. if not @findtype 0x1f14 any 'backpack'
  55. sysmsg 'Out of blank runes!' 25
  56. pause 100
  57. playsound 984
  58. pause 100
  59. playsound 987
  60. pause 100
  61. playsound 988
  62. pause 100
  63. messagebox 'Error' '*No Runes restock & restart*'
  64. stop
  65. endif
  66. clearjournal
  67. for 0 to 'Runes'
  68. if mana <= 30
  69. useskill 'Meditation'
  70. while not mana == maxmana
  71. endwhile
  72. endif
  73. pause 1500
  74. useobject! 'ToBeCloned'
  75. waitforgump 0x554b87f3 15000
  76. pause 900
  77. replygump 0x554b87f3 Runes[0]
  78. pause '3500'
  79. if injournal 'blocked' 'system'
  80. replay
  81. endif
  82. if @findtype 0x1f14 0 'backpack' 1 2
  83. autotargetobject 'found'
  84. cast 'Mark'
  85. pause 3500
  86. useobject! 'found'
  87. waitforprompt 15000
  88. promptmsg Names[0]
  89. pause 2000
  90. moveitem 'found' 'Blank Runebook'
  91. pause 2000
  92. if @injournal 'Names[0]' 'system'
  93. @poplist 'Names' 'front'
  94. @poplist 'Runes' 'front'
  95. endif
  96. else
  97. playsound 984
  98. pause 100
  99. playsound 987
  100. pause 100
  101. playsound 988
  102. pause 100
  103. messagebox 'Error' '*No Runes restock & restart*'
  104. stop
  105. endif
  106. endfor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement