try {
int lastDamageACD=u.CommonData.GetAttribute<int>(ActorAttributeType.LastDamageACD);
ulong amount = u.CommonData.GetAttribute<ulong>(ActorAttributeType.LastDamageAmount);
ulong amount2 = u.CommonData.GetAttribute<ulong>(ActorAttributeType.LastDamageMainActor);
if (lastDamageACD == -1 || lastDamageACD == 0) continue;
Logger.Log("{0} attackedby {1} per {2} mainactor:{3}", u.Name, lastDamageACD,amount,amount2);
damagedic.Add(lastDamageACD,amount);
}
hello repka3,
how is that plugin going?
Im was trying to find something similiar when i stumped in your post.
I know there is a non DB tool that does this but i dont trust the injection method. i rather stick to DB and wait for such feature.
Thanks
[DamageStats] ---DiaUnit Dump---
[DamageStats] Name:FallenGrunt_B-6256
[DamageStats] ActorType:Monster
[DamageStats] ACDGuid:-2102001472
[DamageStats] ActorSNO:4083
[DamageStats] RActorGuid:-1904738175
[DamageStats] WorldDynamicId:2000224267
[DamageStats] PetType:-1
[DamageStats] PetOwner:-1
[DamageStats] TeamId:10
[DamageStats] SummonedByACDId:-1
[DamageStats] SummonedBySNO:-1
[DamageStats] SummonerId:-1
[DamageStats] Summoner.Name:lacksmith-6
[DamageStats] MonsterInfo.MonsterType:Demon
[DamageStats] BaseAddress:542007892
[DamageStats] HirelingType:None
[DamageStats] HitpointsCurrent:3579718
[DamageStats] HitpointsCurrentPercent:0.09388532
[B][DamageStats] LastDamageACD:-2071854206
[DamageStats] LastDamageACD:DH_elementalArrow_impact-7234[/B]
[DamageStats] LastDamageAmount:NaN
[DamageStats] LastDamageMainActor:NaN
[DamageStats] ---DiaUnit Dump---
[B][DamageStats] Name:DH_elementalArrow_impact-5610
[DamageStats] ActorType:ServerProp[/B]
[DamageStats] ACDGuid:-2118188932
[DamageStats] ActorSNO:131672
[DamageStats] RActorGuid:-1947074448
[DamageStats] WorldDynamicId:2000224267
[DamageStats] PetType:Exception
[DamageStats] PetOwner:Exception
[DamageStats] TeamId:Exception
[DamageStats] SummonedByACDId:Exception
[DamageStats] SummonedBySNO:Exception
[DamageStats] SummonerId:Exception
[DamageStats] Summoner.Name:Exception
[DamageStats] MonsterInfo.MonsterType:Ally
[DamageStats] BaseAddress:541989056
[DamageStats] HirelingType:Exception
[DamageStats] HitpointsCurrent:Exception
[DamageStats] HitpointsCurrentPct:Exception
[DamageStats] LastDamageACD:Exception
[DamageStats] Actors.GetACDById Name:Exception
[DamageStats] LastDamageAmount Name:Exception
[DamageStats] LastDamageMainActor Name:Exception