• 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+ Decay method is not doing anything

overdriven

Active Member
Joined
Mar 10, 2020
Messages
70
Solutions
1
Reaction score
42
Lua:
local hole = Game.createItem(4773, 1, toPosition)

hole:decay()
hole:setAttribute(ITEM_ATTRIBUTE_DECAYTO, 0)
hole:setAttribute(ITEM_ATTRIBUTE_DURATION, 6)
hole:setAttribute(ITEM_ATTRIBUTE_DECAYSTATE, true)

According to this code the created tile 4773 should decay in 6 seconds (disappear as decayto=0).

But nothing happens. When I look at this tile as GM it doesn't have decayto attribute.

Why this code is not doing anything? I saw it used to work for others.

I don't want to set decay attributes for item 4773 in items.xml, because it will affect all items of this type. I want only local hole to decay.

I'm using TFS 1.5 with Nekiro's 7.72 downgrade.
 
Back
Top