Cappelle

Blacksmith slayers with beetle

Mar 18th, 2018
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. //Note: Be sure that there are no weapons of the chosen type in your main pack before running.
  2. if listexists 'slayerType'
  3. clearlist 'slayerType'
  4. else
  5. createlist 'slayerType'
  6. endif
  7. //Set the graphic below to match that of the weapon you're crafting.
  8. pushlist 'slayerType' 0x1401
  9. //0xf5e broadsword
  10. //0x13ff katana
  11. //0xf4b double axe
  12. //0x1403 short spear
  13. //0xf49 axe
  14. //0x1401 kryss
  15. //0x1439 war hammer
  16. //0x1407 war mace
  17. //0xf47 battle axe
  18. if @findtype 'slayerType[0]' 'any' 'backpack' 'any' '0'
  19. headmsg '*Remove weapons of the chosen type from your main pack before starting.*' 50
  20. stop
  21. endif
  22. while mounted
  23. useobject 'self'
  24. pause 200
  25. endwhile
  26. if not @findobject 'mount'
  27. promptalias 'mount'
  28. endif
  29. if not @findobject 'mount'
  30. headmsg 'Beetle not found.' 50
  31. stop
  32. else
  33. while not mounted
  34. useobject 'mount'
  35. pause 200
  36. endwhile
  37. endif
  38. @createtimer 'failSafe'
  39. while @findtype 0xfbb 'any' 'backpack'
  40. setalias 'tongs' 'found'
  41. pause 600
  42. useobject 'found'
  43. waitforgump 0x38920abd 3000
  44. pause 200
  45. while @findobject 'tongs' and gumpexists 0x38920abd
  46. if @injournal 'crafted a slayer' 'system'
  47. sysmsg 'Slayer crafted!' 33
  48. while not @findobject 'mount'
  49. useobject 'self'
  50. pause 600
  51. endwhile
  52. while @findtype slayerType[0] 0x0 'backpack'
  53. @setalias 'slayerWep' 'found'
  54. while not @inrange 'mount' 2
  55. msg 'all come'
  56. pause 200
  57. endwhile
  58. moveitem 'slayerWep' 'mount'
  59. pause 600
  60. endwhile
  61. while @findobject 'mount'
  62. if @inrange 'mount' 1
  63. useobject 'mount'
  64. pause 200
  65. else
  66. msg 'all come'
  67. endif
  68. pause 300
  69. endwhile
  70. ignoreobject 'slayerWep'
  71. clearjournal
  72. pause 600
  73. elseif @findtype slayerType[0] 0x0 'backpack' 'any' 0
  74. if @gumpexists 0x38920abd
  75. @replygump 0x38920abd 14
  76. waitfortarget 3000
  77. @target! 'found'
  78. waitforgump 0x38920abd 3000
  79. else
  80. ignoreobject 'found'
  81. endif
  82. endif
  83. if @gumpexists 0x38920abd
  84. @replygump 0x38920abd 21
  85. waitforgump 0x38920abd 3000
  86. settimer 'failSafe' 0
  87. if not @gumpexists 0x16bcf486
  88. while not @findtype slayerType[0] 0x0 'backpack' 'any' 0
  89. pause 50
  90. if timer 'failSafe' > 3000
  91. headmsg 'No weapon found. Be sure you have the correct weapon type inserted on line 8.' 50
  92. messagebox 'Alert' 'No weapon found. Be sure you have the correct weapon type inserted on line 8.'
  93. stop
  94. endif
  95. endwhile
  96. else
  97. while @gumpexists 0x16bcf486
  98. pause 100
  99. if timer 'failSafe' > 60000
  100. break
  101. endif
  102. endwhile
  103. endif
  104. endif
  105. endwhile
  106. endwhile
  107. headmsg '*Tongs not found*' 50
  108. messagebox 'Error' 'Tongs not found'
Add Comment
Please, Sign In to add comment