rafcio15scie
New Member
How to add to this script: I need to delete ID 1285, 10 seconds after entering the "step in?
tfs.1.2
tfs.1.2
Post automatically merged:
Lua:
local trees = {
Position(32826, 32273, 11)
}
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
player:teleportTo(Position(32827, 32272, 12))
for i = 1, #trees do
if not Tile(trees):getItemById(1285) then
Game.createItem(1285, 1, trees)
trees:sendMagicEffect(CONST_ME_YELLOW_RINGS)
end
end
return true
end