Objects.dll: http://dl.dropbox.com/u/7651700/fena/Objects.dll
,loot
- loot ze zeme
- pokud je posledni otevreny container mrtvola a neni to human body, rizne
- lootuje loot bag + regy
Kód: Vybrat vše
[Command]
public void loot()
{
/* Pouzivat k rezani draw knife? Defaultne pouzivani ekvipnute zbrane*/
int draw = 1;
/* 0 = pouzivani ekvipnute zbrane 1 = pouzivani draw knife */
ushort[] loot = new ushort[18];
loot[0] = 0x0E76; //bag
loot[1] = 0x0F87; //eon
loot[2] = 0x0F84; //garlic
loot[3] = 0x0F7A; //blackpearls
loot[4] = 0x0F8C; //sulforous ash
loot[5] = 0x0F85; //Ginseng
loot[6] = 0x0F86; //mandrake root
loot[7] = 0x0F88; //Nightshade
loot[8] = 0x0F7B; //Blood Moss
loot[9] = 0x0F8D; //spider silk
loot[10] = 0x0F7D; //Blood Vial
loot[11] = 0x0F83; //Execution's Cap
loot[12] = 0x0F79; //Blackmoor
loot[13] = 0x0F89; //Obsidian
loot[14] = 0x0F7E; //Bone
loot[15] = 0x0F7F; //Brimstone
loot[16] = 0x0F7C; //BloodSpawn
loot[17] = 0x1BD1; //peri
for (int i = 0; i < loot.Length; i++)
{
foreach (UOItem item in from q in World.Ground where q.Distance < 5 && q.Graphic == loot[i] select q)
{
item.Move(0, World.Player.Backpack);
UO.Wait(500);
UO.Print("Lootim ze zeme!");
}
}
UOItem lootCorpse = World.GetItem(Aliases.LastObject);
if (lootCorpse.Graphic == 0x2006)
{
lootCorpse.Use();
if (((draw ==1) && (World.Player.Backpack.AllItems.Count(0x10E4, 0x0000) > 0)) || (World.Player.Layers[Layer.RightHand].Exist))
{
if ((lootCorpse.Amount != 400) && (lootCorpse.Amount != 401))
{
if (draw == 0)
{
UO.WaitTargetObject(lootCorpse);
UO.UseObject(World.Player.Layers[Layer.RightHand].Serial);
}
else
{
UO.WaitTargetObject(lootCorpse);
UO.UseType(0x10E4);
}
UO.Wait(500);
}
}
else
UO.Print("Neni cim rezat, pouze lootim...");
for (int i = 0; i < loot.Length; i++)
{
if (lootCorpse.Items.Count(loot[i]) > 0)
{
UO.MoveItem(lootCorpse.Items.FindType(loot[i]), 0, World.Player.Backpack);
UO.Wait(500);
}
}
UO.Print("Loot finished.");
}
}