Hi! I've been working with Hercules emulator for like 5 days now, and I must say. I love the scripting. It's very easy to understand. Comments are where they are, you just have to read the scripts thoroughly. I've been editing scripts these past days, getting less sleep and eating less because I easily got addicted to playing and programming at the same time.
❗Problem Section❗
There is this weird behavior when players do a basic attack. I've observed this with my Hercules emulator and other servers that use Hercules emulator. When a PLAYER ATTACKS or SWITCHES TARGET to another ENEMY after the player KILLS ITS LAST TARGET, there is a 2 SECOND DELAY BEFORE THE PLAYER STARTS ATTACKING AGAIN.
I've been reading thoroughly the conf/maps/battle scripts, plus I've read the src/map/battle.c file at line 6187 'damage_lv battle_weapon_attack' doesn't seem to affect the behavior. I can't find the reason why there is an exact 1 second delay before you attack a new target after killing your previous target.
I'm not entirely sure if it's a client, emulator, or server error.
I hope someone can figure this out or at least point me to the right direction. That's all! Thank you and stay home and safe guys!