Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- author: Karl
- game: GemstoneIV
- tags: Cleric utility
- Name: Jchrism
- version: 1.1 1/31/19
- ** 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
- =end
- unless container = GameObj.inv.find { |obj| obj.noun.downcase == Vars.orbsack.downcase }
- unless container = GameObj.inv.find { |obj| obj.name =~ /#{Vars.orbsack.join(' ')}$/ }
- unless container = GameObj.inv.find { |obj| obj.name =~ /#{Vars.orbsack.join('.*?')}/ }
- echo "error: can't find container \"#{Vars.orbsack.join(' ')}\""
- exit
- end
- end
- end
- if container.contents.nil?
- open_result = dothistimeout "open ##{container.id}", 5, /^You open|^That is already open\.$/
- unless open_result =~ /^You open/
- dothistimeout "look in ##{container.id}", 5, /In .*? you see/
- if container.contents.nil?
- echo "error: failed to find contents of container \"#{container.name}\""
- exit
- end
- end
- end
- gem_list = container.contents.find_all { |obj| obj.type =~ /gem/ }
- if gem_list.empty?
- echo "error: no orb gems found in container \"#{container.name}\""
- exit
- end
- empty_hands
- for gem in gem_list
- if (mana < 100)
- echo "waiting for mana..."
- wait_until { mana >= 100 }
- end
- waitrt?
- waitcastrt?
- dothistimeout "get ##{gem.id}", 5, /^You remove/
- fput "prep 325"
- result = dothistimeout "cast my #{gem.noun.capitalize}", 5, /spiritual bond|shudders in your hand but does little else/
- waitcastrt?
- if result =~ /shudders in your hand but does little else/
- fput "drop right"
- end
- if result =~ /spiritual bond/
- check = dothistimeout "bless deity common 4",3, /cobalt liquid|and blows away in the form of a fine powder/
- if check =~ /cobalt liquid/
- fput "get alligator"
- fput "put #{checkright} in my alligator"
- waitfor "You carefully place the"
- fput "turn alligator"
- sleep 30
- waitrt?
- fput "get #{gem.noun.downcase} from my alligator"
- waitfor "from in your"
- # This is the finished container for Completed gems)
- fput "put #{checkright} in my sack"
- waitfor "You put a"
- fput "put #{checkleft} in my bandolier"
- waitfor "You toss"
- else
- fput "drop right"
- end
- end
- end
- fill_hands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement