mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
@@ -14,8 +14,8 @@ class BankAction < DistancedAction
|
|||||||
end
|
end
|
||||||
|
|
||||||
def executeAction
|
def executeAction
|
||||||
character.turn_to @position
|
mob.turn_to @position
|
||||||
BankUtils.open_bank character
|
BankUtils.open_bank mob
|
||||||
stop
|
stop
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -41,4 +41,11 @@ end
|
|||||||
# Clears the player's own inventory.
|
# Clears the player's own inventory.
|
||||||
on :command, :empty, RIGHTS_MOD do |player, command|
|
on :command, :empty, RIGHTS_MOD do |player, command|
|
||||||
player.inventory.clear
|
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
|
end
|
||||||
@@ -273,7 +273,7 @@ class FinishedMixingAction < MixingAction
|
|||||||
name = @potion.item.definition.name.sub('(3)', '')
|
name = @potion.item.definition.name.sub('(3)', '')
|
||||||
|
|
||||||
player.send_message("You add the #{ingredient} to the mixture to make an #{name}.", true)
|
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
|
inventory = player.inventory
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class TeleportingAction < SpellAction
|
|||||||
end
|
end
|
||||||
|
|
||||||
def execute_action
|
def execute_action
|
||||||
@spell.ancient ? execute_modern : execute_ancient
|
@spell.ancient ? execute_ancient : execute_modern
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute_modern
|
def execute_modern
|
||||||
@@ -58,7 +58,7 @@ class TeleportingAction < SpellAction
|
|||||||
mob.play_graphic(ANCIENT_TELE_GRAPHIC)
|
mob.play_graphic(ANCIENT_TELE_GRAPHIC)
|
||||||
mob.play_animation(ANCIENT_TELE_ANIM)
|
mob.play_animation(ANCIENT_TELE_ANIM)
|
||||||
delay = 2
|
delay = 2
|
||||||
elsif @pulses == 1
|
elsif @pulses == 2
|
||||||
mob.stop_graphic
|
mob.stop_graphic
|
||||||
mob.stop_animation
|
mob.stop_animation
|
||||||
mob.teleport(@spell.destination)
|
mob.teleport(@spell.destination)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ end
|
|||||||
class BuryBoneAction < Action
|
class BuryBoneAction < Action
|
||||||
|
|
||||||
def initialize(mob, slot, bone)
|
def initialize(mob, slot, bone)
|
||||||
super(2, false, mob)
|
super(1, false, mob)
|
||||||
@slot = slot
|
@slot = slot
|
||||||
@bone = bone
|
@bone = bone
|
||||||
|
|
||||||
@@ -56,9 +56,8 @@ end
|
|||||||
# Appends a bone to the array
|
# Appends a bone to the array
|
||||||
def append_bone(hash)
|
def append_bone(hash)
|
||||||
raise 'Hash must contain an id and an experience value.' unless hash.has_key?(:id) && hash.has_key?(:experience)
|
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]
|
id = hash[:id]
|
||||||
|
BONES[id] = Bone.new(id, hash[:experience])
|
||||||
BONES[id] = Bone.new(id, experience)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
append_bone :name => :regular_bones, :id => 526, :experience => 5
|
append_bone :name => :regular_bones, :id => 526, :experience => 5
|
||||||
|
|||||||
Reference in New Issue
Block a user