///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Train Heal - 4 targety // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using Phoenix; using Phoenix.WorldData; using System.Linq; namespace Scripts.DarkParadise { public class Trening3 { [Executable] public void HEAL1() { UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21); UO.Print(0x0435, "Vyber raneneho 1!"); UOCharacter heal1 = new UOCharacter(UIManager.TargetObject()); UO.AddObject("Raneny1", heal1); UO.Print(0x0435, "Vyber raneneho 2!"); UOCharacter heal2 = new UOCharacter(UIManager.TargetObject()); UO.AddObject("Raneny2", heal2); UO.Print(0x0435, "Vyber raneneho 3!"); UOCharacter heal3 = new UOCharacter(UIManager.TargetObject()); UO.AddObject("Raneny3", heal3); UO.Print(0x0435, "Vyber raneneho 4!"); UOCharacter heal4 = new UOCharacter(UIManager.TargetObject()); UO.AddObject("Raneny4", heal4); while (!World.Player.Dead) { if (heal1.Hits < heal1.MaxHits) { UO.DeleteJournal(); UO.WaitTargetObject(heal1.Serial); bandage.Use(); string[] asdas = { "Chces vytvorit", "You put", "You apply" }; Journal.WaitForText(asdas); } if (heal2.Hits < heal2.MaxHits) { UO.DeleteJournal(); UO.WaitTargetObject(heal2.Serial); bandage.Use(); string[] asdas = { "Chces vytvorit", "You put", "You apply" }; Journal.WaitForText(asdas); } if (heal3.Hits < heal3.MaxHits) { UO.DeleteJournal(); UO.WaitTargetObject(heal3.Serial); bandage.Use(); string[] asdas = { "Chces vytvorit", "You put", "You apply" }; Journal.WaitForText(asdas); } if (heal4.Hits < heal4.MaxHits) { UO.DeleteJournal(); UO.WaitTargetObject(heal4.Serial); bandage.Use(); string[] asdas = { "Chces vytvorit", "You put", "You apply" }; Journal.WaitForText(asdas); } if ((heal1.Hits >= heal1.MaxHits)&&(heal2.Hits >= heal2.MaxHits)&&(heal3.Hits >= heal3.MaxHits)&&(heal4.Hits >= heal4.MaxHits)) { UO.DeleteJournal(); UO.Print(0x0435, "Vse OK! Stale v strehu!!!"); UO.Wait(1000); string[] asdas = { "Vse OK" }; Journal.WaitForText(asdas); } } } } }