Fishing by Wizzy

Datum: 5/04/2013 16:43:10

Staženo: 1495x

Popis:

Autorem je Wizzy...

 

Přidáno 5.4.2013 rybky na medvěda


Hodnocení: 3.8/10 (136 hlasy)

Download file:cs

Příkazy:

  • ,exec fishing

Kód:

 [Executable]
        public void fishing()
        {
            ushort[] ryba = new ushort[13];
            ushort[] cryba = new ushort[13];
            string hid, steaky, bagl;
            /*  *************************  */
            /*  Nastaveni - "Ano" / "Ne"   */
            /*  *************************  */

            /*         Hidovat ?           */
            hid = "ano";

            /* Rezat ryby a sbirat steaky? */
            steaky = "ne";

            /* Ukladat do specialni baglu? */
            bagl = "ne";

            /*  *************************  */


            ryba[0] = 0x09CC;
            ryba[1] = 0x09CD;
            ryba[2] = 0x09CE;
            ryba[3] = 0x09CF;
            ryba[4] = 0x09CD;
            ryba[5] = 0x09CD;
            ryba[6] = 0x09CD;
            ryba[7] = 0x099B;
            ryba[8] = 0x097A;
            ryba[9] = 0x09CD;
            ryba[10] = 0x09CD;
            ryba[11] = 0x09CD;
            ryba[12] = 0x099B;
 
            cryba[0] = 0x0000;
            cryba[1] = 0x0000;
            cryba[2] = 0x0000;
            cryba[3] = 0x0000;
            cryba[4] = 0x0850;
            cryba[5] = 0x0482;
            cryba[6] = 0x084C;
            cryba[7] = 0x0000;
            cryba[8] = 0x0000;
            cryba[9] = 0x0000;
            cryba[10] = 0x0B7C;
            cryba[11] = 0x0799;
            cryba[12] = 0x08A4;

            hid = hid.ToUpper();
            steaky = steaky.ToUpper();
            bagl = bagl.ToUpper();

            UOItem b = new UOItem(Aliases.GetObject("fishbag"));
            if (!(b.Exist) && (bagl == "ANO"))
            {
                UO.Print(0x480, "Nastav bagl kam maji padat ryby:");
                UO.Exec("addobjectzalozkascript", "fishbag", UIManager.TargetObject());
            }

            UO.PrintWarning("Hiding: {0}, Sbirani steaku: {1}, Bagl: {2}", hid, steaky, bagl);

            while (!World.Player.Dead)
            {
                if ((World.Player.Backpack.AllItems.Count(0x0DBF, 0x0000) > 0) || (World.Player.Layers[Layer.LeftHand].Graphic == 0x0DBF))
                {
                    UO.DeleteJournal();
                    for (int x = -6; x < 7; x++)
                    {
                        for (int y = -6; y < 7; y++)
                        {
                            UO.DeleteJournal();
                            do
                            {
                                if (hid == "ANO")
                                {
                                    while (!World.Player.Hidden)
                                    {
                                        UO.UseSkill("Hiding");
                                        UO.Wait(1000);
                                        if (UO.InJournal("preoccupied with"))
                                        {
                                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                                            UO.Wait(500);
                                            if (!World.Player.Hidden) UO.UseSkill("Hiding");
                                        }
                                        UO.Wait(1500);
                                        Journal.WaitForText("hidden yourself well", "to hide here.", "preoccupied with");
                                    }

                                }

                                UO.DeleteJournal();
                                UO.PrintWarning("Chytam na {0}, {1}", x, y);
                                UO.WaitTargetTileRel(x, y, World.Player.Z, 0);
                                UO.UseType(0x0DBF);
                                UO.Wait(1500);

                                Journal.WaitForText("no fish here", "location", "far away", "in water", "You pull", "You fish a while");
                                if (UO.InJournal("Kraken") || UO.InJournal("Sea Serpent"))
                                {
                                    while (!(UO.InJournal("pokracovat")))
                                    {
                                        UO.Print(SpeechFont.Bold, 0x0481, "Detekovano monstrum");
                                        UO.Wait(10000);
                                    }
                                }
                                if (UO.InJournal("no fish here"))
                                {
                                    if (steaky == "ANO")
                                    {
                                        for (int i = 0; i < 5; i++)
                                        {
                                            if (!(World.Player.Layers[Layer.RightHand].Graphic == 0x0F51))
                                            {
                                                UO.Print("oblikam kudlicku");
                                                UO.WaitTargetCancel();
                                                UO.UseType(0x0F51);
                                            }

                                            foreach (UOItem item in from q in World.Ground where q.Distance < 2 && q.Graphic == ryba[i] && q.Color == cryba[i] select q)
                                            {
                                                UO.WaitTargetObject(item.Serial);
                                                UO.UseObject(World.Player.Layers[Layer.RightHand].Serial);
                                                UO.Wait(500);
                                            }
                                        }
                                    }
                                }
                                for (int i = 4; i < 9; i++)
                                {
                                    foreach (UOItem item in from q in World.Ground where q.Distance < 2 && q.Graphic == ryba[i] && q.Color == cryba[i] select q)
                                    {
                                        if (bagl == "ANO")
                                        {
                                            item.Move(100, Aliases.GetObject("fishbag"));
                                        }
                                        else
                                        {
                                            item.Move(100, World.Player.Backpack);
                                        }
                                        UO.Wait(500);
                                    }
                                }
                            }
                            while (UO.InJournal("You pull") || UO.InJournal("You fish a while"));
                        }
                    }
                    UO.Print("-6x6 Vychytano!");
                    break;
                }
                else
                {
                    UO.Print("Nemas prut!");
                    break;
                }
            }
        }
Zde ještě není žádný komentář.

Nový komentář