DarkSkull

Datum: 27/07/2011 12:16:16

Staženo: 496x

Popis:

Nekro Mystik


Hodnocení: 3.5/10 (120 hlasy)

Download file:cs

Příkazy:

  • ,exec darkskull

Kód:


           [Executable]
        public void DarkSkull()
        {
            if (World.Player.Backpack.AllItems.Count(0x1F0B) > 0)
            {
                UOItem skull = World.Player.Backpack.AllItems.FindType(0x1F0B);
                using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(skull)) {
                                skull.Use();
                                if (!ew.Wait(5000)) {
                                    ScriptErrorException.Throw("Nemuzu oblect Dark skull, konec scriptu.");
                                    return;
                                }
                            }
            }
            else
            {
                UO.PrintObject(World.Player.Serial, 0x0025, "Nemas Dark Skull");
            }
            if (World.Player.Backpack.AllItems.Count(0x1451) > 0)
            {
                UOItem skull = World.Player.Backpack.AllItems.FindType(0x1451);
                using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(skull)) {
                                skull.Use();
                                if (!ew.Wait(5000)) {
                                    ScriptErrorException.Throw("Nemuzu oblect necro helmu, konec scriptu.");
                                    return;
                                }
                            }
            }
            else
            {
                UO.PrintObject(World.Player.Serial, 0x0025, "Nemas necro helmu");
            }
        }  
Zde ještě není žádný komentář.

Nový komentář