Lots of fixes, changes, rewrites of various things, including but not limited to:

Logging of staff crafting items,
Fixes for the OSI client changes
The potion stacking stuff
BaseWeapon fix, so that damage increase things don't multiply themselves.
admin gump fixes for Firewall
Various display tweaks for weight
SoS no longer spawn in Tokuno
Hiryu hues happified to OSI standards
staff now see alliance chat correctly
Play barkeeper text increased per OSI
Various other OSI skill requirement changes
Various unimplemented features of the SE moves
EventSink for when the client version is received from client.
Client validation moved out of the core.
Client version validation now has options to ignore/kick/warn/annoy.  Automagically tries to detect current client.
Reverted the delayeddamagecontext back to OSI standards.
Can no longer use bags of sending in jail.

MagerySpell implemented. Now only Magery spells have a circle, and various other properties of 'em.
TransformationSpellHelper now implemented.  Things moved around for this.
Spells now need a Timespan for the cast delay, instead of arbitrarily based on Circle.  Circle doesn't make sense for non-Magery spells!
Alot of the spellweaving spells added to OSI standards.
This commit is contained in:
asayre 2007-05-26 03:12:41 +00:00
parent f12e9745c6
commit 2ad37d54aa
214 changed files with 4881 additions and 1243 deletions

View file

@ -11,6 +11,8 @@ using Server.ContextMenus;
using Server.Engines.Quests;
using Server.Engines.Quests.Necro;
using MoveImpl=Server.Movement.MovementImpl;
using Server.Spells;
using Server.Spells.Spellweaving;
namespace Server.Mobiles
{
@ -1486,7 +1488,7 @@ namespace Server.Mobiles
if( aggr.IsDeadBondedPet || !aggr.Alive )
continue;
double aggrScore = m_Mobile.GetValueFrom( aggr, FightMode.Closest, false );
double aggrScore = m_Mobile.GetFightModeRanking( aggr, FightMode.Closest, false );
if( (newCombatant == null || aggrScore > newScore) && m_Mobile.InLOS( aggr ) )
{
@ -2484,6 +2486,10 @@ namespace Server.Mobiles
if ( bFacFoe && !m_Mobile.IsEnemy( m ) )
continue;
//Ignore anyone under EtherealVoyage
if( TransformationSpellHelper.UnderTransformation( m, typeof( EtherealVoyageSpell ) ) )
continue;
if( acqType == FightMode.Aggressor || acqType == FightMode.Evil )
{
// Only acquire this mobile if it attacked us, or if it's evil.
@ -2516,7 +2522,7 @@ namespace Server.Mobiles
if ( bFacFoe && !bFacFriend && !m_Mobile.CanBeHarmful( m, false ) )
continue;
theirVal = m_Mobile.GetValueFrom( m, acqType, bPlayerOnly );
theirVal = m_Mobile.GetFightModeRanking( m, acqType, bPlayerOnly );
if( theirVal > val && m_Mobile.InLOS( m ) )
{

View file

@ -13,6 +13,7 @@ using Server.ContextMenus;
using Server.Engines.Quests;
using Server.Factions;
using Server.Spells.Bushido;
using Server.Spells.Spellweaving;
namespace Server.Mobiles
{
@ -758,6 +759,9 @@ namespace Server.Mobiles
if ( !(m is BaseCreature) || m is Server.Engines.Quests.Haven.MilitiaFighter )
return true;
if( TransformationSpellHelper.UnderTransformation( m, typeof( EtherealVoyageSpell ) ) )
return false;
BaseCreature c = (BaseCreature)m;
return ( m_iTeam != c.m_iTeam || ( (m_bSummoned || m_bControlled) != (c.m_bSummoned || c.m_bControlled) )/* || c.Combatant == this*/ );
@ -2519,15 +2523,13 @@ namespace Server.Mobiles
this.PublicOverheadMessage( MessageType.Regular, 41, false, String.Format( format, args ) );
}
/*
* Will need to be givent a better name
*
/*
* This function can be overriden.. so a "Strongest" mobile, can have a different definition depending
* on who check for value
* -Could add a FightMode.Prefered
*
*/
public virtual double GetValueFrom( Mobile m, FightMode acqType, bool bPlayerOnly )
public virtual double GetFightModeRanking( Mobile m, FightMode acqType, bool bPlayerOnly )
{
if ( ( bPlayerOnly && m.Player ) || !bPlayerOnly )
{
@ -2549,7 +2551,7 @@ namespace Server.Mobiles
}
}
// Turn, - for let, + for right
// Turn, - for left, + for right
// Basic for now, needs work
public virtual void Turn(int iTurnSteps)
{
@ -4159,6 +4161,8 @@ namespace Server.Mobiles
this.OwnerAbandonTime = DateTime.MinValue;
}
GiftOfLifeSpell.HandleDeath( this );
CheckStatTimers();
}
else