mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Finalized the mount system and the recently new skills/stats.
* 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).
This commit is contained in:
@@ -7,13 +7,22 @@ function terminate()
|
||||
end
|
||||
|
||||
function toggleMount()
|
||||
if g_game.getFeature(GamePlayerMounts) then
|
||||
g_game.mount(not g_game.isMounted())
|
||||
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()
|
||||
if g_game.getFeature(GamePlayerMounts) then
|
||||
g_game.mount(false)
|
||||
local player = g_game.getLocalPlayer()
|
||||
if player then
|
||||
player:dismount()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user