• 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 0.X 0.3.6 - doTransformItem on tile makes item non-moveable.

waqmaz

Member
Joined
Jun 17, 2015
Messages
203
Reaction score
11
I use script
Lua:
doTransformItem(getTileItemById())
to tansfor a moveable corpse of rat with id 2813 to moveable corpse of rat with id 2814. After that the corpse with id 2814 is non-moveable in game. I tried to set its aid with function
C++:
    const ItemType& it = Item::items.getItemType(item->getID());
    if(it.decayTo)
    {
        Item* newItem = transformItem(item, it.decayTo);
        startDecay(newItem);
    }
but it is still non-moveable. Otmapeditor shows that both corpses are moveable. Only if I add the corpse with map editor normally on a map, in the game it is moveable.
Which lines in source do I have to delete, to make it moveable? I think decay system is a little bit bugged in 0.3.6.

Here is proof, that doTransformItem function works with decay:
 
Last edited:
Back
Top