Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. if ak.refreshAffs then return end --DELETE THIS SHIT OUT OF YOUR PERSONAL VARS
  2. ak = ak or {}
  3.  
  4. function ak.refreshAffs()
  5. if GUI and GUI.ak then
  6. GUI.ak()
  7. else
  8. ak.refreshAffsOLD()
  9. end
  10.  
  11. end
  12.  
  13. function ak.refreshAffsOLD() --This is my standard display included
  14. WindowWidth = 0;
  15. WindowHeight = 0;
  16. WindowWidth, WindowHeight = getMainWindowSize()
  17. moveWindow("aff_display", WindowWidth-190,WindowHeight-900)
  18. resizeWindow("aff_display", 175,890)
  19. clearWindow("aff_display")
  20. if ak.defs.rebounding then
  21. cecho("aff_display","\nRebounding: <red>YES!\n")
  22. else
  23. cecho("aff_display","\nRebounding: <yellow>NONE!\n")
  24. end
  25. if ak.defs.shield then
  26. cecho("aff_display","\nShielding: <red>YES!\n")
  27. else
  28. cecho("aff_display","\nShielding: <yellow>NONE!\n")
  29. end
  30. if ak.defs.curseward then
  31. cecho("aff_display","\nWarding: <red>YES!\n")
  32. else
  33. cecho("aff_display","\nWarding: <yellow>NONE!\n")
  34. end
  35. if swiftcount then
  36. if swiftcount == 1 then
  37. cecho("aff_display","\nSwifting: <red>FALLING!\n\n")
  38. else
  39. cecho("aff_display","\nSwifting: <yellow>"..swiftcount.."!\n\n")
  40. end
  41. end
  42. if vodun and vodun[target] and vodun[target]["fashions"] ~= nil then
  43. cecho("aff_display","0Fashions:<orange_red>"..vodun[target]["fashions"].."\n\n")
  44. end
  45. if ak.stack then echo("aff_display","Stacking:"..ak.stack.."\n") else echo("aff_display","\nStacking: NONE!\n\n") end
  46. targetrelay()
  47. echo("aff_display","\n0Afflictions: \n\n")
  48. for k,v in pairs(affstrack.score) do
  49. if v > 1 then
  50. echo("aff_display", k.." "..v.."\n")
  51. end
  52. end
  53. if affstrack.kelpscore > .1 then echo("aff_display","\nKelp: "..affstrack.kelpscore.."|4\n") end
  54. if affstrack.ginsengscore > .1 then echo("aff_display","Ginseng: "..affstrack.ginsengscore.."|5\n") end
  55. if affstrack.goldenscore > .1 then echo("aff_display","Goldenseal: "..affstrack.goldenscore.."|5\n") end
  56. if affstrack.mentalscore > .1 then echo("aff_display","Mentals: "..affstrack.mentalscore.."|4\n") end
  57. if softscore then if softscore >= 3 then cecho("aff_display", "Locks:\n SOFT LOCKED!") end end
  58. if truescore then if truescore >= 5 then cecho("aff_display", "TRUE LOCKED!") end end
  59. ak.limbshow()
  60. end
  61.  
  62. function ak.noDisplay()
  63. WindowWidth = 0;
  64. WindowHeight = 0;
  65. WindowWidth, WindowHeight = getMainWindowSize()
  66. moveWindow("aff_display", 0,0)
  67. resizeWindow("aff_display", 0,0)
  68. clearWindow("aff_display")
  69. end
  70.  
  71.  
  72. function init()
  73. winX, winY = getMainWindowSize()
  74. createMiniConsole("aff_display", winX-588,0,130,400)
  75. setBackgroundColor("aff_display", 150, 150, 150, 255)
  76. setMiniConsoleFontSize( "aff_display", 10 )
  77. setFgColor("aff_display", 10, 0, 0)
  78. setBgColor("aff_display", 150, 150, 150)
  79. --ak.refreshAffs()
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement