Change Weapon

Datum: 27/07/2011 12:00:03

Staženo: 828x

Popis:

Změní zbraň po stisknnutí hotky...


Hodnocení: 3.4/10 (113 hlasy)

Download file:cs

Příkazy:

  • ,exec changeweapon

Kód:

 private List<Serial> weaponList = new List<Serial>();
 

        [Executable]
        public void ChangeWeapon()
        {
            Graphic[] zbrane = new Graphic[26];
            zbrane[0] = 0x1438; // war hammer
            zbrane[1] = 0x1404; // war fork
            zbrane[2] = 0x0F5C; // mace
            zbrane[3] = 0x0F62; // spear
            zbrane[4] = 0x0F4B; // double axe
            zbrane[5] = 0x0F60; // longsword
            zbrane[6] = 0x143A; // maul
            zbrane[7] = 0x1406; // war mace
            zbrane[8] = 0x13FA; // LBA
            zbrane[9] = 0x1400; // kryss
            zbrane[10] = 0x13FC; // heavy crossbow
            zbrane[11] = 0x13B1; // bow
            zbrane[12] = 0x143E; // halberd
            zbrane[13] = 0x0F4D; // bardiche
            zbrane[14] = 0x13FE; // katana
            zbrane[15] = 0x13B9; // viking sword
            zbrane[16] = 0x13B5; // battle axe
            zbrane[17] = 0x0F5E; // broadsword
            zbrane[18] = 0x1402; // short spear
            zbrane[19] = 0x143C; // hammer pick
            zbrane[20] = 0x0F4F; // crossbow
            zbrane[21] = 0x1442; // two handed axe
            zbrane[22] = 0x0F49; // axe
            zbrane[23] = 0x0F47; // battle axe
            foreach (UOItem zbran in World.Player.Backpack.AllItems)
            {
                for (int i = 0; i < zbrane.Length; i++)
                {
                    if (zbran.Graphic == zbrane[i])
                    {
                        if (!weaponList.Contains(zbran.Serial))
                        {
                            weaponList.Add(zbran.Serial);
                            zbran.Equip();
                            return;
                        }
                    }
                }
            }
            weaponList.Clear();
            ChangeWeapon();
        }
Zde ještě není žádný komentář.

Nový komentář