///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Taming do dungu (Hůl na mávnutí) // ///////////////////////////////////////////////////////////////////////// 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_1779635062 { [Executable] public void taming_r() { if (UO.Count(0x1088, 0x0B18) == 0) { UO.PrintWarning("Nemas Tamming Neclac"); } if (UO.Count(0x13F4, 0x0B2D) == 0) { UO.PrintWarning("Nemas Tamming hul"); } UO.UseType(0x1088, 0x0B18); UO.Wait(200); UO.UseType(0x13F4, 0x0B2D); UO.Wait(125); seber_animalka_u(); UO.Print("Hotovo madam ;-)"); } void seber_animalka_u() { ushort[] lootItem = new ushort[14]; lootItem[0] = 0x2121; lootItem[1] = 0x2120; lootItem[2] = 0x211F; lootItem[3] = 0x2124; lootItem[4] = 0x20F6; lootItem[5] = 0x2137; lootItem[6] = 0x2126; lootItem[7] = 0x2127; lootItem[8] = 0x2135; lootItem[9] = 0x20E1; // polar bear lootItem[10] = 0x20F7; // panther, walrus lootItem[11] = 0x2119; // leopard/snow leopard1 lootItem[12] = 0x2102; // leopard/snow leopard2 lootItem[13] = 0x211D; // eagle for (int i = 0; i < 14; i++) { UOItem lootItemSeber = World.Ground.FindType(lootItem[i]); if (lootItemSeber.Exist) { UO.MoveItem(lootItemSeber, 1, Aliases.Backpack, 165, 55); UO.Print("lootItem cislo {0} sebran", i); return; } } UO.Wait(50); for (int i = 0; i < 14; i++) { UOItem lootItemSeber = World.Ground.FindType(lootItem[i]); if (lootItemSeber.Exist) { UO.MoveItem(lootItemSeber, 1, Aliases.Backpack, 165, 55); UO.Print("lootItem cislo {0} sebran", i); return; } } UO.Print("Zadny item k sebrani"); } } }