///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Přesun INGOTU do BAG (target BAG) // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; using System.Linq; using Phoenix; using Phoenix.WorldData; namespace Phoenix.Scripts { public class Mining_pomocnik_sjdhsa222 { [Command("PresunRudy")] public void Ruda_kam_hmm() { UO.PrintInformation("Kam presuneme Rudu?"); UOItem rudicka = new UOItem(UIManager.TargetObject()); UO.Wait(500); ushort[] vyhazovat = new ushort[18]; //1 vyhazovat //0 nechavat si vyhazovat[0] = 1; //Iron vyhazovat[1] = 1; //Copper vyhazovat[2] = 1; //Bronze vyhazovat[3] = 1; //Silver vyhazovat[4] = 1; //Shadow vyhazovat[5] = 1; //Rose vyhazovat[6] = 1; //Golden vyhazovat[7] = 1; //Verite vyhazovat[8] = 1; //Valorite vyhazovat[9] = 0; //Blood Rock vyhazovat[10] = 0; //Black Rock vyhazovat[11] = 0; //Mytheril vyhazovat[12] = 0; //Star Sapphire vyhazovat[13] = 0; //Emerald vyhazovat[14] = 0; //Citrine vyhazovat[15] = 0; //Amethyst vyhazovat[16] = 0; //Ruby vyhazovat[17] = 0; //Diamond ushort[] barva = new ushort[18]; barva[0] = 0x0000; //Iron barva[1] = 0x0289; //Copper barva[2] = 0x01BF; //Bronze barva[3] = 0x0482; //Silver barva[4] = 0x0322; //Shadow barva[5] = 0x0665; //Rose barva[6] = 0x0160; //Golden barva[7] = 0x01CB; //Verite barva[8] = 0x0253; //Valorite barva[9] = 0x04C2; //Blood Rock barva[10] = 0x0455; //Black Rock barva[11] = 0x052D; //Mytheril barva[12] = 0x0006; //Star Sapphire barva[13] = 0x0041; //Emerald barva[14] = 0x002C; //Citrine barva[15] = 0x0015; //Amethyst barva[16] = 0x0027; //Ruby barva[17] = 0x03E9; //Diamond ushort[] typ_ore = new ushort[4]; typ_ore[0] = 0x1BEF; // 1 for (int i = 0; i < 18; i++) { if (vyhazovat[i] == 1) { for (int o = 0; o < 1; o++) { if (World.Player.Backpack.AllItems.Count(typ_ore[o], barva[i]) > 0) { UO.MoveItem(World.Player.Backpack.AllItems.FindType(typ_ore[o], barva[i]), 0, rudicka.Serial); UO.Wait(500); } } } } } } }