Пример #1
0
        public override EffectResult OnStart(L2Character caster, L2Character target)
        {
            if (target is L2Player)
            {
                TransformManager.GetInstance().TransformTo(_transformId, (L2Player)target, -1);
            }

            return(Nothing);
        }
Пример #2
0
 protected internal override void Use(L2Player admin, string alias)
 {
     if (alias.Split(' ')[1].EqualsIgnoreCase("on"))
     {
         int id      = int.Parse(alias.Split(' ')[2]);
         int seconds = int.Parse(alias.Split(' ')[3]);
         TransformManager.GetInstance().TransformTo(id, admin, seconds);
     }
     else
     {
         admin.Untransform();
     }
 }