dervin13
Active Member
- Joined
- Apr 26, 2008
- Messages
- 458
- Solutions
- 1
- Reaction score
- 28
Is it possible to add to this command to see your skill plus your attributes items? How can I do it? thanks
Code:
function onSay(player, words, param)
local level = player:getLevel()
local vocation = player:getVocation():getName()
local health, maxhealth = player:getHealth(), player:getMaxHealth()
local mana, maxmana = player:getMana(), player:getMaxMana()
local fist, club, sword, axe = player:getSkillLevel(SKILL_FIST), player:getSkillLevel(SKILL_SWORD), player:getSkillLevel(SKILL_CLUB), player:getSkillLevel(SKILL_AXE)
local distance, shield, fishing, magic = player:getSkillLevel(SKILL_DISTANCE), player:getSkillLevel(SKILL_SHIELDING), player:getSkillLevel(SKILL_FISHING), player:getMagicLevel(cid)
local cap = player:getFreeCapacity()/100
local text = "Vocation: "..vocation.."\nLevel: ".. level .."\nHP: ".. health .."/".. maxhealth .."\nMP: ".. mana .."/".. maxmana .."\nCapacity: ".. cap .."\n\nMagic Level: ".. magic .."\n\nFist: ".. fist .."\nClub: ".. club .."\nSword: ".. sword .."\nAxe: ".. axe .."\nDistance: ".. distance .."\nShield: ".. shield .."\nFishing: ".. fishing ..""
player:showTextDialog(5808, text)
return true
end