Everiine2009-01-22 17:27:12
QUOTE (Zarquan @ Jan 22 2009, 12:24 PM) <{POST_SNAPBACK}>
Um, you can't even GET critical hits on players, so no.
Hmm, then I'll have to see if the new version fixes my crits counter too.
Rika2009-01-22 19:08:53
My miss thing broke a bit (fixed now), so it's not accurate. Here's my crit chart:
» Normal 1701 57.37%
» Crushing 720 24.28%
» Obliterating 315 10.62%
» Annihilating 129 4.35%
» World-Shattering 100 3.37%
» Normal 1701 57.37%
» Crushing 720 24.28%
» Obliterating 315 10.62%
» Annihilating 129 4.35%
» World-Shattering 100 3.37%
Unknown2009-01-22 19:10:25
QUOTE (rika @ Jan 22 2009, 02:08 PM) <{POST_SNAPBACK}>
My miss thing broke a bit (fixed now), so it's not accurate.
Something I need to fix, too? Or was it all you?
Rika2009-01-22 19:12:50
QUOTE (Zarquan @ Jan 23 2009, 08:10 AM) <{POST_SNAPBACK}>
Something I need to fix, too? Or was it all you?
It was me. Nothing to see here!
Tandrin2009-01-23 01:06:13
Hmm, my crits counter isn't working.
Do I need to customize it for monk attacks?
Do I need to customize it for monk attacks?
Unknown2009-01-23 03:19:28
QUOTE (Tandrin @ Jan 22 2009, 08:06 PM) <{POST_SNAPBACK}>
Hmm, my crits counter isn't working.
Do I need to customize it for monk attacks?
Do I need to customize it for monk attacks?
With help from a non-warrior, I've figured out that the problem isn't with the counting! The display function wasn't showing any results unless you had your attacks counted. It's just another case of being too close to the code to find the problem based on what I was being told.
So, replace your criticals:show function with this one and it'll work just fine (or alternatively, you could make a trigger to track your bashing attack(s)):
CODE
function criticals:show(nocr)
  display.Info("Critical Hits Report:")
  local total = criticals:count("total")
  if total <= 0 then
    display.Prefix()
    ColourNote("silver", "black", "  No data yet!")
    return
  end
  if criticals:count("attacks") > 0 then
      display.Prefix()
      ColourNote("silver", "black", string.format("  %-25s  %6d", "Attacks", criticals:count("attacks")))
    if criticals:count("misses") > 0 then
      local pct = criticals:count("misses") / criticals:count("attacks") * 100.0
      display.Prefix()
      ColourNote("silver", "black", string.format("  %-25s  %6d  %6s%%", "Misses", criticals:count("misses"), string.format("%3.2f", pct)))
    end
  end
  display.Info("")
  for _,crit in self.levels:pairs() do
    local pct = 0
    local ct = criticals:count(crit)
    if total > 0 then
      pct = ct / total * 100.0
    end
    if crit == "World" then
      crit = "World-Shattering"
    end
    display.Prefix()
    ColourNote("silver", "black", string.format("  %-25s  %6d  %6s%%", crit, ct, string.format("%3.2f", pct)))
  end
  display.Prefix()
  ColourNote("gray", "black", string.format("  %-25s  %6s", string.rep("-", 25), string.rep("-", 6)))
  display.Prefix()
  ColourNote("silver", "black", string.format("  %-25s  %6d", "Total critical hits", total))
  if IsConnected() and not nocr then
    Send("")
  end
end
  display.Info("Critical Hits Report:")
  local total = criticals:count("total")
  if total <= 0 then
    display.Prefix()
    ColourNote("silver", "black", "  No data yet!")
    return
  end
  if criticals:count("attacks") > 0 then
      display.Prefix()
      ColourNote("silver", "black", string.format("  %-25s  %6d", "Attacks", criticals:count("attacks")))
    if criticals:count("misses") > 0 then
      local pct = criticals:count("misses") / criticals:count("attacks") * 100.0
      display.Prefix()
      ColourNote("silver", "black", string.format("  %-25s  %6d  %6s%%", "Misses", criticals:count("misses"), string.format("%3.2f", pct)))
    end
  end
  display.Info("")
  for _,crit in self.levels:pairs() do
    local pct = 0
    local ct = criticals:count(crit)
    if total > 0 then
      pct = ct / total * 100.0
    end
    if crit == "World" then
      crit = "World-Shattering"
    end
    display.Prefix()
    ColourNote("silver", "black", string.format("  %-25s  %6d  %6s%%", crit, ct, string.format("%3.2f", pct)))
  end
  display.Prefix()
  ColourNote("gray", "black", string.format("  %-25s  %6s", string.rep("-", 25), string.rep("-", 6)))
  display.Prefix()
  ColourNote("silver", "black", string.format("  %-25s  %6d", "Total critical hits", total))
  if IsConnected() and not nocr then
    Send("")
  end
end
Unknown2009-01-23 15:54:22
Awesome! It really is the displaying that's the problem, as I still have my crits from before
Yay! Its nice to see that I have 56 crits even though I hardly ever attack anything.
CODE
» Critical Hits Report:
»
»  Normal                        44  78.57%
»  Crushing                      11  19.64%
»  Obliterating                    1    1.79%
»  Annihilating                    0    0.00%
»  World-Shattering                0    0.00%
»  -------------------------  ------
»  Total critical hits            56
»
»  Normal                        44  78.57%
»  Crushing                      11  19.64%
»  Obliterating                    1    1.79%
»  Annihilating                    0    0.00%
»  World-Shattering                0    0.00%
»  -------------------------  ------
»  Total critical hits            56
Yay! Its nice to see that I have 56 crits even though I hardly ever attack anything.
Zalandrus2009-01-24 03:50:34
After finally getting things to work, Treant looks great! One problem, though, is that it's not auto-sipping at all! In the hopes that I'm not missing something major (ie having to type something at the beginning?), is anybody else having this problem? I even modified my scripts file to say:
Second, minor question: is there a way to eliminate one or both of the empty lines below the prompt?
QUOTE
my_sip = {
= function (max) return max * 0.20 end,
= function (max) return max * 0.20 end,
= function (max) return max * 0.20 end
}
require "treant"
treant:Init()
require "gui"
gui:Init()
= function (max) return max * 0.20 end,
= function (max) return max * 0.20 end,
= function (max) return max * 0.20 end
}
require "treant"
treant:Init()
require "gui"
gui:Init()
Second, minor question: is there a way to eliminate one or both of the empty lines below the prompt?
Esano2009-01-24 03:54:50
EDIT: Moment.
Everiine2009-01-24 03:59:09
QUOTE (Zalandrus Meyedsun @ Jan 23 2009, 10:50 PM) <{POST_SNAPBACK}>
After finally getting things to work, Treant looks great! One problem, though, is that it's not auto-sipping at all! In the hopes that I'm not missing something major (ie having to type something at the beginning?), is anybody else having this problem? I even modified my scripts file to say:
Second, minor question: is there a way to eliminate one or both of the empty lines below the prompt?
Second, minor question: is there a way to eliminate one or both of the empty lines below the prompt?
This may seem silly, but have you typed AUTOS and made sure that Sipping has an X in it? If it's not checked, you have to do AUTO SIPPING ON.
Zalandrus2009-01-24 05:06:59
QUOTE
This may seem silly, but have you typed AUTOS and made sure that Sipping has an X in it? If it's not checked, you have to do AUTO SIPPING ON.
That did it! I guess I was missing something basic. Thanks Everiine
Anybody have a solution for the extra line break question?
Unknown2009-01-24 11:50:02
QUOTE (Zalandrus Meyedsun @ Jan 24 2009, 12:06 AM) <{POST_SNAPBACK}>
Anybody have a solution for the extra line break question?
Hint: plugin.
Zalandrus2009-01-24 15:04:32
Plug-ins scare me. I suppose figuring out how to write one to do that will be a long-term goal for me...
Rakor2009-01-24 15:53:09
I just noticed that 1.13 has springup and contort! Excellent news, thank you!
Unknown2009-01-25 01:41:14
QUOTE (Zalandrus Meyedsun @ Jan 24 2009, 10:04 AM) <{POST_SNAPBACK}>
Plug-ins scare me. I suppose figuring out how to write one to do that will be a long-term goal for me...
You missed the hint.
QUOTE (Rakor @ Jan 24 2009, 10:53 AM) <{POST_SNAPBACK}>
I just noticed that 1.13 has springup and contort! Excellent news, thank you!
You're welcome! (You can also thank the individual who paid for a support contract and then requested that feature. )
Gregori2009-01-25 01:47:47
QUOTE (Zarquan @ Jan 24 2009, 07:41 PM) <{POST_SNAPBACK}>
You're welcome! (You can also thank the individual who paid for a support contract and then requested that feature. )
Hey I paid for a support contract! When do I get my I Win button?
Unknown2009-01-25 01:49:01
If you give me the strategy in two commands or less, I'll happily make you a button!
Unknown2009-01-26 08:11:33
Is there an easy way to turn off harvesting for replanting? I tried pausing, didn't work.
But apart from this, the harvester is super neat! My previous one required two command per room; this harvester only requires one!
But apart from this, the harvester is super neat! My previous one required two command per room; this harvester only requires one!
Gregori2009-01-26 08:24:03
QUOTE (Solanis @ Jan 26 2009, 02:11 AM) <{POST_SNAPBACK}>
Is there an easy way to turn off harvesting for replanting? I tried pausing, didn't work.
But apart from this, the harvester is super neat! My previous one required two command per room; this harvester only requires one!
But apart from this, the harvester is super neat! My previous one required two command per room; this harvester only requires one!
auto herbs off
Gregori2009-01-26 08:24:58
QUOTE (Zarquan @ Jan 24 2009, 07:49 PM) <{POST_SNAPBACK}>
If you give me the strategy in two commands or less, I'll happily make you a button!
Command 1: Summon Shuyin
Command 2: Order Shuyin kill all