Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fwitem=["pendant", "medallion", "cufflinks", "pin"]
- $boxitems ||= ["box", "strongbox", "chest", "coffer", "trunk"]
- $gemnouns ||= ["aetherstone", "roestone", "smoldereye", "saewehna", "mekret", "wraithaline", "agate", "amber", "ambergris", "amethyst", "azurite", "beryl", "blazestar", "bloodjewel", "bloodstone", "bluerock", "caederine", "carbuncle", "chalcedony", "coral", "cordierite", "deathstone", "despanal", "diamond", "diopside", "doomstone", "dreamstone", "^egg$", "emerald", "eostone", "faenor", "faenor\-bloom", "^fang$", "feystone", "firestone", "galena", "garnet", "^gem$", "geode", "glimaerstone", "heliodor", "hyacinth", "jacinth", "jade", "jasper", "lapis", "lazuli", "moonstone", "obsidian", "onyx", "opal", "pearl", "peridot", "pyrite", "quartz", "rhimar", "riftshard", "riftstone", "rosepar", "ruby", "sapphire", "spherine", "spinel", "starstone", "^stone$", "sunstone", "thunderstone", "topaz", "tourmaline", "turquoise", "wyrdshard", "zircon"]
- $gemnames ||= ["shimmertine shard","tigerfang crystal", "petrified tiger tooth", "quartz crystal", "platinum fang", "gold dust","platinum dust", "glaes dust", "gold fang", "rock crystal"]
- $scrolls ||= ["palimpsest", "paper", "papyrus", "parchment","scroll","vellum"]
- $wands ||= ["rod","wand"]
- $wandnames ||= ["aquamarine wand", "bloodwood wand", "blue wand", "bone wand", "coral wand", "crystal wand", "glass wand", "golden wand", "iron wand", "metal wand", "oaken wand", "ruby amulet","silver wand", "thanot wand", "twisted wand"]
- $magicnouns ||= ["granules", "cube","orb","triangle","filings", "ambergris"]
- $magicnames ||= ["scintillating fishscale", "block of salt", "drake","feras","black crystal","white crystal", "blue crystal", "dull gold coin","crystal amulet"]
- $alchnouns ||= ["seed", "earth", "hair", "water", "core", "globe", "essence", "^fire$", "humor"]
- $alchnames ||= ["ayanad crystal$", "troll tooth","essence dust", "essence shard"]
- $boxes ||= ["box", "chest", "coffer", "strongbox", "trunk"]
- $boxitems=["box", "strongbox", "chest", "coffer", "trunk"]
- class wand_dropper
- def wand_drop
- $contents.each { |wand|
- fput "get #{wand} from #{$container}"
- fput "drop #{wand}"
- }
- end
- def scan_wand
- result = dothistimeout "look in my #{Vars.lootsack}", 5, /In the .*? you see|There is nothing in there/
- if result !~ /There is nothing in there/
- $contents = result.scan(/\b(?:#{$wands.join('|')})(?= and an? |,|\.)/)
- if $contents.empty? == false
- echo "Lootsack: #{$contents}"
- $container = "my #{Vars.lootsack}"
- wand_drop
- end
- end
- end
- scan_wand
- end
- class box_dropper
- def box_drop
- $contents.each { |box|
- fput "get #{box} from #{$container}"
- fput "drop #{box}"
- }
- end
- def scan_box
- result = dothistimeout "look in my #{Vars.lootsack}", 5, /In the .*? you see|There is nothing in there/
- if result !~ /There is nothing in there/
- $contents = result.scan(/\b(?:#{$boxitems.join('|')})(?= and an? |,|\.)/)
- if $contents.empty? == false
- echo "Lootsack: #{$contents}"
- $container = "my #{Vars.lootsack}"
- box_drop
- end
- end
- end
- scan_box
- end
- if Char.name =~ /Skymare|Teclys|Higher|Calvert|Salasin|Aethor|Abraham/
- fput "turn #{GameObj.inv.find{|i| $fwitem.include? i.noun}}"
- start_script "go2", ["16153"]
- wait_while{running?("go2")}
- check = dothistimeout "look", 3, /Aethor's Home/
- if check =~ /Aethor's Home/
- fput "stow right"
- sleep 3
- disk = dothistimeout "turn disk" ,3, /You flip|What were you/
- if disk !~ /You flip/
- exit
- end
- box_dropper
- wand_dropper
- resultx = dothistimeout "go door",3, /You walk through/
- if resultx !~ /You walk through/
- exit
- end
- fput "turn #{GameObj.inv.find{|i| $fwitem.include? i.noun}}"
- elsif check !~ /Aethor's Home/
- exit
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement