Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1.  
  2. research_skills = []
  3. if variable[1].nil?
  4. research_skills = get_settings.research_loop
  5. else
  6. research_skills << variable[1]
  7. end
  8.  
  9.  
  10. def researchPart(skill,duration)
  11. case DRC.bput("research #{skill} #{duration}","You are already busy at research!","You cannot begin a new project until your current one is either completed or cancelled", "You tentatively reach out and begin manipulating the mana streams, testing their give and the amount of energy coursing through them.","You confidently begin to bend the mana streams",/only requires (\d+) more seconds of research/)
  12. when "You are already busy at research!", "You cannot begin a new project until your current one is either completed or cancelled"
  13. echo "Already researching something! Finish it manually, then restart"
  14. exit
  15. when "You tentatively reach out and begin manipulating the mana streams, testing their give and the amount of energy coursing through them.","You confidently begin to bend the mana streams"
  16. pause duration + 5
  17. researchPart(skill,duration)
  18. when /only requires (\d+) more seconds of research/
  19. echo Regexp.last_match(1).to_i
  20. pause Regexp.last_match(1).to_i
  21. exit
  22. end
  23.  
  24. end
  25.  
  26. def research(research_skills)
  27. while true
  28. research_skills.each do | skill |
  29. DRC.wait_for_script_to_complete('buff',['research'])
  30. researchPart(skill,300)
  31. end
  32. end
  33. end
  34.  
  35.  
  36. research(research_skills)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement