function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .." He has a maximum "..getCreatureMaxHealth(thing.uid).." health and "..getCreatureMaxMana(thing.uid).." mana")
end
return true
end
registerCreatureEvent(cid, "Look")
<event type="look" name="Look" event="script" value="look.lua"/>
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) and not getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and '.\nShe' or '.\nHe') ..' has a maximum '..getCreatureMaxHealth(thing.uid)..' health and '..getCreatureMaxMana(thing.uid)..' mana')
end
return true
end
Ehms, both are craps.