///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Archery + Heal // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; namespace Script.Rang { public class archerko { [Executable] public static void ranger_archery_train() {//by smoce UO.PrintInformation("Target koho mas strilet !"); UOCharacter user = new UOCharacter(UIManager.TargetObject()); while(!UO.Dead) { if(UO.Count(0x0F3F) < 1) { World.Player.Print("Dosli ti strely !!!"); } if (user.Hits >= 50) { UO.Attack(user.Serial); UO.Wait(4000); // <---- toto je rychlost strileni !! } else { World.Player.ChangeWarmode(0); UO.Wait(2000); } } } [Executable] public static void ranger_archery_heal() {//by smoce UO.PrintInformation("Heal pri Archery..."); UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21); int hp,stav = World.Player.Hits; if (UO.Count(0x0E21) < 1) { UO.PrintWarning("Dosli ti Bandy !!!"); } while (!UO.Dead && UO.Count(0x0E21) > 0) { if(World.Player.Hits < World.Player.MaxHits) { stav = World.Player.Hits; UO.DeleteJournal(); UO.Print("-Heal"); UO.WaitTargetObject(World.Player.Serial); bandage.Use(); string[] asdas = { "Chces vytvorit mumii?", "You put the bloody bandagess in your pack.", "You apply the bandages, but they barely help." }; Journal.WaitForText(asdas); UO.Wait(500); hp = World.Player.Hits - stav; World.Player.Print("+"+ hp.ToString() ); } } } } }