Full Version : there is problem with Virtues
xmlspawner >>Scripting Support >>there is problem with Virtues
<< Prev | Next >>
Lusia- 01-20-2007
does not work Honor who can prompt or help with scripts?
ArteGordon- 01-21-2007
there is support for honor in RunUO 2.0, but I dont know how complete it is.
koluch- 01-21-2007
I posted on RunUO in there Bug Section about Honor.
I see the part that is missing, but not sure how it needs to be implemented - because of its "protection" level.
FYI, Honor gains, just painfully slow.
Embracing Honor will NOT let you move among baddies untouched, when you embrace it.
The missing section for this is going to be in BaseCreature.cs in the section:

CODE
public virtual bool IsEnemy( Mobile m ) { OppositionGroup g = this.OppositionGroup; if ( g != null && g.IsEnemy( this, m ) ) return true;
if ( m is BaseGuard )
return false;
if ( GetFactionAllegiance( m ) == Allegiance.Ally )
return false;
Ethics.Ethic ourEthic = EthicAllegiance;
Ethics.Player pl = Ethics.Player.Find( m, true );
if ( pl != null && pl.IsShielded && ( ourEthic == null || ourEthic == pl.Ethic ) )
return false;
if ( !(m is BaseCreature) || m is Server.Engines.Quests.Haven.MilitiaFighter )
return true;
BaseCreature c = (BaseCreature)m;
return ( m_iTeam != c.m_iTeam || ( (m_bSummoned || m_bControlled) != (c.m_bSummoned || c.m_bControlled) )/* || c.Combatant == this*/ );
}

...the missing part being along the lines of:

CODE
if ( !Controlled && (HonorVirtue.UnderHonorEmbrace( m ) ) { return false; }

so monsters will not attack you.
No response from RunUO bug tracker as to them fixing this....*sigh*