Advertisement
intangibles

Untitled

Aug 28th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.79 KB | None | 0 0
  1. ## Sell DR Shards
  2. ## v.01 by Kalros
  3.  
  4. containers_list = ['longcloak', 'cloak', 'bag', 'rucksack', 'harness', 'case', 'pack']
  5. containers_list = script.vars[0].to_s if script.vars[0]
  6. containers_list = containers_list.split(",") if script.vars[0]
  7.  
  8.  
  9. for container in containers_list
  10.   dothistimeout "look in #{container}", 1, /In|I could/
  11. end
  12.  
  13.  
  14. for container in containers_list
  15.    for shards in ['chunk', 'fragment', 'shard', 'sliver', 'strip', 'sphere', 'stone']
  16.     if GameObj.npcs.find {|i| i.noun == 'archaeologist'}
  17.       items = GameObj["#{container}"].contents.find_all {|i| i.noun =~ /\b#{shards}\b/}
  18.       items.each {|i|
  19.         put "get ##{i.id}"
  20.         put "give ##{i.id} to arch"
  21.         dothistimeout "give ##{i.id} to arch", 1, /^You exchange/
  22.       }
  23.     end
  24.   end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement