Advertisement
Guest User

Untitled

a guest
Feb 25th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. --Script--
  2. Venom = {
  3.  
  4. ["curare"] = true,
  5. ["xentio"] = true,
  6. ["vardrax"] = true,
  7. ["euphorbia"] = true,
  8. ["voyria"] = true,
  9. ["eurypteria"] = true,
  10. ["darkshade"] = true,
  11. ["vernalius"] = true,
  12. ["kalmia"] = true,
  13. ["digitalis"] = true,
  14. ["delphinium"] = true,
  15. ["aconite"] = true,
  16. ["larkspur"] = true,
  17. ["monkshood"] = true,
  18. ["selarnia"] = true,
  19. ["prefarar"] = true,
  20. ["slike"] = true,
  21.  
  22. }
  23.  
  24. --Trigger, set to regex--
  25. ^You rub some (\w+) on a vorpal sword\.$
  26.  
  27. for i,mat in ipairs(matches) do
  28.     if Venom[matches[i]] then
  29.         selectCaptureGroup(i)
  30.         fg("red")
  31.         bg("black")
  32.         resetFormat()
  33.     end
  34. end
  35.  
  36. Note: If you didn't want to use a table, and only highlight the one wordyou can do this. For targeting and things like, Enemies list or Cities you'll want to use tables.
  37.  
  38. ^You rub some (\w+) on a vorpal sword\.$
  39.  
  40. selectCaptureGroup(2)
  41. fg("red")
  42. bg("black")
  43. resetFormat()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement