• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

self look

newlegend

Fear Me
Joined
Oct 18, 2009
Messages
146
Reaction score
0
Location
Australia
Hey otland i am here to ask people on otland if it's possible that they can make something that when a person looks at him self not only does it say the vocation but the level to please if thats possible?. :)
 
Code:
function onLook(cid, thing, position, lookDistance)  
	if not isPlayer(thing.uid) then
		return true
	end
	return doPlayerSendTextMessage(cid, 25, "You see " .. getCreatureName(thing.uid) .. ", " .. ((getPlayerSex(thing.uid) == 1) and "he" or "she") .. " is a " .. getPlayerVocationName(thing.uid) .. " and " .. ((getPlayerSex(thing.uid) == 1) and "he" or "she") .." is level " .. getPlayerLevel(thing.uid) .. ".")
end

I think it has to be thing.uid
 
Back
Top