mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 11:17:19 +00:00
Fix minor issues in mining and running.
This commit is contained in:
1 parent
551c32207d
commit
a5829774d7
2 files changed
+8
-8
No files matched your search
@@ -2,16 +2,16 @@ WALK_BUTTON_ID = 152
|
||||
RUN_BUTTON_ID = 153
|
||||
|
||||
on :button, WALK_BUTTON_ID do |player|
|
||||
player.set_running(false)
|
||||
player.running = false
|
||||
end
|
||||
|
||||
on :button, RUN_BUTTON_ID do |player|
|
||||
player.set_running(true)
|
||||
player.running = true
|
||||
end
|
||||
|
||||
on :command, :run do |player, command|
|
||||
running = player.is_running
|
||||
player.set_running(!running)
|
||||
|
||||
player.send_message(running ? "You are now running." : "You are no longer running.")
|
||||
running = player.is_running
|
||||
player.running = !running
|
||||
|
||||
player.send_message(running ? "You are now running." : "You are no longer running.")
|
||||
end
|
||||
Reference in new issue
Block a user