Yuji
Helper
Can some one help me make a !hp command and a !mana comm and or combine them both, just needs to show max hp/mana for the char, I have a high exp server but when i try to make one it crashes lmfao!
<talkaction words="!hp" case-sensitive="no" event="script" value="hpmana.lua"/>
<talkaction words="!mana" case-sensitive="no" event="script" value="hpmana.lua"/>
local otswe = {
health = math.random(500, 1000),
health_text = "Aaah HP",
--////////////////////////--
mana = math.random(500,1000),
mana_text = "Aaaah Mana"
}
function onSay(cid, words, param)
if words == "!hp" then
doPlayerAddHealth(cid, otswe.health)
doCreatureSay(cid,otswe.health_text,TALKTYPE_MONSTER)
end
if words == "!mana" then
doPlayerAddMana(cid, otswe.mana)
doCreatureSay(cid,otswe.mana_text,TALKTYPE_MONSTER)
end
return true
end