Page 1 of 1

[doubt] Archery

Posted: Wed Mar 08, 2017 1:14 pm
by DerexScript
I made the following hook "Attack".
To be able to control the combat my way !.

How can I shoot with bow at the same time that the character is walking?

Could someone give me an example?

Thank you all!

Re: [doubt] Archery

Posted: Thu Mar 09, 2017 1:21 pm
by Rodolfo
i have the same problem.
when i walk, the character stop the atack.
what we need to do?

Re: [doubt] Archery

Posted: Thu Mar 09, 2017 5:46 pm
by Harley
You Need go to this page and Look firewhilemoving
https://docs.polserver.com/pol099/privileges.php

Re: [doubt] Archery

Posted: Fri Mar 10, 2017 12:52 pm
by DerexScript
I'm testing the privillege "firewhilemoving" and I can't manage how to make it work.

Use uo;
program textcmd_test( mobile )
GrantPrivilege( mobile, "firewhilemoving");
mobile.enable("firewhilemoving");
SendSysMessage(mobile, "firewhilemoving Actived");
return 1;
endprogram

I'm doing it right?
It does not even get into "syshook_attack.src".
I put a "SendSysMessage" at the beginning of "syshook_attack.src", only printa when I'm stopped. If I'm walking, it does not do anything.

Re: [doubt] Archery

Posted: Fri Mar 10, 2017 1:59 pm
by Harley
You made script which enable this privilege.
After you have to put bow or crossbow in your arms, have some amount arrows/bolts, put on War Mode and when you will run, your weapon will shoot and damage your opponent.

At my shard it works like I sad.

Re: [doubt] Archery

Posted: Fri Mar 10, 2017 10:54 pm
by DerexScript
You can publish an example?

Re: [doubt] Archery

Posted: Mon Mar 13, 2017 1:45 pm
by DerexScript
One more doubt, if I have the following hook >> "Attack"

The privilege "firewhilemoving" will work?
What would be another way to do that?

As soon as my character moves, he does not even enter the hook.