lokolokio
Well-Known Member
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)
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!
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)
Thanks, I hope to be clear about the info needed. Kind Regards!