Exemple #1
0
 private void btnTrainTest_Click(object sender, EventArgs e)
 {
     TrainTest(trainingType);
     trainedType        = trainingType;
     lblsystemType.Text = trainedType.ToString();
     btnCMatrix.Enabled = true;
 }
Exemple #2
0
    static public void  InsertHighScore(DateTime _date, float _score, int _tasksDone,
                                        int _tasksDoneRight, TaskType _taskType, float _time,
                                        TrainingType _trainingType, string _userName)
    {
        WWWForm form = new WWWForm();

        form.AddField("datePost", _date.ToShortDateString());
        form.AddField("iDPost", 0); // TODO get new ID
        form.AddField("scorePost", _score.ToString());
        form.AddField("tasksDonePost", _tasksDone);
        form.AddField("tasksDoneRightPost", _tasksDoneRight);
        form.AddField("taskTypePost", _taskType.ToString());
        form.AddField("timePost", _time.ToString());
        form.AddField("trainingTypePost", _trainingType.ToString());
        form.AddField("userNamePost", _userName);

        WWW itemsData = new WWW("http://uosis.mif.vu.lt/~mipu1566/highscoreInsert.php", form);
    }
Exemple #3
0
        public void OnSelected(TrainingType type, Mobile target)
        {
            if (type == TrainingType.AsOne && Caster is PlayerMobile && ((PlayerMobile)Caster).AllFollowers.Where(mob => mob != target).Count() == 0)
            {
                FinishSequence();
                return;
            }

            SpellType = type;
            Target    = target;

            _Phase = 0;

            BeginTimer();

            Target.FixedParticles(0x373A, 10, 80, 5018, 0, 0, EffectLayer.Waist);

            BuffInfo.AddBuff(Caster, new BuffInfo(BuffIcon.CombatTraining, 1155933, 1156107, String.Format("{0}\t{1}\t{2}", SpellType.ToString(), Target.Name, ((int)ScaleUpkeep()).ToString())));
            //You train ~2_NAME~ to use ~1_SKILLNAME~.<br>Mana Upkeep: ~3_COST~

            FinishSequence();
        }
Exemple #4
0
        public void OnSelected(TrainingType type, Mobile target)
        {
            SpellType = type;
            Target    = target;

            BeginTimer();
            Server.Timer.DelayCall(TimeSpan.FromSeconds(8), CheckDamage);

            Target.FixedParticles(0x373A, 10, 80, 5018, 0, 0, EffectLayer.Waist);

            BuffInfo.AddBuff(Caster, new BuffInfo(BuffIcon.CombatTraining, 1155933, 1156107, String.Format("{0}\t{1}\t{2}", SpellType.ToString(), Target.Name, ((int)ScaleUpkeep()).ToString())));
            //You train ~2_NAME~ to use ~1_SKILLNAME~.<br>Mana Upkeep: ~3_COST~

            FinishSequence();
        }