Potionty pití/nalití

Datum: 27/07/2011 01:03:13

Staženo: 335x

Popis:

Mám takovej dojem, že autorem je TOMB.


Hodnocení: 4.2/10 (24 hlasy)

Download file:cs

Příkazy:

  • ,exec kkad
  • ,exec vypij "string napoj"
  • ,exec nalij "string napoj"
  • ,exec cekani

Kód:

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

namespace Script.Drinking
{
 
    public class Drinking
    {


[Executable]
        public static void kkad()
        {//by smoce
            UO.Print(0x027,"Přelejvač..");
            UO.Wait(300);
            UO.PrintInformation("Target Z ktere kade.");
            UOItem kad1 = new UOItem(UIManager.TargetObject());
            UO.Wait(500);
            UO.PrintInformation("Target DO ktere kade.");
            UOItem kad2 = new UOItem(UIManager.TargetObject());

            while (kad1.Exist)
            {
                kad1.Use();
                UO.WaitTargetObject(kad2.Serial);
                UO.Wait(600); // prelejvani nastaveni timer ...
            } 
        }
        public struct TMR
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x0003;
            public const ushort type = 0x0F09;
            public const ushort color = 0x0003;
        }

        public struct GH
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x08A7;
            public const ushort type = 0x0F0C;
            public const ushort color = 0x0000;
        }

        public struct TR
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x014D;
            public const ushort type = 0x0F0B;
            public const ushort color = 0x0000;

        }

        public struct GC
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x0842;
            public const ushort type = 0x0F07;
            public const ushort color = 0x0000;
        }

        public struct GS
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x0481;
            public const ushort type = 0x0F09;
            public const ushort color = 0x0000;
        }

        public struct GB
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x0025;
            public const ushort type = 0x0F0C;
            public const ushort color = 0x0025;
        }

        public struct LA
        {
            public const ushort Keg_t = 0x1843;
            public const ushort Keg_c = 0x000E;
            public const ushort type = 0x0F0D;
            public const ushort color = 0x000E;
        }

        [Executable]
        public void vypij(String napoj) //pije napoj podle jmena
        {
            switch (napoj)
            {
                case "GH":
                    if (UO.Count(GH.type) > 0)
                    {
                        UO.UseType(GH.type);
                        UO.Wait(500);
                        UO.Print(0x0435, "Zbyva " + UO.Count(GH.type) + " GH.");
                      
                    }
                    else
                    {
                        UO.Print("Doprdele, neni GH!!");
                    }
                    break;
                case "TMR":
                    if (UO.Count(TMR.type, TMR.color) > 0)
                    {
                        UO.UseType(TMR.type, TMR.color);
                        UO.Wait(500);
                        UO.Print(0x0480, "Zbyva " + UO.Count(TMR.type, TMR.color) + " TMR."); 
                    }
                    else
                    {
                        UO.Print("Doprdele, neni TMR!!");
                    }
                    break;
                case "TR":
                    if (UO.Count(TR.type) > 0)
                    {
                        UO.UseType(TR.type);
                        UO.Wait(500);
                        UO.Print("Zbyva " + UO.Count(TR.type) + " TR.");
                          
                    }
                    else
                    {
                        UO.Print("Doprdele, neni TR!!");
                    }
                    break;
                case "GS":
                    if (UO.Count(GS.type, GS.color) > 0)
                    {
                        UO.UseType(GS.type, GS.color);
                        UO.Wait(500);
                        UO.Print(0x0481, "Zbyva " + UO.Count(GS.type, GS.color) + " GS."); 
                    }
                    else
                    {
                        UO.Print("Doprdele, neni GS!!");
                    }
                    break;
                case "GC":
                    if (UO.Count(GC.type) > 0)
                    {
                        UO.UseType(GC.type);
                        UO.Wait(500);
                        UO.Print(0x0553, "Zbyva " + UO.Count(GC.type) + " GC.");
                         
                    }
                    else
                    {
                        UO.Print("Doprdele, neni GC!!");
                    }
                    break;
                case "GB":
                    if (UO.Count(GB.type, GB.color) > 0)
                    {
                        UO.UseType(GB.type, GB.color);
                        UO.Wait(500);
                        UO.Print("Zbyva " + UO.Count(GB.type, GB.color) + " GB."); 
                    }
                    else
                    {
                        UO.Print("Doprdele, neni GB!!");
                    }
                    break;
                 case "LAVA":
                    if (UO.Count(LA.type, LA.color) > 0)
                    {
                        UO.UseType(LA.type, LA.color);
                        UO.Wait(500);
                        UO.Print("Zbyva " + UO.Count(LA.type,LA.color) + " LAva."); 
                    }
                    else
                    {
                        UO.Print("Doprdele, neni GB!!");
                    }
                    break;
                default:
                    UO.PrintError("Spatne argumenty, nebo chybi napoj!! vypij \"jmeno_napoje\" (nalij \"TMR\"))");
                    break;
            }
        }

        [Executable]
        public void nalij(String napoj) //cepuje
        {
            switch (napoj)
            {
                case "GH":
                    if (UO.Count(GH.Keg_t, GH.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(GH.Keg_t, GH.Keg_c);
                            UO.Print(0x0435, "Cepnuto GH (" + UO.Count(GH.type, GH.color)+ ")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s GH");
                    }
                    break;
                  case "GB":
                    if (UO.Count(GB.Keg_t, GB.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(GB.Keg_t, GB.Keg_c);
                            UO.Print("Cepnuto GB ("+ UO.Count(GB.type, GB.color)+")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s GB");
                    }
                    break;
                case "TMR":
                    if (UO.Count(TMR.Keg_t, TMR.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(TMR.Keg_t, TMR.Keg_c);
                            UO.Print(0x0480, "Cepnuto TMR ("+ UO.Count(TMR.type, TMR.color)+")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s TMR");
                    }
                    break;
                case "GC":
                    if (UO.Count(GC.Keg_t, GC.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(GC.Keg_t, GC.Keg_c);
                            UO.Print(0x0553, "Cepnuto GC ("+ UO.Count(GC.type, GC.color)+")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s GC");
                    }
                    break;
                case "GS":
                    if (UO.Count(GS.Keg_t, GS.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(GS.Keg_t, GS.Keg_c);
                            UO.Print(0x0481, "Cepnuto GS ("+ UO.Count(GS.type, GS.color)+")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s GS");
                    }
                    break;
                case "TR":
                    if (UO.Count(TR.Keg_t, TR.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(TR.Keg_t, TR.Keg_c);
                            UO.Print("Cepnuto TR ("+ UO.Count(TR.type, TR.color)+")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s TR");
                    }
                    break;

                    case "LAVA":
                    if (UO.Count(LA.Keg_t, LA.Keg_c) > 0)
                    {
                        if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
                        {
                            World.Player.ChangeWarmode(WarmodeChange.Switch);
                            UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
                            UO.UseType(LA.Keg_t, LA.Keg_c);
                            UO.Print("Cepnuto LACA Bombiš ("+ UO.Count(LA.type, LA.color)+")");
                        }
                        else
                        {
                            UO.Print("Nemas lahvicky.");
                        }
                    }
                    else
                    {
                        UO.Print("Nemas kad s LAVA");
                    }
                    break;
                default:
                    UO.PrintError("Spatne argumenty, nebo chybi napoj!! vypij \"jmeno_napoje\" (nalij \"TMR\"))");
                    break;
            }
        }

// staci doplnit k potiontum cekani(); a je to tam ....
        [Executable]
        public void cekani() //cekani
        {
         UO.Wait(14000);       
         int x = 0;
         do  
         {  
          UO.Wait(1000);
          x++;  
         UO.Print("Zbyva: "+(5-x)+" sec");
         }  
         while (x < 5);  
         UO.Print("!!!!Muzes pit!!!!");
         }

    }
}
hyhMs
18 Apr 2017

Nike Online Store

nike shoes

Cheap Air Max Trainers

goedkope nike air max

Moncler Outlet Online

Cheap Michael Kors Tote Bag

moncler jacket sale

Moncler Jackets Discount Marketplace

nike mercurial soccer cleats

Bottes Ugg Femme Pas Cher

Nike Air Max Goedkoop

TOMS For Sale

fitflops sale uk

Nike Shox Cheap

adidas outlet

günstige nike schuhe

Nike Roshe Run Sale

Doudoune Moncler Pas Cher

Nike Air Huarache For Sale

Yeezy Men

Nike Shoes Sale Store

toms shoes outlet

Air Max Pas Cher

Nike Air Sneakers

air force one pas cher

Ray ban sale online

Boost Yeezy Sale On Line

louboutin heels

Yeezy Shoes Discount Marketplace

scarpe hogan outlet

Official Toms Shoes Outlet

longchamp bags on sale

canada goose jacket outlet

Nike Air 90

nfl store

chaussures nike pas cher

converse store

pandora beads

Air Max Femme

Canada Goose Outlet

ugg store

Air Max Kopen

billige nike sko

Uggs Pas Cher Soldes

Timberland Outlet

botas de futbol

retro jordans for cheap

Canada Goose Outlet

Ugg Pas Cher En France

zapatilla adidas

pandora jewelry store

nike joggesko

new yeezy shoes

prada outlet

hogan scontate

Nike Soccer Cleats Boots

Adidas Originals Stan Smith

nike sportschuhe

Canada goose dam

zapatillas running

Kobe Shoes Nike

coach factory outlet online

Air max levně

cheap uggs for women

chaussure basket homme

nike air

Nike Store

ADIDAS NMD SALE ON LINE

Cheap Toms Shoes Outlet

Chaussure Air Max

Doudoune Moncler Femme Pas Cher

Michael Kors

Ugg Pas Cher Femme

Michael Kors Handbags Discount

Discount TOMS

nike tn pas cher

Nike Air Pas Cher

Nike Air Women

Nike Outlet

Hogan Outlet

huarache sneakers

Adidas Neo Discount Sale

Soccer Boots Outlet nike

TOMS OUTLET

Nike Tn Requin Pas Cher

toms sale

Ray Ban Sunglasses Online

Michael Kors Outlet

Air Jordan Retro Sale

new jordan releases

suivre un envoi

Original Ugg Boots

Vans Black Sneakers

Yeezy Black

ugg factory outlet

abercrombie and fitch store

womens nike air max

Jordan Shoes Air

Pandora Store

Toms Outlet Online

Nike Shox discount Sale

Scarpe Air Max

Ray-Ban Official Discounted Site

Canada Goose Womens Coats

Coach Bags On Sale

ugg clearance

official NHL jerseys

canada goose jackets on sale

Nike Factory Store

Negozi Pandora

nike sb stefan janoski

Oakley Sunglasses Cheap

Adidas Shoes Discount Marketplace

reebok running shoes

chaussure Nike homme

Air max dam

Boty Nike Air

scarpe nike

23 IS BACK Store

christian louboutin outlet

Jordan Sneakers For Sale

nike jordan shoes

Adidas Superstar Sale Online

Pandora Official Website

newest lebron shoes

Toms Factory Outlet

Yeezy Boost Sale Online

Nike Pas Cher Femme

Doudoune Moncler Site Officiel

Pandora Store Sale

Moncler Sale

zapatos de futbol nike

Ugg Outlet Online Store

Nike Shoes Discount Marketplace

Uggs For Cheap

cheap uggs

Jordan Store

Stone Island Outlet

cheap nike air max

Air Nike

nike schuhe günstig

pandora outlet store

Michael Kors Clearance

Air Max Sneakers

UGG BOOTS FOR WOMEN

Air Max 90

Cheap Michael Kors

Boutique Ugg

Jordan Schoenen

nike sneakers

Pandora Store

Nike Air Damen

Moncler Outlet Store

Chaussure Nike Air Max Pas Cher

Hugo Boss Sale

Ugg boots Sale

Nike Air Max Cheap

Descuentos Nike

TOMS SHOES OUTLET

Adidas Originals Superstar

Adidas Superstar

nike air max running shoes

nike air jordan pas cher

Nike Air Jordan 11

zapatillas nike baratas

Nike Zapatos

vans shoe store

Discount Air Max

adidas store

new pandora charms

Cheap Toms Outlet Store

hyhMs 2017.4.18

14 Jan 2017

abercrombie and fitch store

retro jordans for cheap

Pandora Beads And Charms

nike air jordan pas cher

nike air schuhe herren

uggs for women

Air Max Femme

ugg factory outlet

Timberland skor

sac a main michael kors

Coach Bags On Sale

moncler outlet

Ugg boots Sale

cheap uggs for women

zapatillas nike baratas

Stone Island Outlet

longchamp tote bag

ugg boots classic

fitflops sale uk

adidas outlet

adidas schoenen

ugg boots outlet online

Canada Goose Official Site

cheap uggs

official NHL jerseys

adidas kläder

Nike Shoes Sale Store

cheap real uggs

chaussures nike pas cher

new pandora charms

Air Max 90

Ugg Boots On Clearance

Doudoune Moncler Site Officiel

Boutique Ugg

Michael Kors

Chaussure Nike Air Max Pas Cher

zapatilla adidas

Doudoune Moncler Solde

moncler girls

louboutin heels

nike sneakers

Air Huarache

chaussures de foot pas cher

ugg outlet online

Nike Store

botas de futbol

Toms Shoes For Women

zapatillas running

Ugg Grise Pas Cher

Doudoune Femme Pas Cher

chaussure Nike homme

adidas outlet stores online

womens nike air max

Ray ban sale online

Sheepskin Ugg Boots

Pandora Store

Sportschuhe Nike

nike chaussures

Chaussure Nike Pas Cher

Nike Air Max 90

Original Ugg Boots

Ugg Pas Cher En France

Botte Ugg Femme

ugg clearance

air force one pas cher

Veste Moncler Pas Cher

scarpe nike

new jordan releases

Canada Goose Outlet

Orecchini Pandora

Uggs Pas Cher Soldes

Air Max For Sale

Nike Air Max Cheap

ray ban wayfarer eyeglasses

Womens Ugg Boots

Jordan Store

vans shoe store

Nike Air Sneakers

adidas store

Adidas Shoes Discount Marketplace

Nike Air 90

Moncler Outlet Online

coach factory outlet online

nike mercurial soccer cleats

Nike Pas Cher Femme

nike free

Lebron 13

nike sportschuhe damen

Ugg Button

Bottes Ugg Femme Pas Cher

ugg boots cheap

nike sportschuhe

ugg boots for women

Chestnut Ugg Boots

Jordan Schoenen

Ugg Noir Pas Cher

Michael Kors Outlet

nike tn pas cher

Air Max Sneakers

Nike Air Women

Moncler Sale

nike shoes

pandora online

Canada Goose Outlet Store

toms shoes outlet

moncler coats for women

Ugg Homme Pas cher

Oakley Sunglasses Cheap

canada goose sale online

newest lebron shoes

Air Nike

Anelli Pandora

Sneakers Nike

Ugg Pas Cher Femme

cheap air max outlet

Air Jordan News

pandora jewelry store

Cheap Stone Island Jackets

chaussure basket homme

Toms Outlet Online

hyperdunk 2014

moncler jacket sale

nike schuhe günstig

pandora bracelet charms

converse store

Ugg Outlet Online Store

Uomo Hogan

Ray-Ban Official Discounted Site

Ugg Femme Pas Cher

Timberland Outlet

Uggs Outlet Store

air jordan

uggs for cheap

Nike Factory Store

Moncler Store

Boty Nike Air

Air Jordan Retro Sale

pandora outlet store

Pandora Official Website

nike air

scarpe hogan outlet

pandora rings

cheap christian louboutin

Soccer Boots Outlet nike

billige nike sko

Ugg Classic Tall

Nike Air Max Boutique

australia uggs outlet

huarache sneakers

Negozi Pandora

nike joggesko

portafoglio michael kors

nike damenschuhe

23 is back

Nike Air Huarache For Sale

toms sale

michael kors bags outlet

Cheap Michael Kors

new yeezy shoes

Adidas Superstar

nike air max running shoes

christian louboutin outlet

nike sb stefan janoski

Nike Air Jordan 11

Nike Zapatos

pandora beads

sac coach soldes

Jordan Sneakers For Sale

Oakley Outlet

Bottes Ugg Pas Cher

canada goose jackets on sale

michael kors handbags on sale

Nike Pas Cher Homme

pandora charm bracelet sale

longchamp bags on sale

uggs outlet

hogan scontate

Veste Moncler Femme

Air Jordan Release Date

Doudoune Moncler Pas Cher

prada outlet

Jordan Future

Michael Kors handbag discount

canada goose jacket outlet

goedkope nike air max

cheap nike air max

Soldes Ugg

Adidas Originals Superstar

hogan rebel donna

zapatos de futbol nike

Moncler Jacket Womens

Nike Online Store

reebok running shoes

Yeezy Black

tru religion jeans

australia uggs outlet

nfl store

Michael Kors Handbags Discount

ugg store

Michael Kors handbag on sale

nike jordan shoes

religion store

Canada Goose Outlet

hhcg-2 1.14

Nový komentář