Heya,
I couldn't analyze it deeply due to lack of time but I got how pking system works.
So I got the idea that reading the 0xB045 for the last selected target would help. If the unique_id of last selected target was a player it would block the next 0x7074s until the target is changed. But 0x7074 is used for pretty much everything (pick up, attack, trace etc) so obv it did not work. Then i filtered the 0x7074 and i thought reading the skillID and checking if it was a dmg spell. But there are too many spell types and I believe that there is a better way to do this.
Im open to any kind of suggestion :)
This is not a function im seeing around so it might be helpful to people as well. Lets dev it.
I couldn't analyze it deeply due to lack of time but I got how pking system works.
So I got the idea that reading the 0xB045 for the last selected target would help. If the unique_id of last selected target was a player it would block the next 0x7074s until the target is changed. But 0x7074 is used for pretty much everything (pick up, attack, trace etc) so obv it did not work. Then i filtered the 0x7074 and i thought reading the skillID and checking if it was a dmg spell. But there are too many spell types and I believe that there is a better way to do this.
Im open to any kind of suggestion :)
This is not a function im seeing around so it might be helpful to people as well. Lets dev it.