mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 00:38:11 +00:00
Change interface management (see commit notes).
This commit is contained in:
@@ -2,16 +2,9 @@ WALK_BUTTON_ID = 152
|
||||
RUN_BUTTON_ID = 153
|
||||
|
||||
on :button, WALK_BUTTON_ID do |player|
|
||||
player.running = false
|
||||
player.toggle_running
|
||||
end
|
||||
|
||||
on :button, RUN_BUTTON_ID do |player|
|
||||
player.running = true
|
||||
end
|
||||
|
||||
on :command, :run do |player, command|
|
||||
running = player.is_running
|
||||
player.running = !running
|
||||
|
||||
player.send_message(running ? "You are now running." : "You are no longer running.")
|
||||
player.toggle_running
|
||||
end
|
||||
Reference in New Issue
Block a user