diff --git a/data/plugins/bank/bank.rb b/data/plugins/bank/bank.rb index 1b5520c7..bf951e0f 100644 --- a/data/plugins/bank/bank.rb +++ b/data/plugins/bank/bank.rb @@ -14,8 +14,8 @@ class BankAction < DistancedAction end def executeAction - character.turn_to @position - BankUtils.open_bank character + mob.turn_to @position + BankUtils.open_bank mob stop end diff --git a/data/plugins/cmd-item/item.rb b/data/plugins/cmd-item/item.rb index 76dc8498..3c53cf19 100644 --- a/data/plugins/cmd-item/item.rb +++ b/data/plugins/cmd-item/item.rb @@ -41,4 +41,11 @@ end # Clears the player's own inventory. on :command, :empty, RIGHTS_MOD do |player, command| player.inventory.clear +end + +# Gives the player one thousand of each rune. +on :command, :runes, RIGHTS_ADMIN do |player, command| + (554..566).each do |i| + player.inventory.add(i, 1000) + end end \ No newline at end of file diff --git a/data/plugins/skill-herblore/potion.rb b/data/plugins/skill-herblore/potion.rb index 114ff1ee..ac368b32 100644 --- a/data/plugins/skill-herblore/potion.rb +++ b/data/plugins/skill-herblore/potion.rb @@ -273,7 +273,7 @@ class FinishedMixingAction < MixingAction name = @potion.item.definition.name.sub('(3)', '') player.send_message("You add the #{ingredient} to the mixture to make an #{name}.", true) - player.skill_set.add_experience(HERBLORE_ID, @potion.experience) + player.skill_set.add_experience(HERBLORE_SKILL_ID, @potion.experience) inventory = player.inventory diff --git a/data/plugins/skill-magic/teleport.rb b/data/plugins/skill-magic/teleport.rb index 323a91d0..db6af1d4 100644 --- a/data/plugins/skill-magic/teleport.rb +++ b/data/plugins/skill-magic/teleport.rb @@ -35,7 +35,7 @@ class TeleportingAction < SpellAction end def execute_action - @spell.ancient ? execute_modern : execute_ancient + @spell.ancient ? execute_ancient : execute_modern end def execute_modern @@ -58,7 +58,7 @@ class TeleportingAction < SpellAction mob.play_graphic(ANCIENT_TELE_GRAPHIC) mob.play_animation(ANCIENT_TELE_ANIM) delay = 2 - elsif @pulses == 1 + elsif @pulses == 2 mob.stop_graphic mob.stop_animation mob.teleport(@spell.destination) diff --git a/data/plugins/skill-prayer/bury.rb b/data/plugins/skill-prayer/bury.rb index 6f85d466..7109c6b1 100644 --- a/data/plugins/skill-prayer/bury.rb +++ b/data/plugins/skill-prayer/bury.rb @@ -23,7 +23,7 @@ end class BuryBoneAction < Action def initialize(mob, slot, bone) - super(2, false, mob) + super(1, false, mob) @slot = slot @bone = bone @@ -56,9 +56,8 @@ end # Appends a bone to the array def append_bone(hash) raise 'Hash must contain an id and an experience value.' unless hash.has_key?(:id) && hash.has_key?(:experience) - id = hash[:id], experience = hash[:experience] - - BONES[id] = Bone.new(id, experience) + id = hash[:id] + BONES[id] = Bone.new(id, hash[:experience]) end append_bone :name => :regular_bones, :id => 526, :experience => 5