DevilMoon
New Member
- Joined
- Feb 15, 2010
- Messages
- 4
- Reaction score
- 0
Data>Talkactions>Scripts
stats.lua
Data>Talkactions.xml
Byee...
stats.lua
Code:
--- { By DevilMoon } ---
function onSay(cid, words, param)
function getResets(cid)
resets = getPlayerStorageValue(cid,36874)
if resets < 0 then
resets = 0
end
return resets
end
doPlayerPopupFYI(cid, "Informaçao do " .. getPlayerName(cid) .."" ..
"\nStatus:" ..
"\nLevel - " .. getPlayerLevel(cid) ..
"\nGuild: " .. getPlayerGuildName(cid) ..
"\nReset - " .. getResets(cid) ..
"\nVocation: .. getPlayerVocation(cid) ..
"\nMl: " .. getPlayerMagLevel(cid) ..
"\nHealth - " .. getCreatureHealth(cid) .. " / " .. getCreatureMaxHealth(cid) .. ", Mana - " .. getCreatureMana(cid) .. " / " .. getCreatureMaxMana(cid) ..
"\nIP: " .. doConvertIntegerToIp(getPlayerIp(cid)) .. "")
return TRUE
end
Data>Talkactions.xml
Code:
<talkaction words="!stats" event="script" value="stats.lua"/>
Byee...