local t = { [2091] = Position(171, 561, 13), [2092] = Position(312, 474, 13), [2093] = Position(286, 363, 13), [2094] = Position(410, 411, 13), [2095] = Position(291, 682, 13) } function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if not isPlayer(cid) then return true end if t[item.uid] then if getCreatureStorage(cid, item.uid) == EMPTY_STORAGE then doTeleportThing(cid, Position(182, 442, 14)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You can\'t enter this magic forcefield until you defeat the boss.') else doTeleportThing(cid, t[item.uid]) end end return true end