Python: Event which gets triggered if the bot uses spells

Hey,

could you add a python event which gets called, once the bot uses a skill?
I tried to use handle_silkroad(opcode, data), but this event is only called as long as the silkroad client is running, but it is not called, if the bot is clientless.

I would love to get notified about the skill execution, because I built a plugin which does it´s own movement, but the plugin gets kind of confused, if the bot starts using buffs…

SERVER_ENTITY_ATTACK = 0xB070, has all that data.

I can’t remember his whole structure, but it should be enough for you at the moment:

byte success
byte type
uint attackerUniqueID
... 

if attackerUniqueID == yourUniqueID : Yep. You are using skills

1 Like