My script now looks like this:
local teleportID = 1387
local config = {
['bishop neden'] = {destPos = {x=966, y=992, z=7}, teleportPos = {x=1007, y=993, z=8}, timeToExpire = 120, effect = CONST_ME_TELEPORT},
['bishop arthur'] = {destPos = {x=979, y=921, z=6}, teleportPos = {x=975, y=924, z=7}...