Carpentry - Barel Lid

Datum: 5/04/2013 23:43:37

Staženo: 583x

Popis:

Od našeho kamaráda , který si nepřeje být odhalen


  • Aktuálně: 4.05/10

Hodnocení: 4.0/10 (164 hlasy)

Download file:cs

Příkazy:

  • ,exec kraftibarellid

Kód:

using System;
using System.Collections.Generic;
using System.Text;
using Phoenix.WorldData;
using Phoenix.Runtime;
using Phoenix;


namespace Phoenix.Script
{
  public class barellid
  {
    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 kraftibarellid()
    {
      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 Prkny:");
      UOItem container = new UOItem(UIManager.TargetObject());
      EnsureContainer(container);
      UOItem logs = null;
      if ((logs = container.Items.FindType(0x1BD7, 0x0000)) == null)
      {
        UO.Print("Dosly Boards:");
        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 Lid" );
        UO.UseObject(pilka);
        JournalEventWaiter jew = new JournalEventWaiter(true, "You put");
        jew.Wait(5000);
        UOItem craftedItem = UO.Backpack.Items.FindType(0x1DB8, 0x0000);
        if (craftedItem.Serial != Serial.Invalid)
        {
           UO.Backpack.Items.FindType(0x1DB8, 0x0000).Move(3, container);
           UO.Wait(500);

        }
        
        
      }
    }

    public static UOItem GetLog(UOItem container)
    {
      UOItem log = null;
      if ((log = UO.Backpack.Items.FindType(0x1BD7, 0x0000)).Serial != Serial.Invalid) return log;
      container.Items.FindType(0x1BD7, 0x0000).Move(2, UO.Backpack);
      UO.Wait(500);
      UO.Print("1");
      return UO.Backpack.Items.FindType(0x1BD7, 0x0000);
    }
  }
}

seo
04 Apr 2025

Ten blog jest dla mnie bardzo miły. Będę tu zaglądać raz po raz. Odwiedź również mój link. Podziwiam czas i wysiłek, jaki wkładasz w swojego bloga i szczegółowe informacje, które oferujesz! Bardzo fajny artykuł, przyjemnie czytało mi się twój post, bardzo miłe udostępnienie, chcę tweetować o tym do moich obserwatorów. Dzięki! Naprawdę uwielbiałam czytać twojego bloga. Był bardzo dobrze napisany i łatwy do zrozumienia. Chciałabym ci podziękować za wysiłki, jakie włożyłeś w napisanie tego artykułu. Mam nadzieję, że w przyszłości będziesz równie dobrze pracował. Dzięki... orising lotion

seo
04 Apr 2025

Mi piace decisamente ogni piccola parte. È un sito fantastico e una bella condivisione. Voglio ringraziarvi. Bel lavoro! Voi ragazzi fate un blog fantastico e avete dei contenuti fantastici. Continuate così. Bel articolo di acquisizione di conoscenze. Questo post è davvero il migliore su questo prezioso argomento. Wonder Eye

seo
23 Mar 2025

I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.Thank you because you have been willing to share information with us. Chuan Park

seo
11 Dec 2024

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too.I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site. https://www.posterprintcenter.com/

seooo
28 Sep 2022

i never know the use of adobe shadow until i saw this post. thank you for this! this is very helpful.Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home.I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.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... pg slot online

Nový komentář