jbrocky

Untitled

Mar 10th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.65 KB | None | 0 0
  1. custom_require.call(%w(common))
  2.  
  3. # variable 1 is the pouch location, variable 2 is the trader!
  4.  
  5. if variable[1].eql? 'help'
  6.   echo "Variable 1 is the container the pouches are in, and variable 2 is the person to sell them."
  7.   exit
  8. end
  9.  
  10. loop do
  11.   case DRC.bput("get suede pouch in my #{variable[1]}", 'You get', 'What were')
  12.   when 'You get'
  13.     fput("give my suede pouch to #{variable[2]}")
  14.     waitfor ('offers you')
  15.     pause 2.5
  16.     fput("accept tip")
  17.     case DRC.bput("accept", 'You accept', 'You have no offers')
  18.     when "You accept"
  19.       fput "put my pouch in bucket"
  20.     end
  21.   when 'What were'
  22.     fput('accept tip')
  23.     exit
  24.   end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment