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

set new name , ot 8.5

Coca Cola

New Member
Joined
Apr 10, 2010
Messages
164
Reaction score
0
as ots 8.5 don't have setitemattribute , how can make a tlkact like that
ex :
/name New Lance Event Item
and the item in front of me gets this name?

ty,cya
 
Lua:
function onSay(cid, words, param, channel)
doItemSetAttribute(getCreatureLookPos(cid).uid, "name", param)
doSendMagicEffect(getCreatureLookPos(cid).uid, CONST_ME_MAGIC_GREEN)
return 0
end
on takactions.xml
Lua:
<talkaction words="name" event="script" value="Script.lua"/>

hemm. Change the version of your server, recommended ;)
 
Last edited:
Back
Top