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,13,14,15,16,17,18,19,20,21,22,23... 26
19 Feb 2023

วิดีโอเกมสล็อตออนไลน์ 3D กราฟฟิกสวยงาม น่าเล่น มีเกมให้เลือกเล่นมากมาย PGSLOT เว็บไซต์หลักที่ให้บริการเกม PGสล็อต มาใหม่ล่าสุด 2021 เว็บสล็อตเปิดใหม่ เล่นเกมสล็อตได้ทุกที่ผ่านทางเว็บไซต์ gd-slot

19 Feb 2023

"เว็บให้บริการเกมสล็อต สล็อตออนไลน์ คาสิโนออนไลน์ เกมยิงปลา ครบทุกค่ายสล็อต ใหม่รวมเกมสล็อตไว้ในเว็บเดียว เว็บ slot เล่นเกมสล็อตออนไลน์ อันดับ 1 ในประเทศไทย ระบบทันสมัย ฝาก-ถอนอัตโนมัติ AUTO" amb superslot app

19 Feb 2023

เว็บเดียวจบครอบคลุมทุกรูปแบบการเดิมพัน รองรับทุกแพลตฟอร์ม ไม่ว่าจะเป็นคอมพิวเตอร์ โทรศัพท์มือถือ หรือแท็บเล็ต รองรับทั้งระบบ Android และ iOS ครบทุกฟังก์ชั่น เพื่อมอบความสะดวกสบายและรูปแบบการเดิมพันที่ดีที่สุดให้กับคุณแล้ว pgslot

19 Feb 2023

ค่ายสล็อตเปิดใหม่แจกเครดิตฟรี สล็อตมาแรงเปิดใหม่ล่าสุด รวมทุกค่ายสล็อตแตกง่ายไว้ที่นี่ โปรโมชั่นสล็อตออนไลน์มากมาย พร้อมให้สมาชิกทุกท่านได้เลือกกันอย่างเต็มอิ่ม วอลเล็ต เครดิตฟรี100 รับไปเลยง่ายๆ เว็บสล็อตที่ดีที่สุด เว็บตรงไม่ผ่านเอเย่นต์ แหล่งรวมโปรสล็อตทุนน้อยแตกง่าย สล็อตโรม่าเครดิตฟรี100

19 Feb 2023

รวมเกมสล็อตทุกค่าย ที่มาพร้อมคุณสมบัติการ ซื้อฟีเจอร์โบนัสเกม หรือ ซื้อฟรีสปิน (Feature Buy Free Spins) ทดลองเล่นสล็อตซื้อฟรีสปิน วันนี้เว็บเมก้าเกมส์ ได้เปิดโอกาสให้คุณได้ ทดลองเล่นสล็อตฟรี ทุกเกมจากทุกค่ายยอดนิยมชั้นนำ เราได้คัดสรรเกมสล็อตคุณภาพสูง ทดลองเล่นpg ซื้อฟรีสปิน

19 Feb 2023

วิดีโอเกมสล็อตออนไลน์ 3D กราฟฟิกสวยงาม น่าเล่น มีเกมให้เลือกเล่นมากมาย PGSLOT เว็บไซต์หลักที่ให้บริการเกม PGสล็อต มาใหม่ล่าสุด 2021 เว็บสล็อตเปิดใหม่ เล่นเกมสล็อตได้ทุกที่ผ่านทางเว็บไซต์ gd-slot

19 Feb 2023

"เว็บให้บริการเกมสล็อต สล็อตออนไลน์ คาสิโนออนไลน์ เกมยิงปลา ครบทุกค่ายสล็อต ใหม่รวมเกมสล็อตไว้ในเว็บเดียว เว็บ slot เล่นเกมสล็อตออนไลน์ อันดับ 1 ในประเทศไทย ระบบทันสมัย ฝาก-ถอนอัตโนมัติ AUTO" amb superslot app

19 Feb 2023

เว็บเดียวจบครอบคลุมทุกรูปแบบการเดิมพัน รองรับทุกแพลตฟอร์ม ไม่ว่าจะเป็นคอมพิวเตอร์ โทรศัพท์มือถือ หรือแท็บเล็ต รองรับทั้งระบบ Android และ iOS ครบทุกฟังก์ชั่น เพื่อมอบความสะดวกสบายและรูปแบบการเดิมพันที่ดีที่สุดให้กับคุณแล้ว pgslot

09 Feb 2023

pg slot demo try playing slots Free trial slot games website Including all famous websites Including all new camps Ready to update all the new games every day. Whether it's the latest game of the camp PG slots on the 22Mega website have gathered all of them here. Let everyone try to experience 3D style slots, play for free, no registration required, apply for membership, play right away, no hassle.

09 Feb 2023

รวมสล็อตทดลองเล่น Many slots fans, easy to break 2022 slots, deposit, withdraw, no minimum, may think that introducing easy to break 2022 slots, that slot game is easy to break, difficult to break. Web slots are the easiest to break. depending on each game Web slots often break But in fact, direct web slots do not pass agents, no minimum.

09 Feb 2023

gdslot PG SLOT (PG Slots) 3D online video slots games, beautiful graphics, attractive to play, with many games to choose from PGSLOT, the main website that offers PG slots games, the latest in 2021, new open slots websites. Play slot games anywhere through the website. GLADIATOR-SLOT.COM Sign up for free

09 Feb 2023

https://ambsuperslot.app/ Slots AMB SUPERSLOT, a website providing slot games, online slots, online casinos, fish shooting games from all slots camps. New slot games in one website!

09 Feb 2023

ทดลองเล่นสล็อต Website to try playing slots for every camp for free. No need to apply, no deposit required. All slots players can Free trial of all slot games Update the latest games 2022, try playing slots, PG SLOT and many other camps. There are more than 1,000 games to choose from, open 24 hours a day.

08 Feb 2023

ไม่ว่าคุณจะอ่านเจอเรื่องราว ข้อมูลต่างๆ เกี่ยวกับเกมสล็อตน่าเล่นน่าลงทุนในปี 2022 มาจากที่ไหนก็ตาม คุณจะต้องลืมมันอย่างแน่นอน เราขอนำเสนอสุดยอดค่ายเกมที่น่าสนใจและสามารถทำกำไรได้อย่างแน่นอนในต้นปีนี้กับค่ายเกมแรก สมัคร ambbet รับโบนัสฟรีมากมายกว่า 5 โปร ท่านสามารถเลือกได้ว่าจะรับโปรใดก็ได้ มาพร้อมกับเกมใหม่ระบบใหม่ของเรา ด้วยระบบที่ไม่ว่าจะเป็นตัวเกมหรือกราฟฟิกของระบบ เสียงดนตรีประกอบ ทำให้ผู้ตื่นตาตื่นใจไปพร้อมกับเราใหม่ของเรา

08 Feb 2023

สมัครสมาชิกใหม่ ผ่านระบบออโต้ที่สะดวกรวดเร็วและง่ายต่อการใช้งานมากที่สุด ด้วยผู้พัฒนาที่มีความน่าเชื่อถือ มาตรฐานความปลอดภัย ความมั่นคง เว็บทดลองสล็อต ง่ายๆ เล่นได้ครบกำหนด ถอนได้เงินจริง เราคือผู้ให้บริการสล็อตออนไลน์ ที่มีมาตรฐานและตอบสนองความต้องการสำหรับผู้ใช้งานมากที่สุด เพียงแค่คุณสมัครสมาชิกกับเรา

08 Feb 2023

มีเกมส์ให้ เล่นสล็อตค่ายดังฟรี เล่นได้โดยไม่ต้องเติมเงินหรือฝากเงินใดๆเข้าระบบก็สามารถเล่นได้ฟรี ครบครันทุกรูปแบบทุกสไตล์หลากหลายแนว ลองเล่นสล็อตฟรี 2022 ไม่ว่าจะเป็นเกมยิงปลา หรือแนวเกมสล็อตที่ท่านไม่เคยเล่นตัวระบบทดลองเล่นของเรานั้น มีเกมสล็อตมากกว่า 250+ กว่าเกมในตอนนี้ เพื่อเปิดประสบการณ์ให้ท่านได้มากยิ่งขึ้น เว็บสล็อตไม่ผ่านเอเย่นต์ หรือจะเรียกอีกแบบว่า เว็บตรง รูปแบบใหม่ https://all4slot.com/ทดลองเล่นบาคาร่า/

08 Feb 2023

ทดลองเล่นสล็อต เล่นเกมสล็อตฟรี ไม่มีค่าใช่จ่ายในการเล่น ทดลองเล่นสล็อตpgฟรีได้เงินจริง โดยเว็บของเราได้นำเกมดังมากมายของค่ายต่าง ๆ ไม่ให้ ทดลองเล่นสล็อตฟรี โดยที่ไม่ต้องฝากในการเล่น เพื่อเพิ่มความั่นในให้กับท่านก่อนที่จะเข้ามาลงทุนจริง อย่าง ทดลองเล่นสล็อตออนไลน์ ฟรีทุกเกม PG SLOT , EVOPLAY , SLOTXO , PRAGMATIC PLAY , JILI GAME , RELAX GAMING , DAFABET , JOKER และอื่น ๆ และค่ายเกมชั้นนำอื่นๆอีกมากมาย ทางเรามีการ แจกเครดิตฟรี ที่สามารถ ซื้อฟรีสปิน ได้อีกด้วย

08 Feb 2023

เกมสล็อตออนไลน์ เว็บสล็อตแตกง่าย เล่นไม่อั้น สมาชิกใหม่100% ฝากถอนไม่มีขั้นต่ำ มีเกมสล็อตรวมกว่า 1000 เกมสล็อต pg แหล่งรวมค่ายเกมสล็อต เกมสล็อตทุกน้อย แจกเครดิตฟรี ทดลองเล่นฟรี พร้อมให้บริการตลอด 24 ชม.

สล็อต
29 Jan 2023

สล็อตเว็บใหญ่ มาแรงที่สุดแห่งปี แจกโบนัสจัดเต็ม ที่เปิดให้บริการ 24 ชั่วโมง มีพนักงานคุณภาพคอยดูแลตลอดเวลา ทำเงินได้เร็วเนื่องจากแจ็คพอตแตกเร็ว แตกง่าย. ทดลองเล่นสล็อตฟรีถอนได้ ไม่ต้องฝากก่อนก็ถอนได้ ไม่จำกัดจำนวน ไม่มีขั้นต่ำ

สล็อต
29 Jan 2023

เว็บที่ได้รวบรวมเกมดังๆ จากหลายค่าย มาไว้ที่นี่ที่เดียว สล็อตเว็บตรง ไม่ผ่านเอเย่นต์ รวมความสนุกมาไว้ มีเกมสล็อตทั้งหมด มีมากกว่า 1000 เกม. เว็บสล็อตที่คนเล่นเยอะที่สุด สามารถทดลองเล่นสล็อตออนไลน์ฟรี ฝาก-ถอน ผ่านระบบอัตโนมัติ เริ่มต้นฝากได้ที่ 1 บาท

Strana: 1d,13,14,15,16,17,18,19,20,21,22,23... 26

Nový komentář