need help

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
nika
New User
Posts: 8
Joined: Thu Oct 09, 2008 1:59 pm

need help

Post by nika »

Trash :))

Ty All :D
Last edited by nika on Fri Oct 17, 2008 12:48 pm, edited 1 time in total.
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Re: need help

Post by ncrsn »

Is this attackhookscript or attackhitscript? If latter, remember, that the core's attack system also checks for projectiles before the hitscripts are launched. Take a look at this: http://docs.polserver.com/pol097/attack.php.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: need help

Post by CWO »

Does the code after this eventually return 1 if its a mobile and the projectile is consumed? Because so far coming to the end of your code, you still don't return 1. If you don't eventually return 1, the attack hook AND the core are attacking which would be the doubling up problem.
nika
New User
Posts: 8
Joined: Thu Oct 09, 2008 1:59 pm

Re: need help

Post by nika »

:blush:
Last edited by nika on Fri Oct 17, 2008 12:49 pm, edited 1 time in total.
nika
New User
Posts: 8
Joined: Thu Oct 09, 2008 1:59 pm

Re: need help

Post by nika »

8)
Last edited by nika on Fri Oct 17, 2008 12:49 pm, edited 1 time in total.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: need help

Post by CWO »

Once again, if the attack hook consumes an arrow, it must run the hitscript itself and return 1. If the attack hook doesn't return 1, it will run the core combat system. What I'm thinking is your attack hook here is consuming the arrow, not running any repsys checks, and not running any hitscripts then never returning 1 meaning all it did was consume an arrow and hand it to the core which also consumes an arrow but runs the repsys and hitscript which is why its only being done once.
Filip
New User
Posts: 3
Joined: Sun Oct 26, 2008 3:05 am

Re: need help

Post by Filip »

Why do you edit your posts nika when you've solved your problem? Now noone else could use this topic for help.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: need help

Post by CWO »

Yes the best thing to do is to leave your original posted problem as is and never edit it. Then you can list what the solution was to your problem. This way if someone else has a similar problem, they can get the solution immediately from this post instead of having to wait for us to go through the problem with them and come to the same conclusion days later.
Post Reply