Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. =begin
  2. author: Karl
  3.  
  4. game: GemstoneIV
  5. tags: Cleric utility
  6. Name: Jchrism
  7. version: 1.1 1/31/19
  8.  
  9. ** NOTES: All orb quality gems must be in backpack with no other gems to run. Any gem that is not an ORB WILL BE DROPPED on the ground **** Default finished container is
  10.  
  11. =end
  12.  
  13.  
  14. unless container = GameObj.inv.find { |obj| obj.noun.downcase == Vars.orbsack.downcase }
  15. unless container = GameObj.inv.find { |obj| obj.name =~ /#{Vars.orbsack.join(' ')}$/ }
  16. unless container = GameObj.inv.find { |obj| obj.name =~ /#{Vars.orbsack.join('.*?')}/ }
  17. echo "error: can't find container \"#{Vars.orbsack.join(' ')}\""
  18. exit
  19. end
  20. end
  21. end
  22.  
  23. if container.contents.nil?
  24. open_result = dothistimeout "open ##{container.id}", 5, /^You open|^That is already open\.$/
  25. unless open_result =~ /^You open/
  26. dothistimeout "look in ##{container.id}", 5, /In .*? you see/
  27. if container.contents.nil?
  28. echo "error: failed to find contents of container \"#{container.name}\""
  29. exit
  30. end
  31. end
  32. end
  33.  
  34. gem_list = container.contents.find_all { |obj| obj.type =~ /gem/ }
  35.  
  36. if gem_list.empty?
  37. echo "error: no orb gems found in container \"#{container.name}\""
  38. exit
  39. end
  40.  
  41. empty_hands
  42. for gem in gem_list
  43. if (mana < 100)
  44. echo "waiting for mana..."
  45. wait_until { mana >= 100 }
  46. end
  47. waitrt?
  48. waitcastrt?
  49. dothistimeout "get ##{gem.id}", 5, /^You remove/
  50. fput "prep 325"
  51. result = dothistimeout "cast my #{gem.noun.capitalize}", 5, /spiritual bond|shudders in your hand but does little else/
  52. waitcastrt?
  53. if result =~ /shudders in your hand but does little else/
  54. fput "drop right"
  55. end
  56. if result =~ /spiritual bond/
  57. check = dothistimeout "bless deity common 4",3, /cobalt liquid|and blows away in the form of a fine powder/
  58. if check =~ /cobalt liquid/
  59. fput "get alligator"
  60. fput "put #{checkright} in my alligator"
  61. waitfor "You carefully place the"
  62. fput "turn alligator"
  63. sleep 30
  64. waitrt?
  65. fput "get #{gem.noun.downcase} from my alligator"
  66. waitfor "from in your"
  67.  
  68. # This is the finished container for Completed gems)
  69. fput "put #{checkright} in my sack"
  70.  
  71. waitfor "You put a"
  72. fput "put #{checkleft} in my bandolier"
  73. waitfor "You toss"
  74. else
  75. fput "drop right"
  76. end
  77. end
  78. end
  79.  
  80.  
  81. fill_hands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement