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.