• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua lever script statue with text

MadMOOK

Hoo
Joined
Apr 20, 2011
Messages
802
Reaction score
44
I have a lever script that removes a statue with text "Flame room of skeletor".

The lever removes statue and respawns it on 3 min timer but the txt is not there. What line do i add? 0.3.7

Code:
Function ontimer()
DocreateItem(1455,1,{x=1924,y=2795,z=11}) then
DoSetItemSpecialDescription(cid,"flame room of slimebeast")
End

This is what i have n it says unexpected aymbol by then
 
Last edited:
Your problem is that in function doSetItemSpecialDescription you are taking "cid" as the target.
Code:
function onTimer()
    doCreateItem(1455, 1, {x = 1924, y = 2795, z = 11})
    local ourStatue = getTileItemById({x = 1924, y = 2795, z = 11}, 1455) -- here we get item that was created above
    if ourStatue.itemid == 1455 then
        doSetItemSpecialDescription(ourStatue.uid, "flame room of slimebeast")
    end
end

Best
Sebastian
 
Ohh, ty..
It works but it says "nothing is written on it" and beneath it, it says flame room of slimebeast lol
 
Last edited:
Back
Top