Dei uma revisada tinha alguns códigos juntos etc.. arrumei e adaptei para o meu nto caso alguém se interessar esta ai
local config = {life = MESSAGE_STATUS_CONSOLE_RED,mana = MESSAGE_STATUS_CONSOLE_BLUE,vipstatus = MESSAGE_STATUS_CONSOLE_ORANGE}; function onLogin(cid)doPlayerSendTextMessage(cid, (config.life), "Sua Vida: " .. getCreatureHealth(cid) .. "/".. getCreatureMaxHealth(cid) .." Vida.") doPlayerSendTextMessage(cid, (config.mana), "Seu Chakra: " .. getCreatureMaxMana(cid) .. "/" .. getCreatureMaxMana(cid) .." Chakra.") if getPlayerPremiumDays(cid) > 0 then doPlayerSendTextMessage(cid, (config.vipstatus), "Voce ainda tem: " .. getPlayerPremiumDays(cid) .. " Dias Premium.") else doPlayerSendTextMessage(cid, (config.vipstatus), "Voce nao e premium.") end return true end



info
Grupo: Artesão
Registrado: 08/01/06
Posts: 118
Reputação: +14
Char no Tibia: Bahanot
Bom, uma amigo pedi o para mim fazer esse script porque o serve dele tem xp muito alta e depois de muitos leveis o hp e mana volta e nao da pra saber exato quanto de mana e life tem então resolvi isso para ele com esse script.
*E bem simples mais não tinha aqui no forum.
Oque faz ?: Assim que loga ele pucha os dados de mana e life do player e mostra para ele.
creatures add esse código em uma arquivo lua, info.lua
Toda vez que ele logar vai da a info do life e mana.
* Uma Print de como ficou.*

local config = {life = MESSAGE_STATUS_CONSOLE_BLUE,mana = MESSAGE_STATUS_CONSOLE_RED,vipstatus = MESSAGE_STATUS_CONSOLE_RED};function onLogin(cid)doPlayerSendTextMessage(cid, (config.life), "Your health is: " .. getCreatureHealth(cid) .. "/".. getCreatureMaxHealth(cid) .." hp.")doPlayerSendTextMessage(cid, (config.mana), "Your mana is: " .. getCreatureMaxMana(cid) .. "/" .. getCreatureMaxMana(cid) .." mana.")if getPlayerPremiumDays(cid) > 0 thendoPlayerSendTextMessage(cid, (config.vipstatus), "You are premium and you have: " .. getPlayerPremiumDays(cid) .. " days left.")elsedoPlayerSendTextMessage(cid, (config.vipstatus), "You are no premium.")endreturn trueendlembrar de registrar o evento:
no login.lua
registerCreatureEvent(cid, "info") -- NEWWWagora vai em creaturescripts.xml
e add essa tag:
Se ajudei + rep.
bjs =*