Rozdělení regu po dungu (univerzál i nekro)

Datum: 23/11/2014 14:55:33

Staženo: 751x

Popis:

Univerzální rozdělení po dungu...


  • Aktuálně: 3.64/10

Hodnocení: 3.6/10 (149 hlasy)

Download file:cs

Příkazy:

  • ,exec rozdel_regy_pro_1
  • ,exec rozdel_regy_pro_2
  • ,exec rozdel_regy_pro_3
  • ,exec rozdel_regy_pro_4
  • ,exec rozdel_regy_pro_5
  • ,exec rozdel_regy_pro_6
  • ,exec rozdel_regy "int kolik_lidi"
  • ,exec rozdel_regy "int kolik_lidi" " int necro"

Kód:

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

namespace Scripts.DarkParadise
{
    public class regyuklid
    {

        [Executable]
        public void Rozdel_regy_pro_1()
        {
            Rozdel_regy(1, 0);
        }
        [Executable]
        public void Rozdel_regy_pro_2()
        {
            Rozdel_regy(2, 0);
        }
        [Executable]
        public void Rozdel_regy_pro_3()
        {
            Rozdel_regy(3, 0);
        }
        [Executable]
        public void Rozdel_regy_pro_4()
        {
            Rozdel_regy(4, 0);
        }
        [Executable]
        public void Rozdel_regy_pro_5()
        {
            Rozdel_regy(5, 0);
        }
        [Executable]
        public void Rozdel_regy_pro_6()
        {
            Rozdel_regy(6, 0);
        }

        [Executable]
        public void Rozdel_regy(int kolik_lidi)
        {
            Rozdel_regy(kolik_lidi, 0);
        }
        [Executable]
        public void Rozdel_regy(int kolik_lidi, int necro)
        {
            UO.Print("Zamer Pytlik s regy a vemu si 1/" + kolik_lidi);
            UOItem to = new UOItem(UIManager.TargetObject());

            foreach (KeyValuePair<Graphic, string> item in new Dictionary<Graphic, string>
                                                           {
                                                               {0x0F7B,"BM"},
                                                               {0x0F7A,"BP"},
                                                               {0x0F84,"GA"},
                                                               {0x0F85,"GI"},
                                                               {0x0F86,"MR"},
                                                               {0x0F88,"NS"},
                                                               {0x0F8C,"SA"},
                                                               {0x0F8D,"SS"},
                                                               {0x0F87,"EON"}
                                                           })
                MoveItems(to, kolik_lidi, item);
            if (necro == 1)
            {
                foreach (KeyValuePair<Graphic, string> item in new Dictionary<Graphic, string>
                                                           {
                                                               {0x0F7F,"br"},
                                                               {0x0F7C,"bl"},
                                                               {0x0F83,"ec"},
                                                               {0x0F7E,"bo"},
                                                               {0x0F7D,"vb"},
                                                               {0x0F78,"Necro reg"},
                                                               {0x0F79,"Necro reg"},
                                                               {0x0F80,"Necro reg"},
                                                               {0x0F81,"Necro reg"},
                                                               {0x0F82,"Necro reg"},
                                                               {0x0F89,"Necro reg"},
                                                               {0x0F8B,"Necro reg"},
                                                               {0x0F8E,"Necro reg"},
                                                               {0x0F8F,"Necro reg"},
                                                               {0x0F91,"Necro reg"}
                                                           })
                    MoveItems(to, kolik_lidi, item);
            }
        }


        private void MoveItems(UOItem to, int kolik_lidi, KeyValuePair<Graphic, string> item)
        {
            int count = to.AllItems.Count(item.Key);
            int math = count / kolik_lidi;
            double maths = Math.Round(Convert.ToDouble(math));
            int regu_me = Convert.ToInt32(maths);
            if (regu_me >= 2)
            {
                UOItem ss = new UOItem(to.AllItems.FindType(item.Key));
                MoveItem(to, ss, item.Value, regu_me);
            }
        }

        private void MoveItem(UOItem to, UOItem item, string items, int count)
        {
            using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(item))
            {
                item.Move(Convert.ToUInt16(count), World.Player.Backpack.Serial);
                UO.PrintInformation(items + " presunuto " + count);
                UO.Wait(500);
            }
        }


    }
}
Strana: 1,2,3,4,5
06 Jul 2026

Restore Old Photos helps families, historians, and photographers preserve memories by bringing old pictures back to life.

06 Jul 2026

This online square face generator is the best Picrew alternative in English — create adorable square face icons for social media and game development

06 Jul 2026

HEIC to JPG offers a simple, fast, and free way to convert your HEIC files to high-quality JPG images online.

06 Jul 2026

Concrete Calculator helps contractors and DIY builders reduce waste and plan projects with precise material estimates.

06 Jul 2026

Brat Generator - Free Online Brat Style Cover Text Generator.

11 Jun 2026

It is fascinating to see such a dedicated archive for classic Ultima Online scripts and tools, especially for a community that clearly values long-term preservation. It reminds me how important it is to have reliable, high-quality gear for our own daily sessions, which is why we focus so much on designing durable custom drinkware solutions for enthusiasts who spend long hours at their desks. Thanks for keeping this piece of gaming history accessible for everyone.

10 Jun 2026

Image to Image AI provides a simple drag-and-drop interface that lets anyone generate high-resolution, AI-enhanced images in seconds.

09 Jun 2026

AI Image Editor is a powerful AI image editor for restoring and enhancing images.

09 Jun 2026

Ai Photo Enhancer is a fast and easy AI-powered photo enhancement tool.

09 Jun 2026

With Restore Old Photos, you can easily repair damaged, faded, or torn photographs and preserve them for future generations

09 Jun 2026

This online square face generator is the best Picrew alternative in English — create adorable square face icons for social media and game development

08 Jun 2026

HEIC to JPG is the perfect solution for users who need to convert their iPhone photos to the more widely supported JPG format.

08 Jun 2026

Concrete Calculator is a free online tool that helps you quickly estimate concrete volume for slabs, footings, and foundations.

08 Jun 2026

Brat Generator Online helps you create custom brat-style text images in seconds.

07 Jun 2026

Image to Image AI is a powerful online tool that transforms any picture into a new, enhanced, or stylized version using cutting-edge AI technology.

07 Jun 2026

AI Image Editor is a powerful AI image editor for restoring and enhancing images.

07 Jun 2026

Ai Photo Enhancer enhances images by increasing clarity, sharpness, and details.

06 Jun 2026

Our expert team at Restore Old Photos uses state-of-the-art techniques to restore your old pictures to their original quality

03 Jun 2026

Restore Old Photos is a free online tool that uses AI to repair scratches, tears, and fading in vintage and damaged photos.

03 Jun 2026

square face generator lets you create cute pixel art avatars for free — no login required, instant 256×256 PNG download for Discord, Twitter, and TikTok

Strana: 1,2,3,4,5

Nový komentář