Magery train - target

Datum: 19/09/2012 23:12:01

Staženo: 532x

Popis:

upraveny script ale neni overen v praxy


Hodnocení: 4.2/10 (66 hlasy)

Download file:cs

Příkazy:

  • ,exec sipka_target
  • ,meditationa
  • ,cekanisjournala "string text"

Kód:

using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
using System.Linq;
using Phoenix.Communication;
using Phoenix.Runtime;
using Phoenix.Runtime.Reflection;
namespace Phoenix.Scriptq
{
    public class smoce_traine
    {//by smoce
        public const ushort methode = 2;//0-Meditace 1-MR 2-TMR
        public const ushort TMR_MR_KAD = 0x1843;
        public const ushort TMR_MR_pot = 0x0F09;
        public const ushort TMR_barva = 0x0003;
        public const ushort MR_barva = 0x0005;
        public const int uspesnostssa = 0;
 
 
        [Executable]
        public static void sipka_target()
        {
 
            int pocitani = 0;
            UO.PrintInformation("Script Train Magery");
             UO.PrintInformation("Target sipkovaneho");
            UOCharacter NPC = new UOCharacter(UIManager.TargetObject());
            
        sipka:
            if (UO.Count(0x0F7A, 0x0000) == 0 || UO.Count(0x0F88, 0x0000) == 0)
            {
                UO.Print("Dosli regy !");
            }
 
 
            if (World.Player.Mana > 5 && NPC.Hits > 10)
            {
                UO.Cast("Magic Arrow", NPC.Serial);
                pocitani++;
                UO.Wait(2000);
                goto sipka;
            }
 
            if (NPC.Hits < 10)
            {
                UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21);
                if (bandage.Serial != Serial.Invalid)
                {
                    while (NPC.Hits < NPC.MaxHits)
                    {
                        UO.WaitTargetObject(NPC.Serial);
                        bandage.Use();
                        UO.Wait(4000);
                    }
 
                }
                else
                {
                    UO.Print("Nemas bandy !!!");
                }
                goto sipka;
            }
            if (World.Player.Mana < 5)
            {
 
                if (methode == 2)
                {
 
                    if (UO.Count(TMR_MR_pot, TMR_barva) == 0)
                    {
                        if (Journal.Contains("You are preoccupied with thoughts of battle."))
                        {
                            World.Player.ChangeWarmode(0);
 
                            UO.Print("Neni lahvicka!");
                        }
                        else
                        {
                            UO.UseType(TMR_MR_KAD, TMR_barva);
                            UO.WaitTargetType(0x0f0e);
                            UO.Print("Prelito" + UO.Count(TMR_MR_pot, TMR_barva) + "  Total Mana Refles.");
                            UO.Wait(2000);
                        }
 
                        UO.UseType(TMR_MR_pot, TMR_barva);
                        UO.Wait(100);
                        UO.Print("Zbyva " + UO.Count(TMR_MR_pot, TMR_barva) + " Total Mana Refles.");
 
                    }
                    else
                    {
                        UO.UseType(TMR_MR_pot, TMR_barva);
                        UO.Wait(100);
                        UO.Print("Zbyva " + UO.Count(TMR_MR_pot, TMR_barva) + " Total Mana Refles.");
                    }
                    goto sipka;
                }
                if (methode == 1)
                {
 
                    if (UO.Count(TMR_MR_pot, MR_barva) == 0)
                    {
                        if (Journal.Contains("You are preoccupied with thoughts of battle."))
                        {
                            World.Player.ChangeWarmode(0);
 
                            UO.Print("Neni lahvicka!");
                        }
                        else
                        {
                            UO.UseType(0x1843, 0x0003);
                            UO.WaitTargetType(0x0f0e);
                            UO.Print("Prelito" + UO.Count(0x0F09, 0x0003) + "  Total Mana");
                            UO.Wait(2000);
                        }
 
                        UO.UseType(TMR_MR_pot, MR_barva);
                        UO.Wait(100);
                        UO.Print("Zbyva " + UO.Count(TMR_MR_pot, TMR_barva) + " Total Mana");
 
                    }
                    else
                    {
                        UO.UseType(TMR_MR_pot, MR_barva);
                        UO.Wait(100);
                        UO.Print("Zbyva " + UO.Count(TMR_MR_pot, TMR_barva) + " Total Mana");
                    }
                    goto sipka;
                }
                if (methode == 0)
                {
 
                    do
                    {
                        meditationa();
                    }
                    while (NPC.Mana < NPC.MaxMana);
                    goto sipka;
                }
 
            }
            goto sipka;
        }
 
 
 
        [Command]
        public static void meditationa()
        {
 
            UO.DeleteJournal();
            UO.UseSkill("Meditation");
            CekanisJournala("You enter|You must wait");
 
            do
            {
                UO.Wait(100);
            }
            while ((UO.InJournal("You lose|You must wait")));
            UO.Wait(500);
        }
 
 
 
 
        [Command]
        public static void CekanisJournala(string text)
        {
 
            do
            {
                UO.Wait(200);
            }
            while (UO.InJournal(text));
            UO.Wait(500);
        }
 
 
 
 
 
 
 
 
    }
 
}
liuchunkai
24 Jan 2018

20180124lck

canada goose jackets

polo ralph lauren factory store

birkenstock outlet

michael kors outlet

ugg outlet

longchamp handbags

michael?kors?handbags

longchamp solde

cheap nhl jerseys

burberry outlet store

cheap basketball shoes

michael kors outlet

michael kors handbags

nfl jerseys

true religion jeans

canada goose outlet

michael kors outlet clearance

coach factory outlet

oakley sunglasses wholesale

nfl jerseys

coach outlet online

canada goose coats

mbt outlet

hermes outlet store

moncler coats

nike trainers

canada goose outlet store

ugg outlet

ray ban sunglasses on sale

coach outlet online

ugg boots

ugg boots

ray ban sunglasses

ugg boots

broncos jerseys

canada goose jackets outlet

oakley sunglasses

coach outlet store online

christian louboutin outlet

ugg outlet online

tory burch outlet

uggs on clearance

coach outlet

michael kors outlet clearance

kobe 9 elite

moncler coats

mbt shoes outlet

asics shoes

ugg outlet store

tory burch outlet online

coach outlet

christian louboutin online

ray ban sunglasses outlet

michael kors outlet online

michael kors outlet online

cheap nfl jerseys

longchamp handbags

christian louboutin shoes

tory burch outlet stores

michael kors outlet

nike air max 90

polo outlet

tory burch outlet

coach factory outlet

adidas outlet store

pandora charms sale clearance

polo ralph lauren outlet

christian louboutin sale

coach outlet

kate spade outlet online

oakley sunglasses wholesale

longchamp pliage

ralph lauren shirts

ferragamo shoes

michael kors outlet

soccer jerseys wholesale

christian louboutin outlet

ugg outlet store

ralph lauren outlet

uggs outlet

cheap ugg boots

herve leger outlet

nfl jersey wholesale

jordan shoes

coach outlet online

coach outlet store online

coach outlet

coach outlet

true religion outlet uk

swarovski crystal

christian louboutin outlet

kobe bryants shoes

uggs outlet

nike shoes

ray ban sunglasses outlet

oakley sunglasses

ugg outlet

longchamp outlet online

polo ralph lauren

cheap jordans

20180124lck

Nový komentář