LockPiking
Datum: 20/06/2012 22:25:21
Staženo: 723x
Popis:
train
Příkazy:
- ,exec lock_train
Kód:
[Executable]
public static void lock_train()
{
UO.PrintInformation("Lock Train Secure");
UO.Wait(300);
UO.PrintInformation("Targetni tu starovekou truhlu!");
UOItem truhla = new UOItem(UIManager.TargetObject());
UO.Wait(500);
UO.PrintInformation("Targetni BAG s Lockpicky!");
UOItem lockpick = new UOItem(UIManager.TargetObject());
UO.Wait(500);
aaaa:
while (UO.Count(0x14fb) >= 1)
{
UO.DeleteJournal();
opakuj:
do
{
UO.DeleteJournal();
UO.WaitTargetObject(truhla.Serial);
UO.UseType(0x14fb);
UO.Wait(2000);
}
while (UO.InJournal("attempt to unlock"));
if (UO.InJournal("item cannot be"))
{
UO.WaitTargetObject(truhla.Serial);
UO.UseType(0x100e);
}
UO.Wait(2000);
goto opakuj;
}
if(UO.Count(0x14fb) == 0)
{
UOItem oss = new UOItem(lockpick.AllItems.FindType(0x14fb));
UO.MoveItem(oss.Serial,100,World.Player.Backpack);
UO.Print("beru si locky s pytle 100ks"); UO.Wait(1000);
}
goto aaaa;
}

