Uklid RR,GRR,GGR

Datum: 22/11/2014 23:23:39

Staženo: 307x

Popis:

~BOT~ LOCATION ID: 29399243353


Hodnocení: 3.4/10 (12 hlasy)

Download file:cs

Příkazy:

  • ,uklid_rr
  • ,uklid_grr
  • ,uklid_ggr

Kód:

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 prstynkys
	{
        private const ushort ring_type = 0x108A; // all same is!

        private const ushort rr = 0x0496; 
        private const ushort grr = 0x0B21; 
        private const ushort ggr = 0x0000; 


      [Command]
      public void uklid_RR()
      {

          UO.PrintInformation("Uklidit do boxu RR");
          UO.Wait(300);
          UO.PrintInformation("Target RING BAG."); 
          UOItem ringbag = new UOItem(UIManager.TargetObject());

          if(!ringbag.Exist)
          { UO.PrintInformation("Spatny target no ..."); return; }
          foreach (UOItem prsten in from c in ringbag.AllItems where c.Graphic == ring_type && c.Color == rr select c)
          {
              prsten.Move(0, World.Player.Backpack);
              UO.Wait(100);
              if (World.Player.Backpack.AllItems.Count(0x09A8, 0x049F) > 0)
              {
                  UOItem greenbox = World.Player.Backpack.AllItems.FindType(0x09A8, 0x049F);
                  UO.WaitTargetObject(prsten.Serial);
                  UO.UseObject(greenbox.Serial);

              }
              else { UO.Print("Nemas Box vypnimam"); return; }
          }
 
        }

      [Command]
      public void uklid_GRR()
      {

          UO.PrintInformation("Uklidit do boxu GRR");
          UO.Wait(300);
          UO.PrintInformation("Target RING BAG.");
          UOItem ringbag = new UOItem(UIManager.TargetObject());

          if (!ringbag.Exist)
          { UO.PrintInformation("Spatny target no ..."); return; }

          foreach (UOItem prsten in from c in ringbag.AllItems where c.Graphic == ring_type && c.Color == grr select c)
          {
              prsten.Move(0, World.Player.Backpack);
              UO.Wait(100);
              if (World.Player.Backpack.AllItems.Count(0x09A8, 0x049F) > 0)
              {
                  UOItem greenbox = World.Player.Backpack.AllItems.FindType(0x09A8, 0x049F);
                  UO.WaitTargetObject(prsten.Serial);
                  UO.UseObject(greenbox.Serial);

              }
              else { UO.Print("Nemas Box vypnimam"); return; }
          }

      }

      [Command]
      public void uklid_GGR()
      {

          UO.PrintInformation("Uklidit do boxu GGR");
          UO.Wait(300);
          UO.PrintInformation("Target RING BAG.");
          UOItem ringbag = new UOItem(UIManager.TargetObject());

          if (!ringbag.Exist)
          { UO.PrintInformation("Spatny target no ..."); return; }

          foreach (UOItem prsten in from c in ringbag.AllItems where c.Graphic == ring_type && c.Color == ggr select c)
          {
              prsten.Move(0, World.Player.Backpack);
              UO.Wait(100);
             // prsten.Click();
              //UO.Wait(200);
               
              if (World.Player.Backpack.AllItems.Count(0x09A8, 0x049F) > 0)
              {
                  UOItem greenbox = World.Player.Backpack.AllItems.FindType(0x09A8, 0x049F);
                // if (prsten.Name == "Great Gold Ring")
                 // {
                      UO.WaitTargetObject(prsten.Serial);
                      UO.UseObject(greenbox.Serial);
                //  }
                //  else { UO.Print("Toto neni: a Great Gold Ring"); }
                 
                   

              }
              else { UO.Print("Nemas Box vypnimam"); return; }
          }

      }
	}
}
	
	 
Zde ještě není žádný komentář.

Nový komentář