Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2013, 10:26 PM
jdoran
Hill Giant
 
Join Date: Jul 2012
Posts: 212
Default 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.
Reply With Quote
  #2  
Old 10-29-2013, 10:27 PM
Dunge0nMastr
Hill Giant
 
Join Date: Oct 2002
Location: Rockville, MD
Posts: 124
Default

You could always depop and repop the mob there @ that state to clear the clients target.
__________________
Bront -Server Admin/Owner and Lead Quest Dev for Kildrukaun's Prophecy
http://kpemu.com/
Reply With Quote
  #3  
Old 10-29-2013, 10:55 PM
jdoran
Hill Giant
 
Join Date: Jul 2012
Posts: 212
Default

That sounds like a good idea, thanks.
Reply With Quote
  #4  
Old 10-29-2013, 11:22 PM
Dunge0nMastr
Hill Giant
 
Join Date: Oct 2002
Location: Rockville, MD
Posts: 124
Default

more or less the work around ive used in the past.
__________________
Bront -Server Admin/Owner and Lead Quest Dev for Kildrukaun's Prophecy
http://kpemu.com/
Reply With Quote
  #5  
Old 10-30-2013, 03:25 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

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.
Reply With Quote
  #6  
Old 10-31-2013, 09:35 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

You could always do:

Code:
	if ($hpevent == 50) {
		quest::emote("shakes with laughter and says, 'You are much stronger than I thought. I give up!");
		quest::modifynpcstat("special_attacks",ABfHG);
    		$npc->WipeHateList();
Makes him unattackable and will not aggro, its all i used.

Last edited by Maceblade; 10-31-2013 at 09:37 PM.. Reason: im an idiot and didnt realize you already had this.
Reply With Quote
  #7  
Old 10-31-2013, 10:48 PM
Vexyl
Hill Giant
 
Join Date: Oct 2009
Location: U.S.A.
Posts: 197
Default

Kayen already gave an exact solution to this problem; no work-around needed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:33 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3