///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Rune port // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; using System.Linq; using Phoenix.Communication; using Phoenix.Runtime; using Phoenix.Runtime.Reflection; namespace Scripts.DarkParadise { public class ultima_smoce_net_1779635034 { [Executable] public void RunePort(int runeNumber) { UO.DeleteJournal(); for (int i = runeNumber; i < 12; i++) { using (JournalEventWaiter ew = new JournalEventWaiter(true, "next")) { string rune = "rune" + i.ToString(); UO.WaitMenu("Jak chces runu pouzit?", "Recall"); UO.UseObject(Aliases.GetObject(rune)); if (i == 11) { UO.Print(SpeechFont.Bold, 0x0481, "Konec porteni."); return; } if (!ew.Wait(300000)) { UO.PrintWarning("Porting timeout."); return; } } } UO.Print("Konec porteni"); } [Executable] public void RunePortTarget() { UO.Print(SpeechFont.Bold, 0x0481, "Zamer runu na port."); UO.UseObject(World.GetItem(UIManager.TargetObject())); UO.WaitMenu("Jak chces runu pouzit?", "Recall"); } } }