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

doSetItemSpecialDescription() error.

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Hey,

I got some problems with this function, could anyone help me?

LUA:
doSetItemSpecialDescription(getTileItemById(toPosition,r.corpse).uid,' [Tanned]')

There's no further script needed.

The thing that it should do it add a special description to an item on the floor with the itemid 'r.corpse', which is defined in a local.

But when I execute the script on the item it gives me this error:

Code:
[20/09/2010 23:36:41] [Error - Action Interface] 
[20/09/2010 23:36:41] data/actions/scripts/tools/butcherknife.lua:onUse
[20/09/2010 23:36:41] Description: 
[20/09/2010 23:36:41] data/actions/scripts/tools/butcherknife.lua:61: attempt to call global 'doSetItemSpecialDescription' (a nil value)
[20/09/2010 23:36:41] stack traceback:
[20/09/2010 23:36:41]     data/actions/scripts/tools/butcherknife.lua:61: in function <data/actions/scripts/tools/butcherknife.lua:22>

Thanks in advance,
unknown666
 
it dont work with special description i donno why i have been trying in the past too but no luck , so just use descripion.
LUA:
doItemSetAttribute(item.uid,"description","description work isnt a great diference than special description.") 
getItemSpecialDescription(item.uid)  ---- return string "description work isnt a great diference than special description."
 
LUA:
doItemSetAttribute(getTileItemById(toPosition,r.corpse).uid, "description", '[Butched]')

This doesn't work, I don't need item.uid or itemEx.uid since that targets the item using or the tile the item lies on.
 
Back
Top