Problem with stuncount and stun value

09/15/2010 00:14 bluspex1734#1
Addresses for both are already in the memory.ini of only's bot and they are also the ones i found.
Now the problems:
-stun value should be 1 if stunned and 0 if not stunned.
actually it is also 1 if the char is affected by any kind of spell or guarding or using scrolls. I also looked for some kind of moveable value which would be 1 if the char can do something an 0 if it's stunned or frozen, but i couldn't find one.
-stuncount value should be 0 at start, 1 if "Combo 1" pops up after the first hit and going up to 2 at second hit, decreasing to 0 at third hit in row or if there's no hit for one turn.
this is working, but the stuncount doesn't go down if monks use awakening, which makes it quite useless. Here i was looking for an unstun value which should be 1 if monk reduces stuncount by 1, so that the real stuncount would be "old stuncount - unstun value", but i couldn't find one too.

So it would be great if anyone knew a way to get correct values for stun and stuncount or at least had an idea what i could look for.
Hope for your help!
09/18/2010 18:23 bluspex1734#2
Update on the problem with stun:
It's actually not a stun value, but shows all effects on a specific char. This could be useful for a bot to know, what effects are on the enemys mercs...
Different effects have different values:
1-Stun
2-Freezing Axe
32-Silence
64-Holy Guard
8388608-Mana Seal
536870912-Guard

That's what i have so far, but there are still some more to look for...
And if there is more than one effect on a char, the values add up, like if someone is silenced and frozen, value would be 34

Also if someone can find addresses for AP, mana or def of the enemy would be nice, but i think they don't exist :(
09/18/2010 21:49 bootdisk#3
they look like flags
take 34, and in binary it's 100010, where:

0
1 Frozen
0
0
0
1 Silenced

I bet it's a dword value... would you give more examples?

Edit: Maybe the first 16 bits are for statuses and the other 16 bits are for buffs.
09/19/2010 13:13 bluspex1734#4
@bootdisk: thans, will think about this

And i'm looking for more examples, but some effects seem to have no value:
0-Shooting Stance
0-Vortex
0-Ravaging Melody
0-Chaos Wind
0-Mana Pierce

and with value:
512-Deep Insight
4096-in pvp, when there is a scroll over the merc's head so that you use one, if you attack this merc
09/20/2010 05:05 bootdisk#5
I've found nothing on the NDT files. The statuses should be defined somewhere.
09/20/2010 11:57 scofield5687#6
What's the current address for stuncount? I can't seem to find it.
09/21/2010 02:55 bluspex1734#7
[Stuncount](this is for german version, working 21.9.2010)
$Static = 0x016BFAD4
$Offset_1 = 0x7B8
$Offset_2 = 0xC
$Offset_3 = 0x30
$Offset_4 = 0x11B63

And it's a byte value, when looking for 4-byte value you must search for 4294967040 and add the current counter, like 4294967042 if "combo 2" appears.