• 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 item:setAttribute, need info.

lokolokio

Well-Known Member
Joined
Jan 7, 2009
Messages
201
Solutions
13
Reaction score
78
Location
Mexico
Hello dear OTlanders, I have a question to make, I want to put a item text, but I need to put a writer, and I don not know how to put writer, for ex. Like player I write a label, and on the label write the data:text, writer and writtendate, and I dont know how to put them. I working in this actions (functions)
Lua:
local book = player:addItem(1950)
local text = "This is the first tome of knowledge, bla bla bla"
book:setAttribute(writer, 'Telesforo') -- (this is my request I dont know how to put it or how it works, its and example of the info that I need)
book:setAttribute(8, text)
With this code I want to give a player a book if the player open a bookcase, that was written by 'Telesforo' and the text are "This is the first tome of knowledge, bla bla bla".

Thanks, I hope to be clear about the info needed. Kind Regards!
 
Back
Top