Carpentry - Barel Staves
Datum: 5/04/2013 23:44:26
Staženo: 528x
Od našeho kamaráda, který si přeje být anonymní ;-) děkujeme
Příkazy:
- ,exec kraftibarelstaves
Kód:
using System; using System.Collections.Generic; using System.Text; using Phoenix.WorldData; using Phoenix.Runtime; using Phoenix; namespace Phoenix.Script { public class carpsteavs { public static void EnsureItem(UOItem item) { if (String.IsNullOrEmpty(item.Name)) item.Click(); UO.Wait(800); } public static void EnsureContainer(UOItem container) { EnsureItem(container); container.Use(); UO.Wait(500); } [Executable] public static void kraftibarelstaves() { EnsureContainer(UO.Backpack); UOItem pilka = UO.Backpack.Items.FindType(0x1035 , 0x0000); if (pilka.Serial == Serial.Invalid) { pilka = World.Player.Layers.FindType(0x1035, 0x0000); if (pilka.Serial == Serial.Invalid) { UO.Print("Nemas pilku:"); return; } } UO.Print("Zvol konterjner s logy:"); UOItem container = new UOItem(UIManager.TargetObject()); EnsureContainer(container); UOItem logs = null; if ((logs = container.Items.FindType(0x1BDD, 0x0000)) == null) { UO.Print("DoslyLogy:"); return; } int count = logs.Amount; for (int i = 0; i < count; i++) { UOItem log = GetLog(container); if (log.Serial == Serial.Invalid) { UO.Print("Invalid:"); return; } UO.Print("sychr " + i); // UO.WaitTargetObject(log); UO.WaitMenu( "Carpentry", "Containers & Cont. parts", "Containers & Cont. parts", "Barrel Staves" ); UO.UseObject(pilka); JournalEventWaiter jew = new JournalEventWaiter(true, "You put"); jew.Wait(5000); UOItem craftedItem = UO.Backpack.Items.FindType(0x1EB1 , 0x0000); if (craftedItem.Serial != Serial.Invalid) { UO.Backpack.Items.FindType(0x1EB1 , 0x0000).Move(3, container); UO.Wait(500); } } } public static UOItem GetLog(UOItem container) { UOItem log = null; if ((log = UO.Backpack.Items.FindType(0x1BDD, 0x0000)).Serial != Serial.Invalid) return log; container.Items.FindType(0x1BDD, 0x0000).Move(3, UO.Backpack); UO.Wait(500); UO.Print("1"); return UO.Backpack.Items.FindType(0x1BDD, 0x0000); } } }
I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article...When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your.Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome!Thanks for sharing the such information with us to read this...We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. situs baccarat online