Advertisement
Guest User

Untitled

a guest
Feb 21st, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ksys.hooks.functions.sipper =
  2. function()
  3. local to_heal = ksys.stats.max_health * (ksys.settings.sipping.health / 100)
  4. local to_mana = ksys.stats.max_mana * (ksys.settings.sipping.mana / 100)
  5.  
  6. --This works for moss as well
  7. local to_kidney_hp = ksys.stats.max_health * (ksys.settings.sipping.kidney_health / 100)
  8. local to_kidney_mana = ksys.stats.max_mana * (ksys.settings.sipping.kidney_mana / 100)
  9.  
  10. if not canSip() then return false end
  11.  
  12. if (ksys.afflictions.blackout or ksys.afflictions.recklessness) and ksys.balances.heal and not ksys.limiters.heal then
  13. if ksys.systems.bashing then
  14. if ksys.living then
  15. send("sip health")
  16. else
  17. send("stick analeptic")
  18. end
  19. activateLimiter("heal")
  20. else
  21. if ksys.settings.sipping.priority == "health" then
  22. if ksys.living then
  23. send("sip health")
  24. else
  25. send("stick analeptic")
  26. end
  27. activateLimiter("heal")
  28. else
  29. if ksys.living then
  30. send("sip mana")
  31. else
  32. send("stick stimulant")
  33. end
  34. activateLimiter("heal")
  35. end
  36. end
  37. end
  38.  
  39. if ksys.stats.health <= to_heal then
  40. if ksys.stats.mana <= to_mana then
  41. if ksys.balances.heal and not ksys.limiters.heal then
  42. if ksys.settings.sipping.priority == "health" then
  43. if ksys.living then
  44. send("sip health")
  45. else
  46. send("stick analeptic")
  47. end
  48. activateLimiter("heal")
  49. else
  50. if ksys.living then
  51. send("sip mana")
  52. else
  53. send("stick stimulant")
  54. end
  55. activateLimiter("heal")
  56. end
  57. end
  58. else
  59. if ksys.balances.heal and not ksys.limiters.heal then
  60. if ksys.living then
  61. send("sip health")
  62. else
  63. send("stick analeptic")
  64. end
  65. activateLimiter("heal")
  66. end
  67. end
  68. else
  69. if ksys.stats.mana <= to_mana and ksys.balances.heal and not ksys.limiters.heal then
  70. if ksys.living then
  71. send("sip mana")
  72. else
  73. send("stick stimulant")
  74. end
  75. activateLimiter("heal")
  76. end
  77. end
  78.  
  79. if (( ksys.stats.mana <= to_kidney_mana )
  80. or ( ksys.stats.health <= to_kidney_hp ))
  81. then
  82. if ksys.living
  83. and ksys.balances.moss
  84. and not ksys.limiters.moss
  85. then
  86. send("outc moss")
  87. send("eat moss")
  88. activateLimiter("moss")
  89. elseif not ksys.living
  90. and ksys.balances.kidney
  91. and not ksys.limiters.kidney
  92. then
  93. send("outc kidney slice;eat kidney")
  94. activateLimiter("kidney")
  95. end
  96. end
  97. if (ksys.class == "monk") and not ksys.limiters.transmute and (ksys.stats.mana > ksys.stats.max_mana * .5) and (ksys.stats.health < ksys.stats.max_health * .4) and ksys.skills.transmute and ksys.balances.bal then
  98. send("transmute mana 1000") ---this section will send health. Tweak if need be
  99. activateLimiter("transmute")
  100. end
  101. if (ksys.class == "Praenomen" or ksys.class == "Bloodborn") and (ksys.stats.health < ksys.stats.max_health * .5) and ksys.balances.mend and ksys.skills.mend and not ksys.limiters.mend and ksys.balances.bal then
  102. send("mend")
  103. activateLimiter("mend")
  104. end
  105. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement