• 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!

Problem with description

jazonas

New Member
Joined
Apr 30, 2011
Messages
9
Reaction score
0
Hello.
Is it possible to change description when i look on yourself? Im working on tf 0.3.6. I know how to change other players descriptions but I can't handle with my description. Greetings.
 
vocations.xml example in red
Code:
<vocation id="1" [COLOR="#FF0000"]name="Sorcerer" description="a sorcerer"[/COLOR] needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.1" attackspeed="1500" soulmax="100" gainsoulticks="120" fromvoc="1">

For special descriptions you can use the onLook function in a creaturescript with doPlayerSetSpecialDescription.




e.g.
Untested, I have never worked with this before!
Code:
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
doPlayerSetSpecialDescription(thing.uid, "A student of Marencian.")
end
return true
end
 
LUA:
doPlayerSetNameDescription(cid, desc)
Or
LUA:
doPlayerSetSpecialDescription(cid, desc)
 
Back
Top