ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Just wondering why the Evolution Hiryu, Evolution Horse and Evolution Swamp Dragon say ( That is not a Evolution Creature ) when you do [kp on them?
 
Thank you for that,

In your KPCommand.cs this entire section is commented out:
C#:
                /*else if ( obj is EvolutionHiryu && obj is BaseCreature )// Hiryu
                {
                    BaseCreature bc = (BaseCreature)obj;
                    EvolutionHiryu eh = (EvolutionHiryu)obj;

                    if ( eh.Controlled == true && eh.ControlMaster == from )
                    {
                        eh.PublicOverheadMessage( MessageType.Regular, eh.SpeechHue, true, eh.Name +" has "+ eh.KP +" kill points.", false );
                    }
                    else
                    {
                        from.SendMessage( "You do not control this Hiryu!" );
                    }
                }
                else if ( obj is EvolutionHorse && obj is BaseCreature ) //Horse addon
                {
                    BaseCreature bc = (BaseCreature)obj;
                    EvolutionHorse eh = (EvolutionHorse)obj;

                    if ( eh.Controlled == true && eh.ControlMaster == from )
                    {
                        eh.PublicOverheadMessage( MessageType.Regular, eh.SpeechHue, true, eh.Name +" has "+ eh.KP +" kill points.", false );
                    }
                    else
                    {
                        from.SendMessage( "You do not control this Horse!" );
                    }
                }
                else if ( obj is EvolutionSwampDragon && obj is BaseCreature ) //Swamp Dragon addon
                {
                    BaseCreature bc = (BaseCreature)obj;
                    EvolutionSwampDragon eh = (EvolutionSwampDragon)obj;

                    if ( eh.Controlled == true && eh.ControlMaster == from )
                    {
                        eh.PublicOverheadMessage( MessageType.Regular, eh.SpeechHue, true, eh.Name +" has "+ eh.KP +" kill points.", false );
                    }
                    else
                    {
                        from.SendMessage( "You do not control this swamp Dragon!" );
                    }
                }/*/
This is why those 3 mobs don't get recognized when using [kp
 
Thank you for that,

In your KPCommand.cs this entire section is commented out:
C#:
                /*else if ( obj is EvolutionHiryu && obj is BaseCreature )// Hiryu
                {
                    BaseCreature bc = (BaseCreature)obj;
                    EvolutionHiryu eh = (EvolutionHiryu)obj;

                    if ( eh.Controlled == true && eh.ControlMaster == from )
                    {
                        eh.PublicOverheadMessage( MessageType.Regular, eh.SpeechHue, true, eh.Name +" has "+ eh.KP +" kill points.", false );
                    }
                    else
                    {
                        from.SendMessage( "You do not control this Hiryu!" );
                    }
                }
                else if ( obj is EvolutionHorse && obj is BaseCreature ) //Horse addon
                {
                    BaseCreature bc = (BaseCreature)obj;
                    EvolutionHorse eh = (EvolutionHorse)obj;

                    if ( eh.Controlled == true && eh.ControlMaster == from )
                    {
                        eh.PublicOverheadMessage( MessageType.Regular, eh.SpeechHue, true, eh.Name +" has "+ eh.KP +" kill points.", false );
                    }
                    else
                    {
                        from.SendMessage( "You do not control this Horse!" );
                    }
                }
                else if ( obj is EvolutionSwampDragon && obj is BaseCreature ) //Swamp Dragon addon
                {
                    BaseCreature bc = (BaseCreature)obj;
                    EvolutionSwampDragon eh = (EvolutionSwampDragon)obj;

                    if ( eh.Controlled == true && eh.ControlMaster == from )
                    {
                        eh.PublicOverheadMessage( MessageType.Regular, eh.SpeechHue, true, eh.Name +" has "+ eh.KP +" kill points.", false );
                    }
                    else
                    {
                        from.SendMessage( "You do not control this swamp Dragon!" );
                    }
                }/*/
This is why those 3 mobs don't get recognized when using [kp
Yea I know I had to fix that and the KPCommand.cs :) Now I made 3 new [kp evos lol
 
Back