Advertisement
Whiteaxe

adrop

Jan 1st, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1.  
  2. $fwitem=["pendant", "medallion", "cufflinks", "pin"]
  3. $boxitems ||= ["box", "strongbox", "chest", "coffer", "trunk"]
  4. $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"]
  5. $gemnames ||= ["shimmertine shard","tigerfang crystal", "petrified tiger tooth", "quartz crystal", "platinum fang", "gold dust","platinum dust", "glaes dust", "gold fang", "rock crystal"]
  6. $scrolls ||= ["palimpsest", "paper", "papyrus", "parchment","scroll","vellum"]
  7. $wands ||= ["rod","wand"]
  8. $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"]
  9. $magicnouns ||= ["granules", "cube","orb","triangle","filings", "ambergris"]
  10. $magicnames ||= ["scintillating fishscale", "block of salt", "drake","feras","black crystal","white crystal", "blue crystal", "dull gold coin","crystal amulet"]
  11. $alchnouns ||= ["seed", "earth", "hair", "water", "core", "globe", "essence", "^fire$", "humor"]
  12. $alchnames ||= ["ayanad crystal$", "troll tooth","essence dust", "essence shard"]
  13. $boxes ||= ["box", "chest", "coffer", "strongbox", "trunk"]
  14.  
  15. $boxitems=["box", "strongbox", "chest", "coffer", "trunk"]
  16. class wand_dropper
  17. def wand_drop
  18. $contents.each { |wand|
  19. fput "get #{wand} from #{$container}"
  20. fput "drop #{wand}"
  21. }
  22. end
  23. def scan_wand
  24. result = dothistimeout "look in my #{Vars.lootsack}", 5, /In the .*? you see|There is nothing in there/
  25. if result !~ /There is nothing in there/
  26. $contents = result.scan(/\b(?:#{$wands.join('|')})(?= and an? |,|\.)/)
  27. if $contents.empty? == false
  28. echo "Lootsack: #{$contents}"
  29. $container = "my #{Vars.lootsack}"
  30. wand_drop
  31. end
  32. end
  33. end
  34. scan_wand
  35. end
  36.  
  37. class box_dropper
  38. def box_drop
  39. $contents.each { |box|
  40. fput "get #{box} from #{$container}"
  41. fput "drop #{box}"
  42. }
  43. end
  44. def scan_box
  45. result = dothistimeout "look in my #{Vars.lootsack}", 5, /In the .*? you see|There is nothing in there/
  46. if result !~ /There is nothing in there/
  47. $contents = result.scan(/\b(?:#{$boxitems.join('|')})(?= and an? |,|\.)/)
  48. if $contents.empty? == false
  49. echo "Lootsack: #{$contents}"
  50. $container = "my #{Vars.lootsack}"
  51. box_drop
  52. end
  53. end
  54. end
  55. scan_box
  56. end
  57.  
  58.  
  59.  
  60. if Char.name =~ /Skymare|Teclys|Higher|Calvert|Salasin|Aethor|Abraham/
  61. fput "turn #{GameObj.inv.find{|i| $fwitem.include? i.noun}}"
  62. start_script "go2", ["16153"]
  63. wait_while{running?("go2")}
  64. check = dothistimeout "look", 3, /Aethor's Home/
  65. if check =~ /Aethor's Home/
  66. fput "stow right"
  67. sleep 3
  68. disk = dothistimeout "turn disk" ,3, /You flip|What were you/
  69. if disk !~ /You flip/
  70. exit
  71. end
  72. box_dropper
  73. wand_dropper
  74. resultx = dothistimeout "go door",3, /You walk through/
  75. if resultx !~ /You walk through/
  76. exit
  77. end
  78. fput "turn #{GameObj.inv.find{|i| $fwitem.include? i.noun}}"
  79. elsif check !~ /Aethor's Home/
  80. exit
  81. end
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement