This script worked just great in TFS 0.4 but it seems to struggle a lot in TFS 1.3.
I get the message "MEDIUM" but nothing creates, sometimes it creates but doesnt remove, sometimes it works properly. Feels like Its unsure in which order to run the script or jumps in the code or something weird?
I get the message "MEDIUM" but nothing creates, sometimes it creates but doesnt remove, sometimes it works properly. Feels like Its unsure in which order to run the script or jumps in the code or something weird?
Lua:
local pos = {x=1043,y=930,z=7}
local id = 5910
local id2 = 12544
function onThink()
addEvent(function() doSendAnimatedText("MEDIUM", pos, 192)end, 1 * 1000)
addEvent(doCreateItem, 1 * 1000, id, 1, pos)
addEvent(function() doRemoveItem(getTileItemById(pos, id).uid) end, 2 * 1000)
addEvent(function() doSendAnimatedText("MEDIUM", pos, 192)end, 3 * 1000)
addEvent(doCreateItem, 3 * 1000, id2, 1, pos)
addEvent(function() doRemoveItem(getTileItemById(pos, id2).uid) end, 4 * 1000)
return true
end