Gibreficul
08-30-2013, 09:11 AM
So, I was making a run through a warcamp with my nifty 7x T5 handwraps and I got to thinking... How much stamina/health/spirit/mana are they really giving me back when those ensorcell flares fire? My solution... write a script!
So, it's up and on the repo...
ensorcell_tracker.lic
The ;repo info on it will basically tell you what it does, but I'll break it down for you here.
It's a basic loop that has a 1 second matchtimeout statement that searches for those flares to fire. Each time the script loops, it gathers your mana, spirit, stamina, and health information. When one of those flares fires, it runs a simple comparison between the new result and the saved result, and subtracts the saved result from the new result. It then adds a string to a log file, (Found in Lich\Logs\ensorcell_tracker.log) which will include the character's name, the type of flare, the original value, the new value, and the difference in value.
Baswab: STAMINA: Before flare: 73 After flare: 85 Net gain: 12
Baswab: STAMINA: Before flare: 115 After flare: 131 Net gain: 16
Baswab: STAMINA: Before flare: 70 After flare: 80 Net gain: 10
Baswab: STAMINA: Before flare: 74 After flare: 93 Net gain: 19
Baswab: STAMINA: Before flare: 105 After flare: 105 Net gain: 0
Baswab: STAMINA: Before flare: 29 After flare: 42 Net gain: 13
Baswab: STAMINA: Before flare: 62 After flare: 82 Net gain: 20
Geno: HEALTH: Before flare: 172 After flare: 172 Net gain: 0
Baswab: STAMINA: Before flare: 34 After flare: 34 Net gain: 0
Baswab: STAMINA: Before flare: 53 After flare: 53 Net gain: 0
Baswab: STAMINA: Before flare: 7 After flare: 24 Net gain: 17
Baswab: STAMINA: Before flare: 32 After flare: 44 Net gain: 12
Baswab: STAMINA: Before flare: 28 After flare: 42 Net gain: 14
Geno: HEALTH: Before flare: 174 After flare: 178 Net gain: 4
Geno: MANA: Before flare: 140 After flare: 134 Net gain: -6
That's my current log file. As you can see, it's not completely accurate. It's meant as a guide to give a general idea of how much mana/spirit/stamina/health is being returned.
Reasons it's not totally accurate:
For mana flares, it doesn't take into consideration the cost of the spell cast. It's checking mana before you cast, and then checking mana after you cast and got the flare, as per the last log entry, showing a negative value.
For stamina flares, if stamina is used between the 1 second loop and the flare going off, it can skew the numbers. I've noticed sigil of minor bane refreshing a moment before the attack. The sigil costs 10 stamina, apparently the return gave 10 stamina, as per the 5th and 9th entries. I also had an instance early in my testing (not included in that list) where surge of strength went up just before an attack, which returned a negative result.
The Health check that returned a net value of 0 might have been caused by the script checking the current value before Lich actually updated the character's health points.
Mana/stamina/health/spirit pulses can also skew the numbers, but I don't have many data points thus far and none of them have seen that yet.
It's a preliminary script, it might or might not see updates to increase accuracy, but for now, it's what I could toss together quick and dirty like.
Hope those of you with ensorcelled weapons get some use out of this.
So, it's up and on the repo...
ensorcell_tracker.lic
The ;repo info on it will basically tell you what it does, but I'll break it down for you here.
It's a basic loop that has a 1 second matchtimeout statement that searches for those flares to fire. Each time the script loops, it gathers your mana, spirit, stamina, and health information. When one of those flares fires, it runs a simple comparison between the new result and the saved result, and subtracts the saved result from the new result. It then adds a string to a log file, (Found in Lich\Logs\ensorcell_tracker.log) which will include the character's name, the type of flare, the original value, the new value, and the difference in value.
Baswab: STAMINA: Before flare: 73 After flare: 85 Net gain: 12
Baswab: STAMINA: Before flare: 115 After flare: 131 Net gain: 16
Baswab: STAMINA: Before flare: 70 After flare: 80 Net gain: 10
Baswab: STAMINA: Before flare: 74 After flare: 93 Net gain: 19
Baswab: STAMINA: Before flare: 105 After flare: 105 Net gain: 0
Baswab: STAMINA: Before flare: 29 After flare: 42 Net gain: 13
Baswab: STAMINA: Before flare: 62 After flare: 82 Net gain: 20
Geno: HEALTH: Before flare: 172 After flare: 172 Net gain: 0
Baswab: STAMINA: Before flare: 34 After flare: 34 Net gain: 0
Baswab: STAMINA: Before flare: 53 After flare: 53 Net gain: 0
Baswab: STAMINA: Before flare: 7 After flare: 24 Net gain: 17
Baswab: STAMINA: Before flare: 32 After flare: 44 Net gain: 12
Baswab: STAMINA: Before flare: 28 After flare: 42 Net gain: 14
Geno: HEALTH: Before flare: 174 After flare: 178 Net gain: 4
Geno: MANA: Before flare: 140 After flare: 134 Net gain: -6
That's my current log file. As you can see, it's not completely accurate. It's meant as a guide to give a general idea of how much mana/spirit/stamina/health is being returned.
Reasons it's not totally accurate:
For mana flares, it doesn't take into consideration the cost of the spell cast. It's checking mana before you cast, and then checking mana after you cast and got the flare, as per the last log entry, showing a negative value.
For stamina flares, if stamina is used between the 1 second loop and the flare going off, it can skew the numbers. I've noticed sigil of minor bane refreshing a moment before the attack. The sigil costs 10 stamina, apparently the return gave 10 stamina, as per the 5th and 9th entries. I also had an instance early in my testing (not included in that list) where surge of strength went up just before an attack, which returned a negative result.
The Health check that returned a net value of 0 might have been caused by the script checking the current value before Lich actually updated the character's health points.
Mana/stamina/health/spirit pulses can also skew the numbers, but I don't have many data points thus far and none of them have seen that yet.
It's a preliminary script, it might or might not see updates to increase accuracy, but for now, it's what I could toss together quick and dirty like.
Hope those of you with ensorcelled weapons get some use out of this.