• 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 TFS 1.0, GetItenAttribute Error

eduardbean

Member
Joined
Nov 26, 2010
Messages
129
Solutions
2
Reaction score
16
I wanted to return the attribute set by me, with the getAttribute function however it does not work and only returns "nil"

Code:
[/CENTER]
function onUse(cid, item, itemEx, fromPosition, toPosition)
    Item(item.uid):setAttribute("Test", "123465")

    print( Item(item.uid):getAttribute("Test"))
end

how can I use it to return what I need?​
 
Last edited:
Really ?, Fuu..

How i can returns corpseType now ?:

Code:
        <attribute key="corpseType" value="normal" />
 
Last edited:
Back
Top