Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions alchemy.lic
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,13 @@ do_administrator = proc {
next if (type =~ /potions|trinkets/) and (info[:rank] == gld.call['alchemy'][:rank])
if info[:task] == 'no task'
result = dothistimeout "ask #{GameObj.npcs.last.noun} about training #{type}", 10, /^#{GameObj.npcs.last.noun} .*?, "/
invalid_gld.call
invalid_gld.call
if result =~ /Come back in about ([0-9]+) minutes if you want another task/
pauseTime = $1.to_i + 0.5
pauseTimeS = pauseTime*60
respond "Waiting #{pauseTime} minutes to request next task."
sleep pauseTimeS
end
unless result =~ /your general alchemy skills are not quite up to snuff/
did_something = true
end
Expand Down Expand Up @@ -788,7 +794,13 @@ do_administrator = proc {
did_something = true
elsif info[:task] == "gather alchemy ingredients for the guild's supply"
invalid_gld.call
dothistimeout "ask #{GameObj.npcs.last.noun} about trade #{type}", 10, /^#{GameObj.npcs.last.noun} .*?, "/
result = dothistimeout "ask #{GameObj.npcs.last.noun} about trade #{type}", 10, /^#{GameObj.npcs.last.noun} .*?, "/
if result =~ /You will need to wait ([0-9]+) minutes before trading in another task/
pauseTime = $1.to_i + 0.5
pauseTimeS = pauseTime*60
respond "Waiting #{pauseTime} minutes to request next task."
sleep pauseTimeS
end
did_something = true
end
end
Expand Down