mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user