local monsters = { ["demon"] { from = Position(4639, 4973, 4), to = Position(4647, 4991, 4), msg = "Test Msg 1", msgPos = Position(4638, 4968, 4) }, ["rotworm"] { from = Position(4639, 4973, 4), to = Position(4647, 4991, 4), msg = "Test Msg 2", msgPos = Position(4638, 4968, 4) }, } function onKill(creature, target) -- Make sure the target is a monster and not a summon. if not target:isMonster() or target:getMaster() then return true end -- Make sure the target is a monster in your table. local monster = monsters[target:getName():lower()] if not monster then return true end