mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
Mounts
Show creature mounts Fix outfit window Fix some 9.6 protocol issues
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
function init()
|
||||
if g_game.getFeature(GamePlayerMount) then
|
||||
g_keyboard.bindKeyDown('Ctrl+R', toggleMount, gameRootPanel)
|
||||
end
|
||||
g_keyboard.bindKeyDown('Ctrl+R', toggleMount, gameRootPanel)
|
||||
end
|
||||
|
||||
function terminate()
|
||||
if g_game.getFeature(GamePlayerMount) then
|
||||
g_keyboard.unbindKeyDown('Ctrl+R', gameRootPanel)
|
||||
end
|
||||
g_keyboard.unbindKeyDown('Ctrl+R', gameRootPanel)
|
||||
end
|
||||
|
||||
function toggleMount()
|
||||
g_game.mount(not g_game.isMounted())
|
||||
if g_game.getFeature(GamePlayerMounts) then
|
||||
g_game.mount(not g_game.isMounted())
|
||||
end
|
||||
end
|
||||
|
||||
function dismount()
|
||||
g_game.mount(false)
|
||||
if g_game.getFeature(GamePlayerMounts) then
|
||||
g_game.mount(false)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user