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:
BeniS
2012-08-21 00:28:19 +12:00
parent f4cc942c85
commit 1d20cc9e4b
8 changed files with 85 additions and 35 deletions

View File

@@ -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