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

Lua Help with script onLook!! Rep

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
i want to add special description onLook function

i tried this

PHP:
doPlayerSetSpecialDescription(thing.uid, "blabla")

but it doesnt work :S
 
Is it for a quest or what? What description do you want?

Lua:
local v = thing.uid
if isPlayer(v) then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see " .. getCreatureName(v) .. ". (Level " .. getPlayerLevel(v) .. "). " .. (getPlayerSex(v) == 0 and "She" or "He") .. " is a " .. getPlayerVocation(v))
end
 
This function will only work with new items...
Code:
doRemoveItem(item.uid)
local new = doCreateItem(item.itemid, 1, pos)
doPlayerSetSpecialDescription(new, ""..getPlayerName(cid).." passed here.")
Every time you LOOK at the sign, it will receive a text: <PLAYER> passed here.
 
Back
Top