Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2009, 03:56 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

could i do in aggro.cpp somewhere to say if(mob->GetName() == "general_eleus") and target is player then wipe hatelsit?
Reply With Quote
  #2  
Old 01-22-2009, 04:59 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

i added this to aggro.ccp
in the bool Mob::IsAttackAllowed(Mob *target) function
Code:
//////////////////////ADDED//////////////////////
	if(bt == BT_Noattack && target->IsClient())
		return(false);
///////////////////////END ADDED//////////////////
also added
Code:
//////////////////////ADDED//////////////////////
	if(bt == BT_Noattack)
		safe_delete(action_packet);
		return(false);
///////////////////////END ADDED//////////////////
to spells.cpp in the //cannot hurt untargetable mobs check

and added BT_Noattack = 9 to the bodytypes.h file..

think this will work of am i close?
Reply With Quote
  #3  
Old 01-22-2009, 06:15 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

well all that did was break my spell casting :(
Reply With Quote
  #4  
Old 01-22-2009, 09:13 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

ok i got it in case anyone is wondering ill post the code changes once i get it all tested make sure. but so far so good.
Reply With Quote
  #5  
Old 01-22-2009, 09:33 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

ok this seems to be working so if anyone is interested..

i changed this in aggro.cpp

Code:
	//cannot hurt untargetable mobs
	bodyType bt = target->GetBodyType();
	if(bt == BT_NoTarget || bt == BT_NoTarget2)
		return(false);
to

Code:
	//cannot hurt untargetable mobs
	bodyType bt = target->GetBodyType();
	//////////////////////ADDED//////////////////////
	if(bt == BT_Noattack && this->IsClient())
	{
		//Message(10,"You can't attack this!");
		return false;
	}
	///////////////////////END ADDED//////////////////
	if(bt == BT_NoTarget || bt == BT_NoTarget2)
		return(false);
on around line 518

i also changed bodytypes.h

Code:
	BT_SummonedUndead	= 8,
	BT_NoTarget			= 11,	//no name, can't target this bodytype
to

Code:
	BT_SummonedUndead	= 8,
///////ADDED////////////////////////////////////
	BT_Noattack			= 9,	
///////END ADDED///////////////////////////////
	BT_NoTarget			= 11,	//no name, can't target this bodytype
its working cant cast aoe spells on them cant aoe taunt cant attack but can still target and talk with and it will still attack npcs and such on opposite factions.

now only prob i am having is you can still target taunt them with normal taunt so if someone knows how to fix that i would love the help but i dont think anyone is going to intentionally taunt these mobs. so its not that big a deal mostly i was trying to prevent accidental aggro.

also this done stop bots and prob not pets so if there is a fix for that would be great also. i would like to end up making this like body type 11 but that you can target. completely invul to anything a player does to it. bu not normal npcs on opposing fractions.
Reply With Quote
  #6  
Old 01-25-2009, 04:43 PM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

Things like taunt, harm touch, kick, etc. are considered special attacks and do not fall under the auto attack category and will thus slip by. To fix your bot problem, you just need to add additional checks in your if statements to determine if the object is a bot or not with IsBot() or a function of your choosing.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:40 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3