///////////////////////////////////////////////////////////////////////// // // www.ultima.smoce.net // Name: Craft-Ocarovani // ///////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using Phoenix; using Phoenix.WorldData; using System.Text; using System.Windows.Forms; using System.Diagnostics; using System.Runtime.InteropServices; using Phoenix.Gui; namespace Scripts.DarkParadis.ocarovani { public class ocarovanicko { [Executable] public void craft_ocarovani() { //Sebrani ocarovaneho pytliku int sebrat = 0; // 1- ano 0- ne ushort Loot_pytel = 0x0E76; // Color: 0x049A Graphic: 0x0E76 ushort Loot_pytel_color = 0x049A; ushort Blood_Dust = 0x103D; // Type=0x103D ushort Blood_Dust_color = 0x0280;//Colour: 0x0280 ushort Blood_ing=0x103D; ushort Blood_ing_color = 0x0280; UOItem lootCorpse = World.GetItem(Aliases.GetObject("lastcontainer")); lootCorpse.Use(); if (lootCorpse.Items.Count(Loot_pytel,Loot_pytel_color) > 0) { if (UO.Count(Blood_ing, Blood_ing_color) > 0) { UO.Print(0x00B3, "Nalezen LOOT - Pytlik ocarovavam!"); UO.WaitTargetObject(lootCorpse.Items.FindType(Loot_pytel, Loot_pytel_color)); UO.UseType(Blood_Dust, Blood_Dust_color); UO.Print(0x00B3, "Zbyva ti Ingu: " + UO.Count(Blood_ing, Blood_ing_color)); UO.Wait(200); if(sebrat == 1) { UO.MoveItem(lootCorpse.Items.FindType(Loot_pytel, Loot_pytel_color).Serial,0,World.Player.Backpack); } } else { UO.Print(0x0435, "Nemas u sebe INGY!!! - KONEC"); } } else { UO.Print("Zde neni nic k Ocarovani."); } } } }