Train boj

Datum: 22/11/2014 23:21:35

Staženo: 323x

Popis:

Nepamatuji, že bych to dělal, ale unlock.. na boj 2 lidí ...


Hodnocení: 3.3/10 (72 hlasy)

Download file:cs

Příkazy:

  • ,exec boj2

Kód:

using System;
using System.Collections.Generic;
using Phoenix;
using Phoenix.WorldData;
using System.Linq;

namespace Scripts.DarkParadise
{
    public class Trening2
    {
        [Executable]
        public void BOJ2()
        {
            UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21);
            UO.Print(0x0435, "Vyber supera!");
            UOCharacter dezko = new UOCharacter(UIManager.TargetObject());
            UO.AddObject("dezko", dezko);
            while (!World.Player.Dead)
            {                
                    if (World.Player.Hits < 50)
                    { 
                        while (World.Player.Hits < World.Player.MaxHits)
                        {
                            UO.DeleteJournal();
                            UO.WaitTargetSelf();
                            bandage.Use();
                            string[] asdas = { "Chces vytvorit", "You put", "You apply" };
                            Journal.WaitForText(asdas);
                        } 
                    }
                    if (dezko.Hits < 50)
                    {
                        while (dezko.Hits < dezko.MaxHits)
                        {
                            UO.DeleteJournal();
                            UO.WaitTargetObject(dezko.Serial);
                            bandage.Use();
                            string[] asdas = { "Chces vytvorit", "You put", "You apply" };
                            Journal.WaitForText(asdas);
                        }   
                    }
                    else 
                    {
                        UO.Attack(Aliases.GetObject("dezko"));
                        UO.DeleteJournal();
                        UO.Print(0x0435, "UTOCIM!!!");
                        UO.Wait(4000);
                        string[] asdas = { "UTOCIM" };
                        Journal.WaitForText(asdas);
                    }
            }
        }
    }
}

Nový komentář