for the LIFE of me, and it might be inthe core(hope not) I can NOT get this bonding gate to work:/
in base creature, right around line 2878 in base creature I have placed:
The original first statement is:
if ( TestCenter.Enabled )
which I don't want it only to work with the Test Center Enabled, so I tried the Core.TOL, !TestCenter.Enabled.....
and now I am not sure what to try. The Bonding Gate Script is SUPER basic...
I am going to keep trying things, but I am sure this has to do with the mass updates from when this was released and what is running the server now.
Any assistance is greatly appreciated!
Shazzy
in base creature, right around line 2878 in base creature I have placed:
Code:
#region PetBondingGate
if ( Core.TOL )
{
IPooledEnumerable inRange = from.Map.GetItemsInRange( from.Location, 5 );
foreach ( Item trg in inRange )
{
PetBondingGate pbg = trg as PetBondingGate;
if ( pbg != null && pbg.Location == from.Location && pbg.Location == Location && !IsBonded )
{
IsBonded = true;
BondingBegin = DateTime.MinValue;
from.SendLocalizedMessage( 1049666 ); // Your pet has bonded with you!
}
}
}
#endregion
The original first statement is:
if ( TestCenter.Enabled )
which I don't want it only to work with the Test Center Enabled, so I tried the Core.TOL, !TestCenter.Enabled.....
and now I am not sure what to try. The Bonding Gate Script is SUPER basic...
Code:
using System;
using Server;
using Server.Mobiles;
namespace Server.Items
{
public class PetBondingGate : Item
{
[Constructable]
public PetBondingGate()
: base( 0xF6C )
{
Light = LightType.Circle300;
Hue = 0x314;
Name = "Pet Bonding Gate";
Movable = false;
}
public override bool OnMoveOver( Mobile m )
{
m.FixedParticles( 0x375A, 10, 15, 5037, EffectLayer.Waist );
return true;
}
public override void OnDoubleClick( Mobile from )
{
if ( !from.Player )
{
return;
}
from.FixedParticles( 0x375A, 10, 15, 5037, EffectLayer.Waist );
}
public PetBondingGate( Serial serial )
: base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */
reader.ReadInt();
}
}
}
I am going to keep trying things, but I am sure this has to do with the mass updates from when this was released and what is running the server now.
Any assistance is greatly appreciated!
Shazzy
Last edited: