Loot systém

Datum: 22/11/2014 23:47:50

Staženo: 1128x

Popis:

~BOT~ id: 286736282


Hodnocení: 3.6/10 (102 hlasy)

Download file:cs

Příkazy:

  • ,exec [blockmultipleexecutions ""loot""
  • ,exec loot

Kód:

using System;
using System.Collections.Generic;
using Phoenix;
using Phoenix.WorldData;

namespace Scripts.DarkParadise
{
    public class Loot
    {
        public const ushort SpidersSilk = 0x0F8D;
        public const ushort Bag = 0x0E76;
        public const ushort Corpse = 0x2006;

        [Executable]
        [BlockMultipleExecutions("loot")]
        public void CutAll()
        {
            UOItem lHand = World.Player.Layers[Layer.LeftHand];
            UOItem rHand = World.Player.Layers[Layer.RightHand];

            UOItem cutter = World.Player.Backpack.AllItems.FindType(0x10E4,0x0B80);

            if (!cutter.Exist) {
                ScriptErrorException.Throw("Cannot find anything to cut with.");
                return;
            }

            foreach (UOItem item in World.Ground) {
                if (item.Graphic == Corpse) {
                    Notoriety notoriety = CorpsesNotoriety.Get(item, 5000);

                            item.WaitTarget();
                            cutter.Use();
                            UO.Wait(1000); // TODO
/*
                    switch (notoriety) {
                        case Notoriety.Unknown:
                            UO.PrintWarning("Unknown notoriety of {0}. Corpse skipped.", item);
                            break;

                        case Notoriety.Criminal:
                        case Notoriety.Murderer:
                        case Notoriety.Neutral:
                            item.WaitTarget();
                            cutter.Use();
                            UO.Wait(1000); // TODO
                            break;

                        default:
                            break;
                    }
*/
                }
            }

            lHand.Equip();
            rHand.Equip();
        }

        private struct ItemType
        {
            public ItemType(Graphic graphic, UOColor color)
            {
                Graphic = graphic;
                Color = color;
            }

            public Graphic Graphic;
            public UOColor Color;
        }

        private List<ItemType> lootTypes;

        public Loot()
        {
            lootTypes = new List<ItemType>();

            /*
            AddType(0x0F8D, UOColor.Invariant); // SS
            AddType(0x0EED, UOColor.Invariant); // Gold Coins
            AddType(0x0F7B, UOColor.Invariant); // BM
            AddType(0x0F7A, UOColor.Invariant); // BP
            AddType(0x0F84, UOColor.Invariant); // GA
            AddType(0x0F85, UOColor.Invariant); // GI
            AddType(0x0F86, UOColor.Invariant); // MR
            AddType(0x0F88, UOColor.Invariant); // NS
            AddType(0x0F8C, UOColor.Invariant); // SA
            AddType(0x0F79, UOColor.Invariant); // Blackmoor
            AddType(0x1bd1, UOColor.Invariant); // Peri
            AddType(0x0F78, UOColor.Invariant); // Batwings
            AddType(0x0F87, UOColor.Invariant); // Eyes of Newt
            AddType(0x14EB, UOColor.Invariant); // Treassure Map
             * */
            AddType(0x0E80, UOColor.Invariant); // Poklad
            AddType(0x0F3F, UOColor.Invariant); // Arrow
            AddType(0x1BFB, UOColor.Invariant); // Bolt
            AddType(0x0E76, UOColor.Invariant); // Pytlik
            AddType(0x097A, UOColor.Invariant); // Alligator Hide
            AddType(0x097B, UOColor.Invariant); // Snake skin
            AddType(0x097C, UOColor.Invariant); // nevim, treba dalsi trofej
            AddType(0x097D, UOColor.Invariant); // nevim, treba dalsi trofej
            AddType(0x097E, 0x0037); // a Wolf Pelt
            AddType(0x1bd1, UOColor.Invariant); // Peri
            /*
            AddType(0x0E34, UOColor.Invariant); // Blank Scroll
            AddType(0x0F20, UOColor.Invariant); // Tourmaline
            AddType(0x0F8E, UOColor.Invariant); // Serpent Scales
            AddType(0x0F79, UOColor.Invariant); // Blackmoor
            AddType(0x0F91, UOColor.Invariant); // Wyrms Heart
            AddType(0x0F83, UOColor.Invariant); // Executioner's Cap
            AddType(0x108A, UOColor.Invariant); // Ring
            AddType(0x1086, UOColor.Invariant); // Bracelet
            AddType(0x1088, UOColor.Invariant); // Neclase
            AddType(0x1848, UOColor.Invariant); // Elixir
            AddType(0x0F7E, UOColor.Invariant); // 
            AddType(0x139A, UOColor.Invariant); // Statue
            AddType(0x0F82, UOColor.Invariant); // 
            AddType(0x0F7D, UOColor.Invariant); // 
            AddType(0x0E9C, UOColor.Invariant); // Drums
            AddType(0x0EB2, UOColor.Invariant); // Harp
            AddType(0x0EB2, UOColor.Invariant); // Lute
            AddType(0x14ED, UOColor.Invariant); // Deed 1
            AddType(0x14EE, UOColor.Invariant); // Deed 2
            AddType(0x0F7F, UOColor.Invariant); // 
            AddType(0x0F7C, UOColor.Invariant); // 
            AddType(0x0F79, UOColor.Invariant); // 
            AddType(0x0F89, UOColor.Invariant); // 
            AddType(0x0F81, UOColor.Invariant); // 
            AddType(0x0FF4, UOColor.Invariant); // knihy
            AddType(0x136C, UOColor.Invariant); // HoDF, Myst. Stone
            // AddType(0x1F13, UOColor.Invariant); // skillpointy
            AddType(0x0F8F, UOColor.Invariant); // 
            AddType(0x0F8B, UOColor.Invariant); //

            AddType(0x1406, 0x031E); // a Stunning Warmace
            AddType(0x0D16, 0x00A3); // a Mystical Mushroom
            AddType(0x0DBD, 0x0B9F); // a Mystical Leaf
            AddType(0x1A9D, 0x0481); // a Mystical Stick
            AddType(0x0F5A, 0x0044); // a Mystic Crystal
            AddType(0x0E73, 0x0B9F); // a Mystical Ball
            AddType(0x0E26, 0x049D); // a Spirit of the Rain
            AddType(0x0F91, 0x014D); // Heart of Rainbow Dragon
            AddType(0x1420, 0x0152); // Cobwebby string
            AddType(0x097E, 0x0037); // a Wolf Pelt
            AddType(0x0CB0, 0x0899); // a Mystical Plant
            AddType(0x0DC3, 0x005B); // a Mystical Flower
            AddType(0x1F03, 0x0771); // Mage's robe
            AddType(0x1F03, 0x0455); // Death's robe, pozor, bere to i obyc roby
            AddType(0x13B9, 0x0480); // Ice Viking Sword
            AddType(0x09D0, 0x09B4); // God's Apple
            AddType(0x13FC, 0x0237); // Elven Heavy Crossbow
            AddType(0x379F, 0x0055); // Elfi tetiva
            AddType(0x108B, 0x0BB5); // a Mystical Beeds
            AddType(0x0DC3, 0x005B); // a Mystical Flower
             * */
        }

        public void AddType(Graphic graphic, UOColor color)
        {
            lootTypes.Add(new ItemType(graphic, color));
        }

        [Executable("loot")]
        [BlockMultipleExecutions("loot")]
        public void Run()
        {
            if (!Aliases.RecevingContainer.IsValid) {
                ScriptErrorException.Throw("RecevingContainer not set.");
            }

            ScriptErrorException.ExceptionEnabled = false;
            World.FindDistance = 6;

            UO.PrintInformation("Loot started");
            CutAll();
            UIManager.Reset();
            LootCollection(World.Ground, true);

            UO.PrintInformation("Loot finished");
        }

        private bool CheckCorpse(UOItem item)
        {
            //                                         male    female  imp     garga
            //ushort[] forbiddenCorpses = new ushort[] { 0x0190, 0x0191, 0x0027, 0x0004 };
            // return Array.IndexOf<ushort>(forbiddenCorpses, item.Amount) < 0;

            Notoriety n = CorpsesNotoriety.Get(item, 2000);
            return n != Notoriety.Innocent && n != Notoriety.Guild && n != Notoriety.Unknown;
        }

        private void LootCollection(ItemsCollection collection, bool ignoreSingleSS)
        {
            foreach (UOItem item in collection) {
                /*
                if (item.Graphic == Bag) {
                    using (ItemOpenedEventWaiter ew = new ItemOpenedEventWaiter(item)) {
                        if (!item.Opened) {
                            item.Use();
                            if (ew.Wait(2000))
                                UO.Wait(500);
                        }
                    }

                    UO.EmptyContainer(1000, item);
                }
                else */
                if (item.Graphic == Corpse) {
                    if (CheckCorpse(item)) {
                        if (!item.Opened) {
                            item.Use();
                            UO.Wait(1000);
                        }

                        LootCollection(item.Items, false);
                    }
                }
                else if (ignoreSingleSS && item.Graphic == SpidersSilk && item.Color == 0 && item.Amount < 2) {
                    continue;
                }
                else if (lootTypes.Contains(new ItemType(item.Graphic, item.Color))) {
                    bool ground = item.Container == 0;
                    int pause = ground ? 250 : 2000;

                    using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(item)) {
                        Journal.Clear();
                        if (item.Grab() && ew.Wait(3000)) {
                            UO.Wait(pause);

                            if (!ground) {
                                Journal.WaitForText(true, 2000, "akce skoncila");
                            }
                        }
                    }

                    UO.Wait(50);
                }
            }
        }
    }
}

Strana: 1d,15,16,17,18,19,20,21,22,23,24,25,26
megagame
05 Oct 2022

เว็บไซต์เกมสล็อตออนไลน์ ยอดฮิต 2022 เล่นสล็อตไม่มีเบื่อ สล็อตแตกง่าย เว็บหลักเปิดให้บริการตลอด 24 ชั่วโมง เว็บตรงเป็นผู้ให้บริการเกมสล็อต และการเดิมพันออนไลน์สุดมันส์ สมัครสมาชิกเลยแจกโปรเพียบ slotรวมเกม

pg slot
04 Oct 2022

เว็บทดลองสล็อต ทดลองเล่นบาคาร่าพร้อมทั้งสามารถที่จะเล่นคาสิโนได้ฟรี ไม่ต้องสมัคร ไม่ต้องแชร์

pg slot
04 Oct 2022

ทดลองเล่นสล็อตฟรี PG SLOT เกมออนไลน์ทดลองสล็อตฟรี พีจีสล็อต ไม่ต้องเสียเงิน แถมแจกฟรีเครดิต pg slot เว็บหลัก

pg slot
04 Oct 2022

ทดลองเล่นสล็อตฟรีถอนได้ แหล่งรวมสล็อตทุกค่ายเกมฟรี รวบรวมเกมสล็อตที่น่าสนใจให้ทุกท่านได้ทดลองเล่นไม่อั้น

pg slot
04 Oct 2022

treasures of aztec

pg slot
04 Oct 2022

ทดลองเล่นสล็อต เมก้าเกม สามารถเล่นฟรีเครดิต เกมล่าสุดของค่าย PGสล็อตออนไลน์ พร้อมแล้วที่จะให้บริการรเกมออนไลน์ ซึ่งเป็นที่รับความนิยมอย่างสูงในตอนนี้ ทดลองเล่นสล็อต pg สาวถ้ำ

19 Sep 2022

ต้องหาจุดอ่อนบาคาร่า autobet การเล่นเกม บาคาร่า ไม่ว่าจะเป็นการเล่นเกมที่ AUTOBETCASINO หรือเป็นการเล่นเกมกับเว็บไหนก็ตาม

19 Sep 2022

เว็บรวมเกม ที่ดีที่สุดในปี 2022 ที่มาพร้อมกับระบบ สล็อตทุกค่ายเกม easyslot เปิดให้บริการตลอด 24 ชั่วโมง

19 Aug 2022

จีคลับ slot เป็นเมนูที่รวบรวมเอาเกมสล็อตไว้ทั้งหมดกว่า 100 เกม gclub คัดสรรมาเฉพาะเกมยอดฮิต และโบนัสแตกง่ายทั้งนั้น ทุกเกมมีให้ทดลองเล่นฟรีทั้งหมด เข้าใช้งานสะดวก ด้วยเมนูที่เป็นภาษาไทยทั้งหมด megagame

15 Aug 2022

This is the blog post accurately what I was seeking. Many owings for offering this practical ideas with attractive selection of words.

15 Aug 2022

I enjoy to read your posts because of your appealing recommendations provided in the blog post that not merely please however also assist us learn lots of details.

12 Aug 2022

It has never been easy to buy Counterfeit money online. Especially the top quality that can be used in many places. We also offer discrete and secure shipping to most countries across the globe. CONTACT DETAILS Website ... https://buyundetectedcounterfeitbmoney.com/ Email ... counterfeiterjames@mail.com  Buy CAD 100$ Bills Online    Buy AUD 10 Bills Online   Buy NZD $20 Bills Buy NZD$100 Bills Online buy aud 10 bills online Buy AUD 50 Bills Online  BUY $100 AUD Bills online    Where to buy AUD $20 BILLS online    Buy Counterfeit US Dollars Online    Buy USD $100 Bills online    Buy usd 50 bills online    Buy usd 10 bills online    buy USD $20 Bills online   Buy USD 5 Bills Online  Buy GBP £10 Bills online   Buy GBP 50$ Bills Online buy gbp 5 bills online Buy €100 bills online  Buy Euro €20 Bills online   buy counterfeit euro e200 bills online Buy €50 Euro Bills online buy United Arab Emirates Dirham Buy AED د.إ100 online Buy د.إ500 AED Bills Buy AED 1000 Online Buy AED د.إ20 online Buy fake South African rand online Buy Rand 100 Bills Online Buy Rand 20 Bills Online buy Rand R50 online  buy Canadian Dollars bills online    Buy cad 10$ bills online    buy counterfeit 20 canadian dollar bills    Buy CAD $50 Bills Online    Buy new zealand dollars      Buy Counterfeit Money Online      Counterfeit 100 dollar bills Canadian      Undetectable Counterfeit Banknotes        Buy counterfeit euro bills online       Buy Counterfeit us dollar online      Buy fake cad for sale online      Buy fake CAD notes      Buy undetectable counterfeit money at home    is buying counterfeit money illegal?      Best counterfeit money    Buy Counterfeit Australian Dollars Online   Buy Fake Euro Banknotes Online   Buy Counterfeit British pounds online   Buy high quality counterfeit money online   Buy counterfeit Canadian dollar online   Buy counterfeit money online Alabama   Buy fake Canadian notes online    Buy CAD 100$ Bills Online   Canadian Dollar money that looks real   buy counterfeit money online    buy counterfeit money online   buy fake canadian dollars online   buy counterfeit money canada   where can i buy counterfeit money online    Buy CAD 100$ Bills Online    where can i buy counterfeit money online   best place to buy counterfeit money

Aashir
27 Jul 2022

Open multiple URLs with the help of url opener tool that is designed to lessen the effort and to show the better results in short time.

26 Jul 2022

I praise every assessment furnished in this guide. Hopefully others will certainly also prefer to take a look at it.

24 Jul 2022

ในวงการคาสิโนออนไลน์นี้คงไม่มีผู้เล่นคนไหน ไม่รู้จัก betflix เพื่อสร้างความเชื่อใจและไว้ใจในการบริการของ BETFLIK68 ด้วยการจัดโปรโมชั่น ให้ได้ร่วมลุ้นในทุกเดือน

22 Jul 2022

At The Sidewalk Repair, our contractors are providing the best quality services at an extremely affordable rate. Their services have reach the standard of perfection, and they never fail to impress you with their services. Other than these qualities, our contractor’s exhibit immense professionalism paired with highly friendly communication skills. This makes them the first choice of so many people when it comes to nyc concrete contractors. They have respectfully held this reputation for over years and they continue to do so. Our ambitions make us work harder each day,which results in the best quality services for our valuable customers. Searching for the best concrete contractor in nyc? Then give us a call: (914) 313 3989 or you can also visit us at The Sidewalk Repair 2294 Hanover Street New York, NY 10007.

21 Jul 2022

ทางเว็บของเราเป็นผู้ให้การบริการ เว็บสล็อตออนไลน์ megagame168.co ที่คอยให้บริการท่านทั้งหลาย ที่ไม่เอารัดเอาเปรียบผู้ใช้บริการไม่เอาเปรียบต่อสังคมและสภาพแวดล้อมต่อคนรอบข้าง เว็บสล็อตออนไลน์ สล็อตที่มาครบทั้งหมด จบในที่เดียว เราพัฒนาให้เป็นเว็บสล็อตที่รองรับกับผู้ใช้งานทุกคน

jacob
20 Jul 2022

uwatchfree movies and get trailers of the upcoming movies. Watch quality trailers and select the movie that creates curiosity. Visit uwatchfree movies, providing millions of movie trailers, announcing movie releasing dates with characters bio. Movies done by different actors have been divided into seperate categories, making you find movies of your favorite actor or actress easily. Top movies, section introduces hit movies in years they were released or all time hit movies. Playtubes

Aleesha
20 Jul 2022

Extraordinary post shared and also expecting such type of article in the future as it is pretty necessary as well as illuminative. Best Sex Toys Shop

18 Jul 2022

Betflixvip168 ด้วยระบบ PG SLOT AUTO ที่เปิดให้เพื่อนๆ ทุกท่านได้เข้าใช้งาน ฝาก-ถอน ฟรี ไม่มีขั้นต่ำ ตลอด 24 ชม. โดยไม่มีวันหยุด และ เพื่อนๆสามารถ สอบถามข้อมูล betflix game หรือ สอบถามรายละเอียดได้ ตลอดเวลา slotfun 168 รวมสล็อตทุกค่ายในเว็บเดียว เครดิตฟรี

Strana: 1d,15,16,17,18,19,20,21,22,23,24,25,26

Nový komentář