Skip to content

Commit

Permalink
Update BlackArts.lic
Browse files Browse the repository at this point in the history
  • Loading branch information
Deysh committed Feb 2, 2024
1 parent 8537dbd commit ad21a85
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions scripts/BlackArts.lic
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
contributors: Deysh, Tysong, Gob
game: Gemstone
tags: alchemy
version: 1.1.1
version: 1.1.0
Improvements:
Major_change.feature_addition.bugfix
v1.1.1 (2024-02-02)
- bugfix: script was looping when user mastered a skill
=end
=begin
v1.1.0 (2024-01-16)
- added help section
- added ;blackarts finish to stop script after current task is complete (use when script is running)
- bugfix for checking troll's blood
- bugfix for gird command if brawler
- bugfix for cauldron check if only buying elusive reagents
- bugfix for meditation regex
- bugfix: script was looping when user mastered a skill or reached max guild ranks
=end
=begin
v1.0.0 (2023-06-19)
- Initial creation
=end
Expand Down Expand Up @@ -6849,8 +6849,9 @@ module BlackArts
task['guild'][:checkin] = amount.to_i
elsif line =~ /have (.*?) task trading vouchers/i
task['guild'][:vouchers] = $1.to_i
elsif line =~ /You currently have (.*?) rank/
elsif line =~ /You currently have (.*?) ranks? out of a possible (.*?) for your training/
task['guild'][:total_ranks] = $1.to_i
task['guild'][:max_ranks] = $2.to_i
end
}
BlackArts.data.ranks = task["alchemy"][:rank].to_i
Expand Down Expand Up @@ -6936,6 +6937,15 @@ module BlackArts
def self.get_work(item)
Util.travel(BlackArts.data.current_admin)

guild_status = Guild.gld

if guild_status['guild'][:max_ranks] == guild_status['guild'][:total_ranks]
respond
Util.msg("yellow", " Your total ranks equal your max guild ranks. You need to level up more to continue. Exiting...")
respond
exit
end

lines = Util.get_command("ask ##{GameObj.npcs.find { |npc| npc.name =~ /training/i }.id} to train #{item}", /You ask|Who are you trying to ask/i)

# Exit if Run one task and quit
Expand Down

0 comments on commit ad21a85

Please sign in to comment.