Advertisement
hhaos

Untitled

Jun 17th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. ^Your enhanced senses inform you that (\w+) has entered (.+?)(?:, to the| at your) (\w+)\.$
  2.  
  3. local match = string.match(line, pattern)
  4.  
  5.  
  6. local nameToCheck = matches[2]
  7.  
  8. -- Function to check if the name exists in the targetTable
  9. local function containsName(table, name)
  10. for key, _ in pairs(table) do
  11. if key == name then
  12. return true
  13. end
  14. end
  15. return false
  16. end
  17.  
  18. -- Checking if the name exists in the targetTable
  19. if containsName(arc.targetTable, nameToCheck) then
  20. cecho("\npretend I'm shadow vortex")
  21. cecho("\npretend I'm shadow vortex")
  22. cecho("\npretend I'm shadow vortex")
  23. else
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement