Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. RESET ALIAS
  2.  
  3. function targetaffreset()
  4. targetafftable = {
  5. paralysis = false,
  6. asthma = false,
  7. clumsy = false,
  8. mighthaveclumsy = false,
  9. weariness = false,
  10. mighthaveweariness = false,
  11. asthma = false,
  12. slickness = false,
  13. anorexia = false,
  14. nofocus = false,
  15. impale = false,
  16. reboundingdown = false,
  17. hellsight = false,
  18. engaged = false,
  19. imaptience = false,
  20. nausea = false,
  21. haemophilia = false,
  22. undeaf = false,
  23. prone = false,
  24. unknown = false
  25. }
  26.  
  27.  
  28. sysecho("green", " --- RESET ALL AFFLICTIONS --- ")
  29. promptafftable = {}
  30. coagulating = false
  31. end
  32.  
  33.  
  34. FUNCTION TO ADD AN AFFLICTION
  35.  
  36. function targetaffadd(affliction)
  37. if not targetafftable.affliction then
  38. if affliction == "impale" then
  39. send("fury", false)
  40. end
  41. if affliction == "clumsy" then
  42. targetafftable[mighthaveclumsy] = false
  43. end
  44. if affliction == "weariness" then
  45. targetafftable[mighthaveweariness] = false
  46. end
  47. lastafflictiongiven = affliction
  48. targetafftable[affliction] = true
  49. sysecho("green", " --- got aff " .. affliction .. " ---")
  50. end
  51. end
  52.  
  53.  
  54. EXAMPLE OF USAGE
  55.  
  56. targetafftable("nausea")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement