Alchemy - Lesser Potiont
Datum: 23/04/2013 20:53:25
Staženo: 1214x
Příkazy:
- ,exec alchemy_univerzal_limit
Kód:
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
using System.Linq;
namespace Phoenix.Scripts
{
public class smoce_dilna
{
private const int pocet_regu_po_dokonceni = 2; // nastavuje , po kolikika NS regu skoncit (nastaveno pro leser pot)
[Executable]
public static void alchemy_univerzal_limit()
{
UO.PrintInformation("Univerzal Alchemy Script.");
UO.Wait(300);
UO.PrintInformation("Target BAG s regy.");
UOItem asd = new UOItem(UIManager.TargetObject());
UO.Wait(500);
UO.PrintInformation("Target Regy.");
UOItem regy = new UOItem(UIManager.TargetObject());
UO.Wait(500);
UO.PrintInformation("Target Kad.");
UOItem kad = new UOItem(UIManager.TargetObject());
UO.Wait(500);
UO.PrintInformation("Target hotovej potiont.");
UOItem pot = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Graphic reggrap = regy.Graphic;
UOColor regcol = regy.Color;
Graphic potgrap = pot.Graphic;
UOColor potcol = pot.Color;
UO.Print("Dej si do baglu kad , minimalne 2 lahvicky a regy.");
UO.Wait(1000);
ushort regy_pamet = regy.Graphic;
zacatek:
if (UO.Count(regy.Graphic, regy.Color) > pocet_regu_po_dokonceni)
{
UO.Print("Mas toho moc u sebe");
MoveItem(new UOItem(World.Player.Backpack.AllItems.FindType(regy.Graphic, regy.Color)), 0, new UOItem(regy.Container));
UO.Wait(2000);
}
else
{
UO.Print("Beru si ");
UOItem sasdsa = new UOItem(asd.AllItems.FindType(regy_pamet));
MoveItem(sasdsa, pocet_regu_po_dokonceni, new UOItem(World.Player.Serial));
UO.Wait(500);
}
if (UO.Count(0x0F0E) == 0)
{
UO.Print("Neni Lahev");
UO.Print("Neni Lahev .... vypinam MAKRO !!!");
UO.TerminateAll();
}
else
{
UO.Print("Mam Lahev");
}
UO.DeleteJournal();
UOItem sfdsfds = new UOItem(World.Player.Backpack.AllItems.FindType(reggrap, regcol));
sfdsfds.Use();
string[] petrolej = { "You toss", "You pour the completed potion into a bottle" };
Journal.WaitForText(petrolej);
UO.Wait(500);
while (UO.Count(potgrap, potcol) > 1)
{
UO.Print("Nalezen Potiont, prelivam do Kade");
UOItem sdsda = new UOItem(World.Player.Backpack.AllItems.FindType(potgrap, potcol));
UO.WaitTargetObject(sdsda.Serial);
UO.UseType(kad.Graphic,kad.Color);
UO.Wait(1000);
}
UO.Wait(500);
goto zacatek;
}
private static void MoveItem(UOItem item, int count, UOItem dest)
{
if (!item.Exist)
return;
ushort tomove = Math.Min((ushort)Math.Abs(count), item.Amount);
using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(item))
{
item.Move(tomove, dest);
if (ew.Wait(5000))
UO.PrintInformation(item.Graphic + " - " + tomove);
UO.Wait(500);
}
}
}
}


สล็อตเว็บตรง แห่งปี ห้ามพลาด นี่คือเว็บทดลองเล่นสล็อตที่ดีที่สุดในปี 2026 ทดลองเล่นสล็อต