Advertisement
lonesome74

Untitled

Jun 1st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. /////////////////////////
  2. //Bod Swapper, v 1d
  3. /////////////////////////
  4. if not @findalias 'Smith2Swap'
  5. headmsg 'Please target the Blacksmith'
  6. promptalias 'Smith2Swap' 15000
  7. endif
  8. if not @findobject 'SwapBODSBook'
  9. headmsg 'Please target the Source BOD Book'
  10. promptalias 'SwapBODSBook' 15000
  11. endif
  12. if not @findobject 'NewBodsBook'
  13. headmsg 'Please target the NEW BOD Book'
  14. promptalias 'NewBodsBook' 15000
  15. endif
  16. if @findtype 0x1ebb 'any' 'backpack' and @property 'Tool Box' 'found'
  17. @setalias 'ToolBox' 'found'
  18. endif
  19. if not listexists 'Gumps'
  20. createlist 'Gumps'
  21. pushlist 'Gumps' 0xd6bcf63a
  22. pushlist 'Gumps' 0x9bade6ea
  23. pushlist 'Gumps' 0x307b71a8
  24. pushlist 'Gumps' 0x15bc9aa4
  25. endif
  26. waitforcontext 'Smith2Swap' 3 15000
  27. for 0 to Gumps
  28. while @gumpexists Gumps[]
  29. if @gumpexists 0x9bade6ea
  30. replygump 0x9bade6ea 1
  31. elseif @gumpexists 0xd6bcf63a
  32. replygump 0xd6bcf63a 1
  33. elseif @gumpexists 0x307b71a8
  34. replygump 0x307b71a8 1
  35. elseif @gumpexists 0x15bc9aa4
  36. replygump 0x15bc9aa4 1
  37. pause 1000
  38. endif
  39. endwhile
  40. endfor
  41. /////////////////////////////////
  42. /////////////////////////////////
  43. /////////////////////////////////
  44. /////////////////////////////////
  45. //Use the bod to determine if filled or can be turned in
  46. if not @findtype 0x2258 1102 'backpack'
  47. @useobject 'SwapBODSBook'
  48. waitforgump 0x6abce12 2000
  49. replygump 0x6abce12 1
  50. waitforgump 0xb2f21f1a 1500
  51. replygump 0xb2f21f1a 100
  52. pause 1000
  53. replay
  54. else
  55. @setalias 'BOD' 'found'
  56. @moveitem 'found' 'Smith2Swap'
  57. pause 400
  58. waitforcontext 'ToolBox' 2 15000
  59. waitforgump 0x6abce12 1000
  60. replygump 0x6abce12 0
  61. pause 1000
  62. if @injournal 'You have not completed the order'
  63. waitforcontext 'NewBodsBook' 2 15000
  64. endif
  65. endif
  66. ////////////////////////////////
  67. // checks and gold
  68. while @findtype 0xeed 0x0 'backpack'
  69. @usetype 0xeed 0x0 'backpack'
  70. endwhile
  71. if @findtype 0x14f0 52 'backpack'
  72. useobject 0x42c79fe3
  73. waitforgump 0x9021dd59 1500
  74. replygump 0x9021dd59 5 2
  75. waitfortarget 1500
  76. targettype! 0x14f0 52 500
  77. pause 100
  78. canceltarget
  79. replygump 0x9021dd59 0 2
  80. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement