Lotování drahých věcí

Datum: 22/11/2014 23:58:44

Staženo: 173x

Popis:

Lotování

 

autor nevím..


Hodnocení: 4.2/10 (21 hlasy)

Download file:cs

Příkazy:

  • ,exec lootdrahe
  • ,exec lootdulezite

Kód:

[Executable]
        public void LootDrahe()
        {
            ushort[] interestedItem = new ushort[26];
            interestedItem[0] = 0x1438; // war hammer
            interestedItem[1] = 0x1404; // war fork
            interestedItem[2] = 0x0F5C; // mace
            interestedItem[3] = 0x0F62; // spear
            interestedItem[4] = 0x0F4B; // double axe
            interestedItem[5] = 0x0F60; // longsword
            interestedItem[6] = 0x143A; // maul
            interestedItem[7] = 0x1406; // war mace
            interestedItem[8] = 0x13FA; // LBA
            interestedItem[9] = 0x1400; // kryss
            interestedItem[10] = 0x13FC; // heavy crossbow
            interestedItem[11] = 0x13B1; // bow
            interestedItem[12] = 0x143E; // halberd
            interestedItem[13] = 0x0F4D; // bardiche
            interestedItem[14] = 0x13FE; // katana
            interestedItem[15] = 0x13B9; // viking sword
            interestedItem[16] = 0x13B5; // battle axe
            interestedItem[17] = 0x0F5E; // broadsword
            interestedItem[18] = 0x1402; // short spear
            interestedItem[19] = 0x143C; // hammer pick
            interestedItem[20] = 0x0F4F; // crossbow
            interestedItem[21] = 0x1442; // two handed axe
            interestedItem[22] = 0x0F49; // axe
            interestedItem[23] = 0x0F47; // battle axe
            interestedItem[24] =  0x0E76; // bag
         interestedItem[25] = 0x108A; // ring
            UOItem lootCorpse = World.GetItem(Aliases.GetObject("lastcorpse"));
            lootCorpse.Use();
            for (int i = 0; i < 26; i++)
            {
                if (lootCorpse.Items.Count(interestedItem[i]) > 0)
                {
                    UO.MoveItem(lootCorpse.Items.FindType(interestedItem[i]), 1, World.Player.Backpack);
                    UO.Print("Item sebran!");
                    return;
                }
            }
            UO.Print("Zde neni nic k sebrani.");
        }

        [Executable]
        public void LootDulezite()
        {
            ushort[] interestedItem = new ushort[9];
            interestedItem[0] = 0x0F7A; // bp
            interestedItem[1] = 0x0F7B; // bm
            interestedItem[2] = 0x0F84; // ga
            interestedItem[3] = 0x0F85; // gi
            interestedItem[4] = 0x0F86; // mr
            interestedItem[5] = 0x0F88; // ns
            interestedItem[6] = 0x0F8C; // sa
            interestedItem[7] = 0x0F8D; // ss
            interestedItem[8] = 0x1F5F; // KVF
            UOItem lootCorpse = World.GetItem(Aliases.GetObject("lastcorpse"));
            lootCorpse.Use();
            for (int i = 0; i < 9; i++)
            {
                if (lootCorpse.Items.Count(interestedItem[i]) > 0)
                {
                    UO.MoveItem(lootCorpse.Items.FindType(interestedItem[i]), 10000, World.Player.Backpack);
                    UO.Print("Item sebran!");
                    return;
                }
            }
            UO.Print("Zde neni nic k sebrani.");
        }

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

Nový komentář