diff --git a/src/aliases/bashmatic/BM_Config.lua b/src/aliases/bashmatic/BM_Config.lua index 250f0e6..e7e607e 100644 --- a/src/aliases/bashmatic/BM_Config.lua +++ b/src/aliases/bashmatic/BM_Config.lua @@ -1,14 +1,43 @@ cecho("Bashmatic - Let's Bash Some Mobs!") -cecho("---------------------------------") +cecho("---------------------------------") cecho("See bm help for information on configuration.") cecho("") cecho("\nBattle Commands:") -cecho("-- Start : " .. Bashmatic.commands.start or "None") -cecho("-- Before: " .. Bashmatic.commands.before or "None") -cecho("-- During: " .. Bashmatic.commands.during or "None" .. "(Every " .. Bashmatic.commands.duringTime .. "s)") -cecho("-- After : " .. Bashmatic.commands.after or "None") +if Bashmatic.commands.start then + cecho("-- Start : " .. Bashmatic.commands.start) +else + cecho("-- Start : Not Set.") +end +if Bashmatic.commands.before then + cecho("-- Before : " .. Bashmatic.commands.before) +else + cecho("-- Before : Not Set.") +end +if Bashmatic.commands.during then + cecho("-- During : " .. Bashmatic.commands.during .. "(Every " .. Bashmatic.commands.duringTime .. "s)") +else + cecho("-- During : Not Set.") +end +if Bashmatic.commands.after then + cecho("-- After : " .. Bashmatic.commands.after) +else + cecho("-- After : Not Set.") +end cecho("\n\nDeath Trigger:") -cecho("-- Phrase : " .. Bashmatic.death.phrase or "None") -cecho("-- Activated?: " .. Bashmatic.death.event or "No") +if Bashmatic.death.phrase then + cecho("-- Phrase: " .. Bashmatic.death.phrase) +else + cecho("-- Phrase: Not Set.") +end +if Bashmatic.death.event then + cecho("-- Activated?: Yes") +else + cecho("-- Activated?: No") +end cecho("\n\nEnemies:") -cecho("-- Grouping by Areas: " .. Bashmatic.enemies.group or "No") \ No newline at end of file +if Bashmatic.enemies.group then + cecho("-- Grouping Enemies by Areas: Yes") +else + cecho("-- Grouping Enemies by Areas: No") +end +cecho("") \ No newline at end of file diff --git a/src/aliases/bashmatic/BM_Delete.lua b/src/aliases/bashmatic/BM_Delete.lua index 82d416d..792c584 100644 --- a/src/aliases/bashmatic/BM_Delete.lua +++ b/src/aliases/bashmatic/BM_Delete.lua @@ -24,5 +24,5 @@ else return end table.remove(Bashmatic.enemies.targets, ourIndex) - cecho("Bashmatic: Removed target from the list.Bashmatic: Removed target from the list.") end \ No newline at end of file diff --git a/src/scripts/bashmatic/bashmatic_init.lua b/src/scripts/bashmatic/bashmatic_init.lua index cedbb60..8e00052 100644 --- a/src/scripts/bashmatic/bashmatic_init.lua +++ b/src/scripts/bashmatic/bashmatic_init.lua @@ -178,11 +178,11 @@ function displayTargetList(start, endi, page, pages) thisTable:addColumn({ name = "Target", width = 72, - textColor = "" + textColor = "" }) - for i=start,i<=endi,1 do + for i=start,endi,1 do thisTable:addRow({ - i, + tostring(i), Bashmatic.enemies.targets[i] }) end @@ -208,11 +208,11 @@ function displayAreaTargetList(area, start, endi, page, pages) thisTable:addColumn({ name = "Target", width = 72, - textColor = "" + textColor = "" }) - for i=start,i<=endi,1 do + for i=start,endi,1 do thisTable:addRow({ - i, + tostring(i), Bashmatic.enemies.targets.area[i] }) end