Page 1 of 1

Combat problems.

Posted: Sat Mar 30, 2024 3:28 am
by Dandino
Hi all :D

I created a server running on pol 099 with Fantasia scripts, but I have a problem with combat system.

When I attack any monster, my character (level 4 warrior full equipped) misses almost every hit.

This problem does not occur when I attack another player, because all attacks hit correctly.

Where's the error?

Thanks in advance.

Re: Combat problems.

Posted: Wed Apr 10, 2024 11:36 am
by CWO
First, check to see if your scripts have a custom attack system. Look for syshook.cfg (there can be multiple and they can be in any package) look for an entry for Attack. Something like

Code: Select all

SystemHookScript newCombat.ecl
{
	Attack 	DoAttack
}
If you do have it, you can find the code in that script (In the example above, it would be in newCombat.src in the same path and the exported function name would be DoAttack).


If you don't have that entry in a syshook.cfg, the POL core handles attacking and a psudocode of what it does is here: https://docs.polserver.com/pol099/attack.php

Edit: Didn't notice that this was posted 11 days ago. Our Discord bot just notified us. If you have Discord, you'll likely get quicker answers there. https://discord.com/invite/4JbC8hA