Magery Train

Datum: 6/01/2013 19:14:45

Staženo: 816x

Popis:

Kouzli sipku, vyhealuje, vypije mr nebo medit.


Hodnocení: 4.1/10 (164 hlasy)

Download file:cs

Příkazy:

  • ,exec train_magery

Kód:

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

namespace Phoenix.Scripts {

    [RuntimeObject]
    public class MageryTrain {
    
        protected int method = 1;

        protected ushort[] bp = {0x0F7A, 0x0000};
        protected ushort[] ns = {0x0F88, 0x0000};
    
        protected ushort keg = 0x1843;
        protected ushort potion = 0x0F09;
        
        protected ushort[] emptyPotion = {0x0F0E, 0x0000};
    
        protected ushort mr = 0x0005;
        
        protected ushort[] bandages = {0x0E21, 0x0000};
    
        public MageryTrain() {
        
        }
        
        [Executable]
        public void train_magery() {
        
            while (!World.Player.Dead) {
            
                while (World.Player.Mana >= 5 && World.Player.Hits >= 10) {
                
                    if (UO.Count(this.ns[0], this.ns[1]) == 0 || UO.Count(this.bp[0], this.bp[1]) == 0) {
                        throw new System.ApplicationException("Nemas regy!");
                    }
                
                    UO.Cast("Magic Arrow", Aliases.Self);
                    UO.Wait(2000);
                    
                }
                
                this.heal();
                
                switch (this.method) {
                    case 0:
                        this.medit();
                        break;
                    case 1:
                        this.drinkMr();
                        break;
                }
            
            }
        
        }
        
        protected void heal() {
        
            while (World.Player.Hits < World.Player.MaxHits) {
            
                UO.DeleteJournal();
            
                if (UO.Count(this.bandages[0], this.bandages[1]) == 0) {
                    throw new System.ApplicationException("Nemas bandy!");
                }
            
                UO.WaitTargetSelf();
                UO.UseType(this.bandages[0], this.bandages[1]);
                
                string[] stopText = {
                        "You put the bloody bandage in your pack.",
                        "You put the bloody bandagess in your pack.",
                        "You apply the bandages, but they barely help."
                };
                
                Journal.WaitForText(stopText);
                
            }
        
        }
        
        protected void medit() {
        
            while (World.Player.Mana < World.Player.Intelligence) {
                UO.UseSkill("Meditation");
                UO.Wait(2500);
            }
        
        }
        
        protected void drinkMr() {
        
            if (UO.Count(this.potion, this.mr) == 0) {
                
                UO.WaitTargetType(this.emptyPotion[0], this.emptyPotion[1]);
                UO.UseType(this.keg, this.mr);
                UO.Wait(500);
                
            }
            
            UO.UseType(this.potion, this.mr);
            UO.Wait(500);
        
        }

    }
    
}
Japchae
17 Jan 2026

Experience stable pgslot online environments designed for consistent performance, strong security, and seamless ทางเข้าหลัก accessibility.

seo
12 Apr 2023

I these days got here throughout your weblog and had been analyzing along. I idea I would go away my first remark. I do not know what to mention besides that I actually have loved analyzing. Nice weblog. I will maintain travelling this weblog very often. คลินิกดึงหน้า

SEO
19 Mar 2023

Yes i'm absolutely agreed with this newsletter and that i simply need say that this newsletter could be very great and really informative article.I will ensure to be analyzing your weblog extra. You made an awesome factor however I can`t assist however wonder, what approximately the opposite side? !!!!!!Thanks mega168

SEO
07 Feb 2023

I would like to say that this blog really convinced me to do it! Thanks, very good post.Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work.I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! คลินิกทันตกรรม บางกะปิ

SEO
07 Feb 2023

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up.I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. spinix

SEO
07 Feb 2023

i love reading this article so beautiful!!great job!Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. สล็อต

SEO
07 Feb 2023

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work.This is very nice one and gives indepth information. thanks for this nice article... slotxo

SEO
07 Feb 2023

I love seeing blog that understand the value of providing a quality resource for free.This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good workNice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors. joker123

SEO
07 Feb 2023

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. slot

Nový komentář