Guest User

Untitled

a guest
Jan 22nd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. pattern: ^(\w+) has (entered|left) the area\.$ (make sure the dropbox thing to the right says "perl regex")
  2.  
  3. script:
  4.  
  5. if matches[3] == "entered" then
  6.  
  7. send("pt " ..matches[2].. "IN!")
  8.  
  9. elseif matches[3] == "left" then
  10.  
  11. send("pt " ..matches[2].. "OUT!")
  12.  
  13. end
Add Comment
Please, Sign In to add comment