Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- skill = variable[1]
- def researchPart(skill,duration)
- 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/)
- when "You are already busy at research!", "You cannot begin a new project until your current one is either completed or cancelled"
- echo "Already researching something! Finish it manually, then restart"
- exit
- 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"
- pause duration + 5
- researchPart(skill,duration)
- when /only requires (\d+) more seconds of research/
- echo Regexp.last_match(1).to_i
- pause Regexp.last_match(1).to_i
- exit
- end
- end
- def research(skill)
- DRC.wait_for_script_to_complete('buff',['research'])
- researchPart(skill,300)
- end
- research(skill)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement