コード例 #1
0
        public override TEffectResult onStart(L2Character caster, world.L2Character target)
        {
            L2Player      player   = caster as L2Player;
            CubicTemplate template = CubicController.getController().getCubic(id, lvl);

            Cubic cub = new Cubic(player, template);

            player.AddCubic(cub, false);

            return(new TEffectResult().AsTotalUI());
        }
コード例 #2
0
ファイル: SummonCubic.cs プロジェクト: Guardian820/L2dotNET
        public override EffectResult OnStart(L2Character caster, L2Character target)
        {
            if (!(caster is L2Player))
            {
                return(new EffectResult().AsTotalUi());
            }

            L2Player      player   = (L2Player)caster;
            CubicTemplate template = CubicController.GetController().GetCubic(_id, _lvl);
            Cubic         cub      = new Cubic(player, template);

            player.AddCubic(cub, false);

            return(new EffectResult().AsTotalUi());
        }