function onLook(cid, thing, position, lookDistance)
if isPlayer then
local str = "You see a "..getplayerlevel.."].\n"
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
What revision do you use? Does it have a documentation folder contain all Lua functions/general scripting documentation? [unless it doesn't support Lua scripting..]
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
doPlayerSetSpecialDescription(thing.uid, "Level: "..getPlayerLevel(thing.uid))
end
return true
end
my friend had the same problem... i just gave him my "Init file" (located in globalevents) and it works.
Creaturescript (onlook..)
Code:function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "Level: "..getPlayerLevel(thing.uid)) end return true end
<event type="look" name="levellook" event="script" value="levellook.lua"/>
registerCreatureEvent(cid, "levellook")