Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --demonnic.chat.config.lines = 45
- --[[
- Number of characters to wrap the chatlines at.
- This will also determine how wide the chat windows are.
- ]]
- --demonnic.chat.config.width = 80
- clearWindow(string.format("win%s", "Combat"))
- ccm.affCount=0
- ccm.mentalaffcount=0
- for k, v in pairs(ccm.mentalaffs) do
- --ccm.echo("MENTALAFFS")
- if ms.afflicted[v] == "aff" then
- --ccm.echo("AFFS")
- ccm.mentalaffcount=ccm.mentalaffcount+1
- -- end
- --mmp.echo(string.format("[%s: (%s)]",aff,ms.afflicted[aff]))
- --demonnic.chat:cecho("Combat", string.format("<red>%s \n",aff))
- end
- end
- local linecount=0
- local roomline =0
- tabl = Split(roomString,":")
- --ccm.echo(string.format("%s",tabl))
- demonnic.chat:cecho("Combat", "TARGET AFFLICTIONS: \n")
- for aff,state in ms.afflicted:pairs() do
- -- if state == "aff" then
- if ms.afflicted[aff] == "aff" then
- linecount = linecount+1
- ccm.affCount=ccm.affCount+1
- -- end
- --mmp.echo(string.format("[%s: (%s)]",aff,ms.afflicted[aff]))
- demonnic.chat:cecho("Combat", string.format("<red>%s ",aff))
- demonnic.chat:cecho("Combat", string.rep(' ', 60-string.len(aff)))
- demonnic.chat:cecho("Combat", string.format("<red>%s ",tabl[linecount+1]))
- demonnic.chat:cecho("Combat","\n")
- end
- end
- for i=linecount,20,1 do
- if i < table.size(tabl) then
- demonnic.chat:cecho("Combat", string.rep(' ', 60))
- demonnic.chat:cecho("Combat", string.format("<red>%s ",tabl[i+1]))
- end
- demonnic.chat:cecho("Combat","\n")
- end
- --local tabl = Split(roomString,":")
- --for j=0,20,1 do
- -- demonnic.chat:cecho("Combat", string.rep(' ', 45))
- -- demonnic.chat:cecho("Combat", tabl[j])
- -- demonnic.chat:cecho("Combat","\n")
- --end
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("PORCUPINE AFFLICTIONS: <red> \n"))
- demonnic.chat:cecho("Combat", string.format("ASTHMA <red> %s \n", ms.porcupine["asthma"]))
- demonnic.chat:cecho("Combat", string.format("CLUMSY <red> %s \n", ms.porcupine["clumsy"]))
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("<white>TARGET HEALTH: <red>%s%% <white>TARGET MANA: <red>%s%% \n",hp,mp))
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("<white>PLAYERS:"))
- for i, name in pairs(gmcp.Room.Players) do
- demonnic.chat:cecho("Combat", string.format("<red> %s",gmcp.Room.Players[i].name))
- end
- demonnic.chat:cecho("Combat", string.format("\n"))
- demonnic.chat:cecho("Combat","=============================================\n")
- --demonnic.chat:cecho("Combat", string.format("SPINS LEFT: <red>%s \n",spinsLeft))
- --demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", "MY AFFLICTIONS: \n")
- linecount=0
- for aff,state in ms.myAfflictions:pairs() do
- if ms.myAfflictions[aff] == "aff" then
- linecount = linecount+1
- -- end
- --mmp.echo(string.format("[%s: (%s)]",aff,ms.afflicted[aff]))
- demonnic.chat:cecho("Combat", string.format("<red>%s \n",aff))
- end
- end
- for i=linecount,20,1 do
- demonnic.chat:cecho("Combat","\n")
- end
- demonnic.chat:cecho("Combat","=============================================\n")
- --mmp.roomLook(mmp.currentroom)
- local exits = getRoomExits(mmp.currentroom)
- demonnic.chat:cecho("Combat", string.format("ROOM EXITS:\n"))
- local s, areanum = pcall(getRoomArea,mmp.currentroom)
- --if not s then mmp.echo(areanum); return; end
- local exits = getRoomExits(mmp.currentroom)
- local name = getRoomName(mmp.currentroom)
- local islocked = roomLocked(mmp.currentroom)
- 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
- local exitweights = (getExitWeights and getExitWeights(mmp.currentroom) or {})
- local coords = {getRoomCoordinates(mmp.currentroom)}
- local specexits = getSpecialExits(mmp.currentroom)
- local env = getRoomEnv(mmp.currentroom)
- local envname = (mmp.envidsr and mmp.envidsr[env]) or "?"
- local toserialize = yajl.to_string(exits)
- demonnic.chat:cecho("Combat", string.format("<green>%s\n",toserialize))
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("ENVIRONMENT:\n"))
- demonnic.chat:cecho("Combat", string.format("<green>%s\n",envname))
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("SHIELD STATUS:"))
- if ccm.myShield then
- demonnic.chat:cecho("Combat", string.format("<yellow>===UP===\n"))
- else
- demonnic.chat:cecho("Combat", string.format("<yellow>===DOWN===\n"))
- end
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("REBOUNDING STATUS:"))
- if ccm.myAura then
- demonnic.chat:cecho("Combat", string.format("<yellow>===UP===\n"))
- else
- demonnic.chat:cecho("Combat", string.format("<yellow>===DOWN===\n"))
- end
- demonnic.chat:cecho("Combat","=============================================\n")
- 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))
- demonnic.chat:cecho("Combat","=============================================\n")
- demonnic.chat:cecho("Combat", string.format("TARGET: <red>%s\n",target))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement