///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Train boj // ///////////////////////////////////////////////////////////////////////// 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); } } } } }