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,2,3,4,5,6,7,8,9,10,11,12... 26
15 Jul 2024

https://nadineblyseth.com/ เล่นสล็อตจาก Pg Slot Gaming Company ได้ฟรีบนเว็บไซต์ของเรา เราขอแจ้งให้คุณทราบว่าเกมสล็อตทั้งหมดบนเว็บไซต์ของเราสามารถเล่นผ่านระบบอัตโนมัติที่ดีที่สุดได้ ผู้เข้าร่วมทุกคนสามารถถอนกำไรได้ 100% และยังสามารถลองเล่นสล็อตแมชชีนได้อีกด้วย นอกจากนี้เว็บไซต์ของเราไม่มีข้อจำกัด

15 Jul 2024

https://bvicompany.co/ สัมผัสความสนุกสนานในการลงทุนผ่านเกมสล็อตออนไลน์โดยตรงของเว็บไซต์นี้ซึ่งมีระบบอัตโนมัติเพื่อให้แน่ใจว่าการทำธุรกรรมสล็อตออนไลน์จะดำเนินการในวิธีที่สะดวกที่สุดเพื่อช่วยเหลือนักพนัน เพราะเป็นเว็บไซต์สล็อตที่ถูกลิขสิทธิ์แท้และถูกกฎหมาย 100% นอกจากนี้ คุณสามารถเข้าถึงบริการได้อย่างปลอดภัยโดยใช้ True Wallet

15 Jul 2024

https://cerebrums.in/ Spinners สามารถเข้ามาเล่นกับค่ายเกมสล็อต Pg ได้ฟรีบนเว็บไซต์ของเรา บอกเลยว่า เกมสล็อตทุกเกมบนเว็บไซต์ของเรา ใครๆ ก็เล่นได้ มีระบบออโต้ที่ดีที่สุด รับประกันว่าแตกง่ายทุกครั้ง ทุกคนสามารถลองเล่นเกม และสล็อตที่สามารถถอนออกได้ 100% เช่นเดียวกับ ไม่มีข้อจำกัดบนเว็บไซต์ของเรา

15 Jul 2024

https://hwtechnics.com/ การเล่นสล็อตออนไลน์ในปัจจุบัน เป็นที่นิยมอย่างมาก เข้าถึงเว็บได้โดยตรง สมาชิกใหม่ และ สมัครรับโบนัส เครดิตฟรี ไม่มีขั้นต่ำ โดยเฉพาะเว็บสล็อตออนไลน์ สล็อตออนไลน์เว็บตรง นำเสนอเกมที่สนุก และมีโอกาสชนะรางวัลมากกว่าครั้งแรก

15 Jul 2024

https://lepetitjurassien.com/ สล็อตออนไลน์ ในยุคที่เทคโนโลยีอินเทอร์เน็ตมีบทบาทสำคัญ ต่อชีวิตประจำวันของเรา การพนันออนไลน์ ก็เป็นหนึ่งในสิ่งที่เติบโตอย่างมาก และสล็อตออนไลน์กลายเป็นหนึ่งในเกมที่ได้รับความนิยมที่สุดในแพลตฟอร์มนี้ ด้วยความสะดวกสบาย ความหลากหลายของเกม และโปรโมชั่นที่น่าดึงดูด

15 Jul 2024

https://towsoccerclub.com/ เริ่มต้นเล่นเกมสล็อตออนไลน์ สล็อตเว็บตรง888 ในยุคที่เทคโนโลยีก้าวหน้าอย่างรวดเร็ว การเดิมพันออนไลน์ก็ได้รับความนิยมเพิ่มขึ้น อย่างมาก หนึ่งในรูปแบบที่ได้รับความนิยมสูงสุดคือ สล็อตเว็บตรง ไม่ผ่านเอเย่นต์ ซึ่งมีความโดดเด่นและเป็นที่สนใจของผู้เล่น ทั้งมือใหม่และมืออาชีพ สล็อตเว็บตรงเป็นทางเลือก ที่ทำให้การเดิมพันออนไลน์

15 Jul 2024

https://rueckbildungsgymnastik.net/ การเล่นเกมสล็อตออนไลน์ได้รับความนิยมอย่างแพร่หลายในปัจจุบัน PGSLOT 789 สล็อตเว็บตรง แจกเครดิตฟรี ไม่มีขั้นต่ำ แต่การเลือกเว็บไซต์ที่เหมาะสมสำหรับการเล่นสล็อตกลายเป็นเรื่องสำคัญที่สุด เพราะความปลอดภัยและความเชื่อถือของเว็บไซต์มีผลต่อประสบการณ์การเล่นของผู้เล่นอย่างมาก

15 Jul 2024

https://gracegardenschools.org/ ศูนย์รวมเกมสล็อตเว็บตรงอันดับ 1 พร้อมให้บริการผ่านเว็บ SLOT89 สล็อต เว็บตรงไม่ผ่านเอเย่นต์ แหล่งรวมเกมสล็อตชั้นนำระดับโลก ที่รวมเกมสล็อตทั้งหมด ส่งตรงจาก สล็อตเว็บตรงอันดับ1 เว็บแท้ลิขสิทธิ์หลัก แนะนำทางเข้าเกมสล็อตออนไลน์ สล็อตรวมค่าย เลือกเล่นได้ไม่อั้น เว็บใหญ่มาแรงที่มีเกมเดิมพัน

jokerz
14 Jul 2024

https://okanozkan.info/ การทดลองเล่นช่วยให้ผู้เล่นได้เรียนรู้กฎกติกาและฟีเจอร์ต่าง ๆ ของเกมสล็อต ซึ่งจะเป็นประโยชน์เมื่อเริ่มเล่นด้วยเงินจริง นอกจากนี้ยังช่วยให้ผู้เล่นได้เข้าใจถึงการทำงานของสัญลักษณ์พิเศษ เช่น Wilds และ Scatters รวมถึงโบนัสและฟรีสปิน

jokerz
14 Jul 2024

https://alavieskalainen.com/ เกมสล็อตออนไลน์ยังมาพร้อมกับฟีเจอร์พิเศษต่าง ๆ เช่น โบนัสฟรีสปิน รางวัลแจ็คพอต และมินิเกม ที่ทำให้การเล่นเกมมีความสนุกสนานและท้าทายมากยิ่งขึ้น นอกจากนี้ ผู้พัฒนาเกมยังนำเทคโนโลยีกราฟิกและเสียงที่ล้ำสมัยมาใช้ในการสร้างเกม ทำให้ผู้เล่นได้รับประสบการณ์ที่น่าตื่นเต้นและเพลิดเพลิน

jokerz
14 Jul 2024

https://lesexpertscomptables.me/ สล็อตออโต้ เติมเงินด้วยระบบออโต้ จึงทำให้เงินเข้าระบบอย่างรวดเร็ว ภายใน 10 วินาที ไม่ต้องรอนานให้เสียอารมณ์ เพราะเราเขียนระบบออโต้ ในการเติมเงินเอง ไม่ใช้ระบบอื่น เพื่ออำนวยความสะดวก ให้กับผู้เล่นทุกท่าน

jokerz
14 Jul 2024

https://bichonfriseclubofgb แจกฟรีสปินฟรี ให้กับสมาชิกใหม่ ให้สามารถเข้าฟรีได้ในการหมุนครั้งเดียว เป็นโปรโมชั่นให้กับสมาชิกใหม่ เพื่อที่จะสามารถต่อยอดเงินทุน ให้ไปเล่นเกมอื่นได้ง่ายๆ นั้นเองเรียกได้ว่า เติมปุ๊บ เล่นแล้วเข้าฟรีได้ทันที ไม่ต้องหมุนหลายครั้ง

jokerz
14 Jul 2024

https://visitvalencia.info/ สมัครรับโปรโมชั่น สล็อตได้ง่ายๆ ฝาก 10 รับ 100 และยังมีโปรโมชั่นสล็อตอีกมากมาย ให้ทุกท่านได้เลือก จะเป็นสมาชิกใหม่ หรือสมาชิกเก่า ก็สามารถที่จะกด รับโปรโมชั่นสล็อตต ได้ด้วยตัวเอง ง่ายๆ ไม่ต้องผ่านแอดมิน

jokerz
14 Jul 2024

https://ceeisa.org/ เว็บสล็อตเติมเงินง่าย ไม่ต้องโอนผ่านธนาคาร ใช้เพียงทรูวอลเลท ก็สามารถที่จะเติมเงินเข้าได้ง่ายๆ 1 บาท ก็เติมได้ไม่มีขั้นต่ำ เพราะเราเน้นให้ทุกท่าน สามารถเข้ามาทำเงินจากเกมสล็อต ของเราได้แบบ ง่ายๆนั้นเอง

jokerz
14 Jul 2024

https://fbceres.com/ เครดิตฟรี 50 บาทแจกทุกวัน กดรับเองไม่ต้องผ่านแอดมิน และยังมีกิจกรรมวงล้อ แจกเงินให้กับ ทุกคนที่เติมเงินครบตามเงื่อนไข อีกด้วยโดยที่เพียงทำครบ ตามเงื่อนไข ที่เรากำหนดไว้ ก็รับสิทธิ์ ในการหมุนวงล้อลุ้นเงิน แบบฟรีๆไปเลยนั่นเอง

jokerz
14 Jul 2024

https://bedandbreakfastmassa.com/ เว็บพนันออนไลน์ อันดับ 1 ของประเทศไทย จ่ายตรง ถอนง่าย เติมเงินไว และยังมีค่ายเกม ให้เลือกเล่นเยอะที่สุดในโลก พร้อมกับการซื้อฟรีสปิน ที่แตกง่ายเอามากๆ ไม่ต้องกลัวเล่นแล้วขาดทุน เพราะเราจ่ายหนัก แจกเครดิตฟรีทุกวันอีกด้วย

jokerz
14 Jul 2024

https://posrednikoff.net/ พีจี ออนไลน์ โดยตรงเว็บไซต์ใหม่ ฝากถอนโอนไวดูแลตลอดการเล่นเกมของลูกค้ารับโบนัสกับslot asia เล่นง่ายจ่ายเร็ว เว็บไซต์พวกเราเหมาะสมที่สุดในประเทศ เพราะเรานั้นเป็นสล็อตเว็บตรง ที่จะทำให้การเล่นสล็อตผ่านมือถือ เป็นเรื่องง่ายนั้นเอง

jokerz
14 Jul 2024

https://presspublish.info/ ทดลองเล่นสล็อตฟรี ไม่มีค่าใช้จ่าย เล่นง่ายไม่ต้องสมัครให้เสียเวลา และเรายังมีสล็อตให้เล่นฟรีทุกค่ายเกม นอกเหนือจาก pgslot ก็ยังมีทั้ง Pramatic Play Evoplay joker game และค่ายชื่อดังอื่นๆอีกมากมาย คอยให้บริการทุกท่าน

jokerz
14 Jul 2024

https://emigres.in/ เว็บคาสิโนออนไลน์ เล่นง่ายจ่ายจริง ไม่มีบิดจะกี่แสนเราก็จ่าย ไม่ต้องกลัวโกง เพราะเราเป็นสล็อตเว็บตรง จากทางค่ายไม่ใช่เอเจ้นที่เช่าระบบ มาเปิดเองจึงทำให้คุณ หมดกังวลเกี่ยวกับการจ่ายเงิน เพราะเราเป็นสล็อตเว็บใหญ่

jokerz
14 Jul 2024

https://mccannslc.com/ สล็อตเล่นง่าย เว็บตรงไม่ผ่านเอเย่น พร้อมระบบเติมเงินแบบออโต้ ที่เร็วที่สุดในไทย เติมเงินง่ายๆภายใน 10 วินาที และยังสามารถซื้อฟรีสปินได้ทุกเกม แบบง่ายๆนั้นเอง โดยที่ตัวระบบซื้อฟรีสปิน สามารถที่จะซื้อได้ตั้งแต่ 1 บาทเลยนั้นเอง

Strana: 1d,2,3,4,5,6,7,8,9,10,11,12... 26

Nový komentář