turning off client attack
While I'm thinking of it... Here's another question that came up recently.
Does anyone know of a way for the server to turn off client attack? The usage case: The player is fighting NPC001 and at some point the NPC gives up and will cooperate with the player. The fight stops and the player interacts with the NPC. I have this working except for that one detail. When the NPC's health reaches a certain level the NPC's special attacks are changed to never aggro nor flee, and he is set to be invulnerable. The hate list is cleared. At this point the NPC will stand there and beg for his life. On the client you get messages about the NPC being invulnerable. Sure the player can turn off autoattack. But the encounter would look a lot better if the client would stop attacking. |
You could always depop and repop the mob there @ that state to clear the clients target.
|
That sounds like a good idea, thanks.
|
more or less the work around ive used in the past.
|
Kayen: Implemented Perl MOB Quest Object SetDisableMelee(1=Disabled) - Prevents the ability to auto attack.
Kayen: Implemented Perl MOB Quest Object IsMeleeDisabled() Implemented these last year. $client->SetDisableMelee(1) That should do that trick for you. |
You could always do:
Code:
if ($hpevent == 50) { |
Kayen already gave an exact solution to this problem; no work-around needed.
|
All times are GMT -4. The time now is 04:02 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.