Agro packet

01/22/2019 16:05 Nortank#1
Hi,

I am trying to get the ID of a monster trying to hit me when he pops (like Magmaros, as an example). I have no clue if there is a way to get it without a su/ct packet which requires to receive an attack (or at least, an attack animation for the ct).
Maybe have I filtered it, so I can't see him, but my filtered packet are not supposed to handle aggro's actions.
I tried to get this packet like that : I record received packet, I come next to the Magmaros, a "!" icon appears and I stop recording. If this packet exists, it is supposed to be sent by the server when the "!" is shown, but no way. How can I do this ?

By the way, it there another way to know if a monster is dead without passing through su packet ? It seems like sometimes (like 5% of the time) monster doesn't send it, but maybe is my bot just laggy, I don't know (still strange that every other packet works in real time without packet loss).

And a "bonus" question : is GM information in the "in" packet" at the 9th argument ?
Code:
in 1 [pseudo] - [userid] [posX] [posY] 2 [GM :1, player : 0] 1 0 9 0 -1.12.1.8.-1.-1.-1.-1.-1 100 100 0 -1 0 0 0 0 0 0 0 0 -1 - 1 0 0 4 0 1 0 0 0 10 0
01/22/2019 16:38 Bejine#2
the packet is 'eff' for the "!".
as for the death, not really. very rarely it also uses 'out' packet, but only if the mob died unnaturally.
in 1 <nick> - <id> <x> <y> <dir> <lvlGM> [...]
01/22/2019 20:44 Nortank#3
I was filtering eff because it was spamming me. Bad idea... Thank you !
+ I so managed correctly the in packet to handle GM.
About the death, I will try to manage it with su+ct+out to see if some mobs ID aren't deleted and come back to you if I still have no clue ! Something I should have added before sending the first post is that my test are done against Pii Pod, everytime a "su" packet is sent with the fourth parameter is "3", the 5th is my kliff/turtle/character's ID I saved it in a string list (after assuring it doesn't already contain it). when I receive a su/die packet, I deleted it from the list, but no, some stays, like if they didn't sent one of those two packets.

Edit :
- It's ok : "out" packet was the mobID which wasn't deleted, now everything is fine, but I found another way to do this, which isn't cleaner than this, but still working very nicely. Anyway, I'll use it when my goal will be to do this in a smartest way.
- "eff" packet works, I'll use it when I will change my bot with the "out" packet too.
- Nothing to change about the 9th argument of the "in" packet, I already did it properly.

Thank you !