mirror of
https://github.com/edubart/otclient.git
synced 2025-05-01 10:09:21 +02:00

* Added mount options to the thing menu. * Reworked the mounting/dismounting. * Fixed up some skill module bugs. * Added alerts to stats like health, mana, capacity, and regeneration time (need to revise this one as it currently has no maximum).
29 lines
494 B
Lua
29 lines
494 B
Lua
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
|