Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. -- SYSTEM TABLE
  2. sys = {
  3.  
  4. myVersion = "beta-v012",
  5. currentVersion = "beta-v012",
  6. updateAvailable = false,
  7.  
  8. profile = "basic", --default profile
  9. menuClass = "blah",
  10. race = "whatever",
  11.  
  12. conservemana = false,
  13. dform = false,
  14. hmprio = "h",
  15. paused = false,
  16. softpaused = false,
  17. opponents = {jester = false, shaman = false, sylvan = false},
  18. meditating = false,
  19.  
  20. waittime = .70,
  21. dwaittime = .70,
  22. aeonwaittime = 1.6,
  23. herbbaltime = 2.2,
  24. minherbbaltime = 1.3,
  25. mendingbaltime = 1.5,
  26. caloricbaltime = 1.8,
  27. epidermalbaltime = 1.5,
  28. massbaltime = 1.5,
  29. treebaltime = 10.2,
  30. restorationbaltime = 4.5,
  31. kaitrancewaittime = 6,
  32.  
  33. icewall = "ring302481",
  34. firewall = "ring60901",
  35. firelash = "ring117175",
  36. bashing = false,
  37. vmode = false,
  38. heartseedmode = false,
  39. sentinel = false,
  40.  
  41. manathreshold = function ()
  42. return math.ceil(stats.maxm * settings.manaPercent/100)
  43. end, -- func
  44.  
  45. bleedtype = "health",
  46.  
  47. lastlimbhit = "left leg",
  48. parrystrategy = "manual",
  49. parriedlimb = false,
  50. toparry = toparry or nil,
  51.  
  52. }
  53.  
  54. --table of default prompt tags
  55. sys.prompttags = {
  56. ["health"] = function() return stats.h end,
  57. ["percenthealth"] = function() return math.floor(stats.h / stats.maxh * 100) end,
  58. ["mana"] = function() return stats.m end,
  59. ["percentmana"] = function() return math.floor(stats.m / stats.maxm * 100) end,
  60. ["endurance"] = function() return stats.e end,
  61. ["percentendurance"] = function() return math.floor(stats.e / stats.maxe * 100) end,
  62. ["willpower"] = function() return stats.w end,
  63. ["precentwillpower"] = function() return math.floor(stats.w / stats.maxw * 100) end,
  64. ["bal"] = function() if bals.b then return "X" else return "" end end,
  65. ["eq"] = function() if bals.e then return "E" else return "" end end,
  66. ["target"] = function() return target end,
  67. ["paused"] = function() if sys.paused then return "(PP)" else return "" end end,
  68. ["softpaused"] = function() if sys.softpaused then return "(sP)" else return "" end end,
  69. ["phase"] = function() if def.phased or def.blackwind or def.astralform then return "@" else return "" end end,
  70. ["retardation"] = function() if sys.retard then return "[RET]" else return "" end end,
  71. ["kai"] = function() if def.kaitrance then return stats.kai else return "" end end,
  72. ["shin"] = function() if def.shintrance then return stats.shin else return "" end end,
  73. ["warning"] = function() return prefixWarning end,
  74. ["mw"] = function() if def.metawake then return "MW" else return "" end end,
  75. ["breathing"] = function() if def.breathing then return "br" else return "" end end,
  76. ["xp"] = function() return gmcp.Char.Vitals.nl end,
  77. ["affs"] = function() return affTags() end,
  78. ["timestamp"] = function() return getTimestamp(getLineCount()) end,
  79. ["diffhealth"] = function()
  80. if stats.h < stats.oh then
  81. return("<red> (-"..stats.oh - stats.h .. "h, " .. string.format("%.1f", ((stats.oh - stats.h) / stats.maxh) * 100) .. "%)")
  82. elseif stats.h > stats.oh then
  83. return("<green> (+"..stats.h - stats.oh .. "h, " .. string.format("%.1f", ((stats.h - stats.oh) / stats.maxh) * 100) .. "%)")
  84. else
  85. return ""
  86. end -- if
  87. end, --func
  88. ["diffmana"] = function()
  89. if stats.m < stats.om then
  90. return("<slate_blue> (-"..stats.om - stats.m .. "m, " .. string.format("%.1f", ((stats.om - stats.m) / stats.maxm) * 100) .. "%)")
  91. elseif stats.m > stats.om then
  92. return("<purple> (+".. stats.m - stats.om .. "m, " .. string.format("%.1f", ((stats.m - stats.om) / stats.maxm) * 100) .. "%)")
  93. else
  94. return ""
  95. end -- if
  96. end, --func
  97. ["def"] = function()
  98. local defstring = ""
  99. if def.blindness then
  100. defstring = defstring .. "<SeaGreen>B "
  101. end
  102. if def.deafness then
  103. defstring = defstring .. "<SeaGreen>D "
  104. end
  105. if def.cloak then
  106. defstring = defstring .. "<deep_sky_blue>C "
  107. end
  108. if def.kola then
  109. defstring = defstring .. "<yellow>K "
  110. end
  111. if def.density then
  112. defstring = defstring .. "<maroon>M "
  113. end -- if
  114. if def.heldbreath then
  115. defstring = defstring .. "<light_grey>br"
  116. end --if
  117. return defstring
  118. end, --func
  119. ["invdef"] = function()
  120. local invdefstring = ""
  121. if not def.blindness then
  122. invdefstring = invdefstring .. "<SeaGreen>B "
  123. end
  124. if not def.deafness then
  125. invdefstring = invdefstring .. "<SeaGreen>D "
  126. end
  127. if not def.cloak then
  128. invdefstring = invdefstring .. "<deep_sky_blue>C "
  129. end
  130. if not def.kola then
  131. invdefstring = invdefstring .. "<yellow>K "
  132. end
  133. if not def.density then
  134. invdefstring = invdefstring .. "<maroon>M "
  135. end -- if
  136. if def.heldbreath then
  137. invdefstring = invdefstring .. "<light_grey>br"
  138. end --if
  139. return invdefstring
  140. end, --func
  141. }
  142.  
  143. --table of default prompt tag colors
  144. sys.prompttagcolors = {
  145. ["hcolour"] = function()
  146. if stats.h >= (stats.maxh * 0.75) then
  147. return "sea_green"
  148. elseif stats.h >= (stats.maxh * 0.33) then
  149. return "yellow"
  150. else
  151. return "red"
  152. end --if
  153. end, --fn
  154. ["mcolour"] = function()
  155. if stats.m >= (stats.maxm * .75) then
  156. return "sea_green"
  157. elseif stats.m >= (stats.maxm * .50) then
  158. return "yellow"
  159. else
  160. return "red"
  161. end -- if
  162. end, --fn
  163. ["kaicolour"] = function()
  164. if stats.kai < 10 then
  165. --can't even choke
  166. return "red"
  167. elseif stats.kai < 21 then
  168. --can't heal
  169. return "firebrick"
  170. elseif stats.kai < 41 then
  171. --can't cripple
  172. return "dark_orange"
  173. elseif stats.kai < 61 then
  174. --can't enfeeble
  175. return "yellow"
  176. elseif stats.kai >= 61 then
  177. --can do anything
  178. return "dark_green"
  179. end
  180. end, --function
  181. ["shincolour"] = function()
  182. if stats.shin < 4 then
  183. --can't even infuse
  184. return "red"
  185. elseif stats.shin < 14 then
  186. --can't fist
  187. return "firebrick"
  188. elseif stats.shin < 29 then
  189. --can't blizzard
  190. return "dark_orange"
  191. elseif stats.shin < 39 then
  192. --can't annihilate
  193. return "yellow"
  194. else
  195. --can do anything
  196. return "dark_green"
  197. end
  198. end, --function
  199.  
  200. }
  201.  
  202. --self limb damage table
  203. sys.selflimbdamage = {
  204. ["head"] = {damage = 0,},
  205. ["torso"] = {damage = 0,},
  206. ["left arm"] = {damage = 0,},
  207. ["right arm"] = {damage = 0,},
  208. ["left leg"] = {damage = 0,},
  209. ["right leg"] = {damage = 0,},
  210. }
  211.  
  212. sys.classtimers = sys.classtimers or {}
  213.  
  214. queuestable = {
  215.  
  216. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement