Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 KB | None | 0 0
  1. --demonnic.chat.config.lines = 45
  2.  
  3. --[[
  4. Number of characters to wrap the chatlines at.
  5. This will also determine how wide the chat windows are.
  6. ]]
  7.  
  8. --demonnic.chat.config.width = 80
  9. clearWindow(string.format("win%s", "Combat"))
  10. ccm.affCount=0
  11. ccm.mentalaffcount=0
  12.  
  13.  
  14. for k, v in pairs(ccm.mentalaffs) do
  15. --ccm.echo("MENTALAFFS")
  16. if ms.afflicted[v] == "aff" then
  17. --ccm.echo("AFFS")
  18.  
  19. ccm.mentalaffcount=ccm.mentalaffcount+1
  20.  
  21. -- end
  22. --mmp.echo(string.format("[%s: (%s)]",aff,ms.afflicted[aff]))
  23. --demonnic.chat:cecho("Combat", string.format("<red>%s \n",aff))
  24. end
  25. end
  26. local linecount=0
  27. local roomline =0
  28. tabl = Split(roomString,":")
  29. --ccm.echo(string.format("%s",tabl))
  30.  
  31. demonnic.chat:cecho("Combat", "TARGET AFFLICTIONS: \n")
  32.  
  33. for aff,state in ms.afflicted:pairs() do
  34.  
  35. -- if state == "aff" then
  36. if ms.afflicted[aff] == "aff" then
  37. linecount = linecount+1
  38. ccm.affCount=ccm.affCount+1
  39. -- end
  40. --mmp.echo(string.format("[%s: (%s)]",aff,ms.afflicted[aff]))
  41. demonnic.chat:cecho("Combat", string.format("<red>%s ",aff))
  42. demonnic.chat:cecho("Combat", string.rep(' ', 60-string.len(aff)))
  43. demonnic.chat:cecho("Combat", string.format("<red>%s ",tabl[linecount+1]))
  44. demonnic.chat:cecho("Combat","\n")
  45. end
  46.  
  47. end
  48.  
  49. for i=linecount,20,1 do
  50. if i < table.size(tabl) then
  51. demonnic.chat:cecho("Combat", string.rep(' ', 60))
  52. demonnic.chat:cecho("Combat", string.format("<red>%s ",tabl[i+1]))
  53. end
  54. demonnic.chat:cecho("Combat","\n")
  55.  
  56. end
  57. --local tabl = Split(roomString,":")
  58. --for j=0,20,1 do
  59.  
  60. -- demonnic.chat:cecho("Combat", string.rep(' ', 45))
  61. -- demonnic.chat:cecho("Combat", tabl[j])
  62. -- demonnic.chat:cecho("Combat","\n")
  63.  
  64.  
  65. --end
  66.  
  67. demonnic.chat:cecho("Combat","=============================================\n")
  68. demonnic.chat:cecho("Combat", string.format("PORCUPINE AFFLICTIONS: <red> \n"))
  69. demonnic.chat:cecho("Combat", string.format("ASTHMA <red> %s \n", ms.porcupine["asthma"]))
  70. demonnic.chat:cecho("Combat", string.format("CLUMSY <red> %s \n", ms.porcupine["clumsy"]))
  71. demonnic.chat:cecho("Combat","=============================================\n")
  72. demonnic.chat:cecho("Combat", string.format("<white>TARGET HEALTH: <red>%s%% <white>TARGET MANA: <red>%s%% \n",hp,mp))
  73. demonnic.chat:cecho("Combat","=============================================\n")
  74. demonnic.chat:cecho("Combat", string.format("<white>PLAYERS:"))
  75. for i, name in pairs(gmcp.Room.Players) do
  76. demonnic.chat:cecho("Combat", string.format("<red> %s",gmcp.Room.Players[i].name))
  77.  
  78. end
  79. demonnic.chat:cecho("Combat", string.format("\n"))
  80. demonnic.chat:cecho("Combat","=============================================\n")
  81. --demonnic.chat:cecho("Combat", string.format("SPINS LEFT: <red>%s \n",spinsLeft))
  82. --demonnic.chat:cecho("Combat","=============================================\n")
  83.  
  84. demonnic.chat:cecho("Combat", "MY AFFLICTIONS: \n")
  85. linecount=0
  86. for aff,state in ms.myAfflictions:pairs() do
  87. if ms.myAfflictions[aff] == "aff" then
  88. linecount = linecount+1
  89. -- end
  90. --mmp.echo(string.format("[%s: (%s)]",aff,ms.afflicted[aff]))
  91. demonnic.chat:cecho("Combat", string.format("<red>%s \n",aff))
  92. end
  93. end
  94. for i=linecount,20,1 do
  95. demonnic.chat:cecho("Combat","\n")
  96.  
  97. end
  98. demonnic.chat:cecho("Combat","=============================================\n")
  99. --mmp.roomLook(mmp.currentroom)
  100. local exits = getRoomExits(mmp.currentroom)
  101. demonnic.chat:cecho("Combat", string.format("ROOM EXITS:\n"))
  102.  
  103. local s, areanum = pcall(getRoomArea,mmp.currentroom)
  104. --if not s then mmp.echo(areanum); return; end
  105.  
  106. local exits = getRoomExits(mmp.currentroom)
  107. local name = getRoomName(mmp.currentroom)
  108. local islocked = roomLocked(mmp.currentroom)
  109. local weight = (getRoomWeight(mmp.currentroom) and getRoomWeight(mmp.currentroom) or "?") -- getRoomWeight is buggy in one of the versions, is actually linked to setRoomWeight and thus returns nil
  110. local exitweights = (getExitWeights and getExitWeights(mmp.currentroom) or {})
  111. local coords = {getRoomCoordinates(mmp.currentroom)}
  112. local specexits = getSpecialExits(mmp.currentroom)
  113. local env = getRoomEnv(mmp.currentroom)
  114. local envname = (mmp.envidsr and mmp.envidsr[env]) or "?"
  115. local toserialize = yajl.to_string(exits)
  116. demonnic.chat:cecho("Combat", string.format("<green>%s\n",toserialize))
  117. demonnic.chat:cecho("Combat","=============================================\n")
  118.  
  119. demonnic.chat:cecho("Combat", string.format("ENVIRONMENT:\n"))
  120. demonnic.chat:cecho("Combat", string.format("<green>%s\n",envname))
  121.  
  122. demonnic.chat:cecho("Combat","=============================================\n")
  123. demonnic.chat:cecho("Combat", string.format("SHIELD STATUS:"))
  124. if ccm.myShield then
  125. demonnic.chat:cecho("Combat", string.format("<yellow>===UP===\n"))
  126. else
  127. demonnic.chat:cecho("Combat", string.format("<yellow>===DOWN===\n"))
  128. end
  129. demonnic.chat:cecho("Combat","=============================================\n")
  130. demonnic.chat:cecho("Combat", string.format("REBOUNDING STATUS:"))
  131. if ccm.myAura then
  132. demonnic.chat:cecho("Combat", string.format("<yellow>===UP===\n"))
  133. else
  134. demonnic.chat:cecho("Combat", string.format("<yellow>===DOWN===\n"))
  135. end
  136. demonnic.chat:cecho("Combat","=============================================\n")
  137. demonnic.chat:cecho("Combat", string.format("<white>SWIFTCURSE: <red>%s <white>SWIFTMARK: <red>%s <white>PROPHECY: <red>%s\n",gmcp.Char.Vitals.curse_charges, ccm.swiftmark, ccm.prophecybalance))
  138.  
  139. demonnic.chat:cecho("Combat","=============================================\n")
  140. demonnic.chat:cecho("Combat", string.format("TARGET: <red>%s\n",target))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement