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

TFS 1.X+ SetText tfs 1.5

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
928
Solutions
7
Reaction score
127
Location
Brazil
YouTube
caruniawikibr
Does anyone know why this error occurs in tfs? I've tried several settext formats but haven't found a solution.

when my item needs to be reborn with the text, it just doesn't remake the document on top with the text inside.

Lua:
local function recreateParchment(position)
    local item = Tile(position):getItemById(1953)
    if item then
        item:setActionId(60999)
    else
        local parchment = Game.createItem(1953, 1, position)
        if parchment then
            parchment:setText('Buried forever that he never shall return. Don\'t remove this seal or bad things may happen.')
            parchment:setActionId(60999)
        end
    end
end


Screenshot_1.png
 
Not sure why it happens but you can just replace
Lua:
parchment:setText('Buried forever that he never shall return. Don\'t remove this seal or bad things may happen.')
with
Lua:
parchment:setAttribute("text", "Buried forever that he never shall return. Don\'t remove this seal or bad things may happen.")
 
What code is written in the 17th line of your script?
Also, is the parchment at least created, even withtout a text?
 
Not sure why it happens but you can just replace
Lua:
parchment:setText('Buried forever that he never shall return. Don\'t remove this seal or bad things may happen.')
with
Lua:
parchment:setAttribute("text", "Buried forever that he never shall return. Don\'t remove this seal or bad things may happen.")
Ty adam <3 work 100%
 
Back
Top