You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
494 B

function init()
g_keyboard.bindKeyDown('Ctrl+R', toggleMount, gameRootPanel)
end
function terminate()
g_keyboard.unbindKeyDown('Ctrl+R', gameRootPanel)
end
function toggleMount()
local player = g_game.getLocalPlayer()
if player then
player:toggleMount()
end
end
function mount()
local player = g_game.getLocalPlayer()
if player then
player:mount()
end
end
function dismount()
local player = g_game.getLocalPlayer()
if player then
player:dismount()
end
end