I have added items to xmlquestnakednpc to a questable guard, what I want is when I add a tunic, how do I add a hue just to that one item? Can it be done?

Here is the line of code:
AddItem(new Tunic());
 
Code:
Tunic _tunic = new Tunic();
_tunic.Hue = 12345;

AddItem(_tunic);
or
Code:
Tunic _tunic = new Tunic(Hue = 12345);

AddItem(_tunic);
Or

Code:
AddItem(new Tunic(Hue = 12345));
 
wow, thanks.
And somehow I forgot what the title was because I had another question in mind.
oooops

I using the OwnerStone.cs and when I go to use it I hide before the animations start. How would I slow it down so I hide during or near the end of the animations?

Code:
using System;
using Server;
using System.Reflection;
using Server.Network;
using Server.Commands;

namespace Server.Commands
{
   public class OwnerHideCommand
   {
     public static void Initialize()
     {
       CommandSystem.Register( "FHide", AccessLevel.Counselor, new CommandEventHandler( FHide_OnCommand ) );
     }

     [Usage( "FHide" )]
     [Description( "Hides and Shows a gm with a Flame efect." )]
     private static void FHide_OnCommand( CommandEventArgs e )
     {
    
       Mobile m = e.Mobile;
       m.PlaySound( 0x208 );

    Effects.SendLocationEffect(new Point3D(m.X, m.Y, m.Z + 1), m.Map, 0x3709, 12 ); // 0
    Effects.SendLocationEffect(new Point3D(m.X + 1, m.Y - 1, m.Z), m.Map, 0x3709, 13 ); // 1
    Effects.SendLocationEffect(new Point3D(m.X + 1, m.Y + 1, m.Z), m.Map, 0x3709, 13 ); // 3
    Effects.SendLocationEffect(new Point3D(m.X - 1, m.Y + 1, m.Z), m.Map, 0x3709, 13 ); // 5
    Effects.SendLocationEffect(new Point3D(m.X - 1, m.Y - 1, m.Z), m.Map, 0x3709, 13 ); // 7
      Effects.SendLocationEffect(new Point3D(m.X + 2, m.Y - 2, m.Z), m.Map, 0x3709, 14 ); // 1
      Effects.SendLocationEffect(new Point3D(m.X + 2, m.Y + 2, m.Z), m.Map, 0x3709, 14 ); // 3
      Effects.SendLocationEffect(new Point3D(m.X - 2, m.Y + 2, m.Z), m.Map, 0x3709, 14 ); // 5
      Effects.SendLocationEffect(new Point3D(m.X - 2, m.Y - 2, m.Z), m.Map, 0x3709, 14 ); // 7
   
    if( e.Mobile.Hidden == false )
         e.Mobile.Hidden = true;
       else
         e.Mobile.Hidden = false;
     }
   }
}
 
Last edited:
You will need to make a timer that will fire when you need it. Search for a guide on timers.
 
Back