From e7bb3e5a199c24c5a23788aa448f734b22d9b228 Mon Sep 17 00:00:00 2001 From: Dane Date: Mon, 7 Apr 2014 12:15:57 -0400 Subject: [PATCH 1/5] Add ::runes command. --- data/plugins/cmd-item/item.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 From ac2c6b47045b0894054c834a2f4004522689b9d4 Mon Sep 17 00:00:00 2001 From: Dane Date: Mon, 7 Apr 2014 12:59:41 -0400 Subject: [PATCH 2/5] Fix herblore potion using invalid skill id. --- data/plugins/skill-herblore/potion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d3ffb10ff09bf5c2ac9865f8cd99acd01d40532d Mon Sep 17 00:00:00 2001 From: Dane Date: Mon, 7 Apr 2014 13:18:26 -0400 Subject: [PATCH 3/5] Fix ancients teleport logic and teleport delay. Teleporting at the first pulse with ancients feels too quick. It doesn't. give the player enough time to get to the second part of their. Animation. --- data/plugins/skill-magic/teleport.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From d8e447196abd954437c6fd159303a56c51615ab0 Mon Sep 17 00:00:00 2001 From: Dane Date: Mon, 7 Apr 2014 13:44:06 -0400 Subject: [PATCH 4/5] Fix bank using invalid variable. In executeAction the variable 'character' was being used instead of. 'mob'. Just a simple overlook anybody could've made. --- data/plugins/bank/bank.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 9da5b69b250226ebc73de9f184b553c11c52f2ac Mon Sep 17 00:00:00 2001 From: Dane Date: Mon, 7 Apr 2014 14:43:52 -0400 Subject: [PATCH 5/5] Fix bones id and BuryBoneAction delay. The indices for bones were being set to "hash[:id], hash[:experience]". instead of "hash[:id]" due to a syntax overlook. --- data/plugins/skill-prayer/bury.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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