Carpentry - Barel Staves

Datum: 5/04/2013 23:44:26

Staženo: 528x

Popis:

Od našeho kamaráda, který si přeje být anonymní ;-) děkujeme


Hodnocení: 3.8/10 (148 hlasy)

Download file:cs

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);
    }
  }
}

Strana: 1d,6,7,8,9,10,11,12,13,14,15,16,17
seo
02 Jan 2023

Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home.This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good workI wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. slotxo ฟรีเครดิต

seo
02 Jan 2023

I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks!I guess I am not the only one having all the enjoyment here keep up the good work. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. ทางเข้า joker slot

seo
02 Jan 2023

Thank you because you have been willing to share information with us. The post is written in very a good manner and it contains many useful information for me.I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? slot online

Strana: 1d,6,7,8,9,10,11,12,13,14,15,16,17

Nový komentář