///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Cooking - rybí steaky z pytlíku // ///////////////////////////////////////////////////////////////////////// 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_1779634896 {[Executable] public void cooking() { ushort amount = 100; // po kolika budem smazit int i; UO.Print("Klikni si na batoh."); UOItem backpack = new UOItem(UIManager.TargetObject()); UO.Print("Vyber pytlik se steaky."); UOItem bag = new UOItem(UIManager.TargetObject()); UO.Print("Vyber panvicku."); UOItem magickaPanvicka = new UOItem(UIManager.TargetObject()); while ( (bag.AllItems.FindType(0x097A, 0x0000)).Amount >= amount ) { (bag.AllItems.FindType(0x097A, 0x0000)).Move(amount, backpack); UO.Wait(2000); for ( i = 0; i < amount; i++ ) { UO.DeleteJournal(); UO.WaitTargetType(0x097A, 0x0000); UO.UseObject( magickaPanvicka ); Journal.WaitForText("...akce skoncila"); UO.Wait(500); } (World.Player.Backpack.AllItems.FindType(0x097B, 0x0000)).Move((ushort)UO.Count(0x097B, 0x0000), bag); } UO.Print("Musis mit vic jak "+ amount +" steaku. Konec scriptu."); } } }