I saw this script by this guy: http://otland.net/f81/max-mana-hp-171712/#post1668876, so i thougt about upgrade it bit better script , I recommend only use this one high exp servers!
Simpely what this script do, its show your currently and max health & mana. It updates how many seconds you configure it.
Tested on tfs 0.3.6
Tfs: 0.3.6 & 0.2
Goto creaturescripts/creaturescripts.xml and add this line:
Goto creaturescripts/scripts and create new lua and name it "updatemh.lua" and paste this script below:
Simpely what this script do, its show your currently and max health & mana. It updates how many seconds you configure it.
Tested on tfs 0.3.6
Tfs: 0.3.6 & 0.2
Goto creaturescripts/creaturescripts.xml and add this line:
Lua:
<event type="login" name="UpdateMH" event="script" value="updatemh.lua"/>
Goto creaturescripts/scripts and create new lua and name it "updatemh.lua" and paste this script below:
Lua:
--///True = 0.3///-- & --///False = 0.2///--
local tfs_version = true
local otswe_updatetime = 3 -- Seconds
function updateMH(cid)
if isPlayer(cid) then
update = addEvent(updateMH, otswe_updatetime*1000, cid)
end
if tfs_version == true then
doPlayerSendCancel(cid, "Your Currently Health Is: "..getCreatureHealth(cid).."/"..getCreatureMaxHealth(cid).." And Your Currently Mana Is: "..getCreatureMana(cid).."/"..getCreatureMaxMana(cid)..".")
else
doPlayerSendCancel(cid, "Your Currently Health Is: "..getPlayerHealth(cid).."/"..getPlayerMaxHealth(cid).." And Your Currently Mana Is: "..getPlayerMana(cid).."/"..getPlayerMaxMana(cid)..".")
end
return true
end
function onLogin(cid)
if isPlayer(cid) then
update = addEvent(updateMH, 1*1, cid)
return true
end
end
function onLogout(cid)
if isPlayer(cid) then
stopEvent(update)
return true
end
end
Last edited: