Craftman

Datum: 22/11/2014 23:35:45

Staženo: 387x

Popis:

~BOT~   id: 7625278

 

Autor neznámý

 

 

 private ushort _ironWiresG = 0x1876;
        private ushort _copperStringG = 0x1879;
        private ushort _silverStringG = 0x1877;
        private ushort _goldStringG = 0x1878;
        private ushort _ironStringG = 0x1420;
        private ushort _formaLahveG = 0x0E7F;


Hodnocení: 4.1/10 (59 hlasy)

Download file:cs

Příkazy:

  • ,exec ironwire
  • ,exec ironwire "int pocetv"
  • ,exec ironstring
  • ,exec ironstring "int pocetv"
  • ,exec copperwire
  • ,exec copperwire "int pocetv"
  • ,exec silverwire
  • ,exec silverwire "int pocetv"
  • ,exec goldwire
  • ,exec goldwire "int pocetv"
  • ,exec formalahve
  • ,exec formalahve "int pocetv"

Kód:

using Phoenix;
using Phoenix.WorldData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Collections;
using System.Threading;
using System.Diagnostics;
using System.Drawing;

namespace Scripts.DarkParadise
{
    public class Craftsman
    {
        private UOItem _zdrojB;
        private UOItem _cielB;
        private string[] _hlasky = { "You put", "You fail", "Tinkering failed", "You have failed" };
        private int _podarky;
        private int _nepodarky;

        //grafika materiálu
        private ushort _ironG = 0x1BEF;
        private ushort _copperG = 0x1BE3;
        private ushort _silverG = 0x1BF5;
        private ushort _goldG = 0x1BE9;
        private ushort _iStringG = 0x1876;
        private ushort _barrelLidG = 0x1DB8;
        private ushort _barrelStavesG = 0x1EB1;

        //color materiálu
        //_nullC - pre všetko, čo má color hodnotu 0x0000
        private ushort _nullC = 0x0000;

        //grafika nástrojov pre crafta
        private ushort _tinkerTools = 0x1EBC;

        //grafika výrobkov
        private ushort _ironWiresG = 0x1876;
        private ushort _copperStringG = 0x1879;
        private ushort _silverStringG = 0x1877;
        private ushort _goldStringG = 0x1878;
        private ushort _ironStringG = 0x1420;
        private ushort _formaLahveG = 0x0E7F;

        //color vyrobkov
        private ushort _formaLahveC = 0x0909;

        //jednotlivé menu výroby
        private string[] _iWires = { "Tinkering", "Wires", "Wires", "Iron Wire" };
        private string[] _cWires = { "Tinkering", "Wires", "Wires", "Copper Wire" };
        private string[] _sWires = { "Tinkering", "Wires", "Wires", "Silver Wire" };
        private string[] _gWires = { "Tinkering", "Wires", "Wires", "Gold Wire" };
        private string[] _iString = { "Tinkering", "Wires", "Wires", "Iron String" };
        private string[] _formaL = { "Carpentry", "Containers & Cont. parts", "Containers & Cont. parts", "Forma na lahve" };

        /// <summary>
        /// Materiál -- 1 Iron ingot 
        /// Skill -- Tinkering 0.0
        /// </summary>
        [Executable]
        public void IronWire()
        {
            IronWire(0);
        }
        [Executable]
        public void IronWire(int pocetV)
        {
            Hashtable table = new Hashtable();
            ushort[] material = { _iStringG, _nullC };
            table.Add(1, material);

            Craftenie(_iWires, pocetV, _tinkerTools, table, _ironWiresG, _nullC);
        }

        /// <summary>
        /// Materiál -- 1 Iron wire 
        /// Skill -- Tinkering 35 + 35 blacksmithy 
        /// </summary>
        [Executable]
        public void IronString()
        {
            IronString(0);
        }
        [Executable]
        public void IronString(int pocetV)
        {
            Hashtable table = new Hashtable();
            ushort[] material = { _ironG, _nullC };
            table.Add(1, material);

            Craftenie(_iString, pocetV, _tinkerTools, table, _ironStringG, _nullC);
        }

        /// <summary>
        /// Materiál -- 1 copper ingot 
        /// Skill -- Tinkering 15,0 
        /// </summary>
        [Executable]
        public void CopperWire()
        {
            CopperWire(0);
        }
        [Executable]
        public void CopperWire(int pocetV)
        {
            Hashtable table = new Hashtable();
            ushort[] material = { _copperG, _nullC };
            table.Add(1, material);

            Craftenie(_cWires, pocetV, _tinkerTools, table, _copperStringG, _nullC);
        }

        /// <summary>
        /// Materiál -- 1 sivler ingot 
        /// Skill -- Tinkering 20,0 
        /// </summary>
        [Executable]
        public void SilverWire()
        {
            SilverWire(0);
        }
        [Executable]
        public void SilverWire(int pocetV)
        {
            Hashtable table = new Hashtable();
            ushort[] material = { _silverG, _nullC };
            table.Add(1, material);

            Craftenie(_sWires, pocetV, _tinkerTools, table, _silverStringG, _nullC);
        }

        /// <summary>
        /// Materiál -- 1 gold ingot 
        /// Skill -- Tinkering 25,0 
        /// </summary>
        [Executable]
        public void GoldWire()
        {
            GoldWire(0);
        }
        [Executable]
        public void GoldWire(int pocetV)
        {
            Hashtable table = new Hashtable();
            ushort[] material = { _goldG, _nullC };
            table.Add(1, material);

            Craftenie(_gWires, pocetV, _tinkerTools, table, _goldStringG, _nullC);
        }

        /// <summary>
        /// Materiál -- 2 barrel staves, 2 barrel lid 
        /// Skill -- Carpentry 90,0
        /// </summary>
        [Executable]
        public void FormaLahve()
        {
            FormaLahve(0);
        }
        [Executable]
        public void FormaLahve(int pocetV)
        {
            Hashtable table = new Hashtable();
            ushort[] material1 = { _barrelLidG, _nullC, 2 };
            ushort[] material2 = { _barrelStavesG, _nullC, 2 };

            table.Add(1, material1);
            table.Add(2, material2);

            Craftenie(_formaL, pocetV, _tinkerTools, table, _formaLahveG, _formaLahveC);
        }

        /// <summary>
        /// Základ craftenia pre výrobky, pre ktoré je potrebné len jeden materiál na výrobu
        /// menu - craftské menu pre daný výrobok
        /// pocet - udáva číslo, koľko výrobkov chce vyrobiť
        /// tool - grafika crafstkého nástroja, ktoré je potrebné pre daný výrobok
        /// mastros - hashtabulka kde  value = pole s hodnotami materiálu,  grafika, color a počet daného materiálu
        /// vyrobokG - grafika výsledného výrobku
        /// vyrobokC - color výsledného výrobku
        /// </summary>
        public void Craftenie(string[] menu, int pocet, ushort tool, Hashtable matros, ushort vyrobokG, ushort vyrobokC)
        {
            //grafika a množštvo materiálu, ktorého počet je najmenší pri výrobe
            ushort matG = 0x000;
            int amount = 0;
            _podarky = 0;
            _nepodarky = 0;

            //kontrola nástrojov
            UOItem tools = World.Player.Backpack.AllItems.FindType(tool, _nullC);
            if (tools.Amount < 1)
            {
                UO.PrintWarning("Chyba ti nastroj, koncim!");
                return;
            }
            
            TargetContainers();
        
        slucka:
            foreach (DictionaryEntry de in matros)
            {
                ushort[] temp = (ushort[])de.Value;
                //ushort mnozstvo = (ushort)((int)de.Key * 20);

                if (amount > temp[2])
                {
                    amount = (int)temp[2];
                    matG = temp[0];
                }

                if (UO.Count(temp[0]) < temp[2])
                {
                    UOItem material = _zdrojB.AllItems.FindType(temp[0], temp[1]);
                    if (material.Amount > 0)
                        material.Move((ushort)(temp[2] * 20), World.Player.Backpack.Serial);
                    else
                    {
                        UO.PrintWarning("Nedostatok materialu u zdroje, koncim!");
                        Presun(vyrobokG, vyrobokC, matros);
                        return;
                    }
                }
            }

            do
            {
                UO.Print(_podarky == pocet);
                if (pocet > 0)
                {
                    if (_podarky == pocet)
                    {
                        Presun(vyrobokG, vyrobokC, matros);
                        return;
                    }
                }

                //UO.PrintInformation("Vyrabam");
                UO.WaitMenu(_iWires);
                tools.Use();
                Journal.WaitForText(true, _hlasky);

                if (UO.InJournal("You put"))
                    _podarky++;
                else
                    _nepodarky++;

                UO.DeleteJournal();
            }
            while (UO.Count(matG) > amount);

        goto slucka;
        }

        private void Presun(ushort vyrobokG, ushort vyrobokC, Hashtable matros)
        {
            foreach (DictionaryEntry de in matros)
            {
                ushort[] temp = (ushort[])de.Value;

                //prenesiem výrobky do bedne + vrátim materiál na pôvodné miesto
                UO.PrintInformation("Prenasam vyrobky a materialy");
                UOItem vyrobky = World.Player.Backpack.AllItems.FindType(vyrobokG, vyrobokC);
                UOItem materialy = World.Player.Backpack.AllItems.FindType(temp[0], temp[1]);

                vyrobky.Move(0, _cielB.Serial);
                materialy.Move(0, _zdrojB.Serial);
            }
        }

        private void TargetContainers()
        {
            UO.PrintInformation("Vyber bednu z matrosom!");
            _zdrojB = new UOItem(UIManager.TargetObject());
            UO.Wait(100);
            UO.PrintInformation("Vyber bednu na hotove vyrobky");
            _cielB = new UOItem(UIManager.TargetObject());

            _zdrojB.Use();
            _cielB.Use();
        }
    }
}

Strana: 1,2,3
undoubtedbest
03 Aug 2019

Single cup coffee makers best single cup coffee makers are handy and quite convenient at home, office or camping.

UfabetDeposit
24 Jul 2019

The players attained play and bet the casino constantly, inducing the UFABETเว็บตรง gamer to discover that playing and betting can make good stuff for the gambler.

UFABETเว็บตรง
24 Jul 2019

Pictures like having the same image will make the ball player win money and win the bet, which will be considered a gambling UFABETเว็บตรง game. Simple and clear to see, able to meet the requirements of the gambler to play and bet on the slots that he likes to fully enjoy.

EssexMarinect
24 Jul 2019

To be true and is something that most UFABETเว็บตรง gambler wants every time with the capability and free time, always wanting ahead and play betting.

DomcomEnergy
24 Jul 2019

Hsien-ball is just a praiseworthy score that's good and has experience in playing UFABETเว็บตรง and long betting can enjoy and gamble until there's to be able to win, which will be considered every gambler to apply and learn to become yourself.

UFABET
24 Jul 2019

That will earn money for gamblers UFABET to play and so expensive that there's a method to win, obtain the richness that's what creates the gambler's dream.

Stokesad
24 Jul 2019

In the event that you learn how to be able to play UFABETฝาก and stab the casino, it becomes a great and challenging situation for the gambler as well.

UFABETเว็บตรง
24 Jul 2019

All these things may make every UFABETเว็บตรง gambler have the courage in the future and play online gambling due to the real intent of each gambler to come to play and bet about it.

TeraOffice
24 Jul 2019

Will make lots of players because it gives the ball player the opportunity UFABETฝาก to succeed from winning the bet undeniably

UFABETฝาก
24 Jul 2019

The gambling game that will earn money for the players. Can find and meet with UEFA Bet UFABETฝาก fully and constantly.

UFABET
24 Jul 2019

To play and to bet UFABET fully, if you learn a prospect of winning, it finds yourself an attractive achievement.

UFA365sแจก
24 Jul 2019

เราจะใช้ในการทำกำไรจากผลกำไรต่าง UFA365sแจก

NontonSeru24
16 Jul 2019

Di NontonSeru24, Anda dapat nonton movie sub indo gratis untuk menghabiskan waktu yang menyenangkan. Pilih dari koleksi luas berbagai kategori film dan film.

15 Jul 2019

"Dream Market, The largest, most popular and established Darknet Market is officially shutting down which opens up whole new avenues for newer markets such as Empire Market, that’s what this Empire Market review is all about. Empire Market seems to have grown tremendously since my last review; which coincidentally was almost exactly a year ago (25.04.2018). Although more than just an Empire Market review, I aim to make this piece an ultimate, all-encompassing guide on the marketplace, and would aim to answers (in detail, with screenshots) all the questions associated with the marketplace."

Hondenbench
15 Jul 2019

Pluizig, vormvast hondenmand met dikke rand en zacht oppervlak. Ideaal voor in hondenbench een hondenbench. In verschillende maten verkrijgbaar.

15 Jul 2019

Back up your data via Veeam Cloud Backup with self service technology and BaaS. You will have a Backup Site and DRSite to prevent disaster. With a simple method Just a few steps Technical assistance with a professional team Ready to take care of you all the time

uBanker trade
14 Jul 2019

يوبانكر تقدم الفرصه للتدوال والربح لكل شخص , مبتدء او ذو خبره , تعلم المزيد عن موقعنا uBanker trade

Country Inn and Suites
14 Jul 2019

When you are ready to recharge, then cool down at the resort’s outdoor pool or stop by the gym for an exhilarating exercise. Explore the best hotel from Country Inn & Suites by Radisson. Our rooms provide you, and even our breakfast prepares you.

CrackNowInfo
13 Jul 2019

CrackNow Info provides cracked scripts, cracked SEO tools download and plugins, not trial or demo versions. Have a check today.

13 Jul 2019

For more health info go to Zerox [url=https://zerox.com]Zerox[/url]

Strana: 1,2,3

Nový komentář