C h a o s;743063 said:just curious, any way to make these guards attack based on race instead of karma, or even by the players title?
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (4 errors, 1 warnings)
Warnings:
+ Custom/OmniPorter/WorldOmniporter.cs:
CS0168: Line 879: The variable 'e' is declared but never used
Errors:
+ Engines/AI/Creature/BaseCreature.cs:
CS0117: Line 1042: 'Server.OppositionGroup' does not contain a definition fo
r 'newguards'
+ Custom/SpawnableGuards/Spawneableguards/Criminal/BaseAntiCriminal.cs:
CS0117: Line 121: 'Server.OppositionGroup' does not contain a definition for
'newguards'
+ Custom/SpawnableGuards/Spawneableguards/Evil/BaseEvilGuard.cs:
CS0117: Line 135: 'Server.OppositionGroup' does not contain a definition for
'newguards'
+ Custom/SpawnableGuards/Spawneableguards/Good/BaseGoodGuard.cs:
CS0117: Line 121: 'Server.OppositionGroup' does not contain a definition for
'newguards'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
public BaseAI AIObject{ get{ return m_AI; } }
public const int MaxOwners = 5;
public virtual OppositionGroup OppositionGroup
{
//get{ return null; }
[COLOR="Red"] get { return OppositionGroup.newguards; }[/COLOR] // added for new spawnable Guards
}
#region Friends
public List<Mobile> Friends { get { return m_Friends; } }
public virtual bool AllowNewPetFriend
{
get{ return ( m_Friends == null || m_Friends.Count < 5 ); }
}
public virtual bool IsPetFriend( Mobile m )
{
return ( m_Friends != null && m_Friends.Contains( m ) );
}
KnitePrince;796595 said:heh, I knew this one looked too easy,,
My Console;
Code:RunUO - [www.runuo.com] Version 2.0, Build 2357.32527 Core: Running on .NET Framework Version 2.0.50727 Core: Optimizing for 2 processors Scripts: Compiling C# scripts...failed (4 errors, 1 warnings) Warnings: + Custom/OmniPorter/WorldOmniporter.cs: CS0168: Line 879: The variable 'e' is declared but never used Errors: + Engines/AI/Creature/BaseCreature.cs: CS0117: Line 1042: 'Server.OppositionGroup' does not contain a definition fo r 'newguards' + Custom/SpawnableGuards/Spawneableguards/Criminal/BaseAntiCriminal.cs: CS0117: Line 121: 'Server.OppositionGroup' does not contain a definition for 'newguards' + Custom/SpawnableGuards/Spawneableguards/Evil/BaseEvilGuard.cs: CS0117: Line 135: 'Server.OppositionGroup' does not contain a definition for 'newguards' + Custom/SpawnableGuards/Spawneableguards/Good/BaseGoodGuard.cs: CS0117: Line 121: 'Server.OppositionGroup' does not contain a definition for 'newguards' Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again.
and the offending piece of code in Red...
Code:public BaseAI AIObject{ get{ return m_AI; } } public const int MaxOwners = 5; public virtual OppositionGroup OppositionGroup { //get{ return null; } [COLOR="Red"] get { return OppositionGroup.newguards; }[/COLOR] // added for new spawnable Guards } #region Friends public List<Mobile> Friends { get { return m_Friends; } } public virtual bool AllowNewPetFriend { get{ return ( m_Friends == null || m_Friends.Count < 5 ); } } public virtual bool IsPetFriend( Mobile m ) { return ( m_Friends != null && m_Friends.Contains( m ) ); }
Would Appriciate a Hint, or an example! Thx!
newguards
NewGuards
get { return OppositionGroup.NewGuards; }