GM Mortar

Skripty týkající se tohoto externího programu

Moderátor: Caleb

Odpovědět
Uživatelský avatar
Leny-m
Book Snake
Book Snake
Příspěvky: 123
Registrován: 12 říj 2006 22:18
Kontaktovat uživatele:

GM Mortar

Příspěvek od Leny-m »

Lepsi nahled zde.

Kad s potiony vedle sebe na zem, do baglu regy, prazdnou lahev, prazdny keg. Po spusteni vybrat gm mortar, kad s potiony a zbytek si doresi skript. Umi tmr, gh, gs, da se naucit analogicky i zbytek.

,gmmortar

Enjoy!

Kód: Vybrat vše

using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Phoenix;
using Phoenix.Communication;
using Phoenix.WorldData;

// made by Leny-m
  
namespace Phoenix.Scripts
{
    public class GmMortar
    {
        
        [Command]
        public void gmmortar()
        {
            UO.Print("Select GM mortar");
            UOItem gmmortar = World.GetItem(UIManager.TargetObject());
            UO.Print("Select target keg");
            UOItem keg = World.GetItem(UIManager.TargetObject());
             
            string potion = "";
            ushort graphic = 0;
            ushort color = 0;
            int limit = 0;
            ushort regGraphic = 0;
            if(keg.Color == 0x0003) // tmr
            {
                potion = "Total Mana Refresh";
                graphic = 0x0F09;
                color = 0x0003;
                limit = 612;
                regGraphic = 0x0F87;
            }
            else
                if(keg.Color == 0x08A7) // gh
                {
                    potion = "Greater Heal";
                    graphic = 0x0F0C;
                    color = 0x0000;
                    limit = 714;
                    regGraphic = 0x0F85;
                }
                else
                    if(keg.Color == 0x0481) // gs
                    {
                        potion = "Greater Strength";
                        graphic = 0x0F09;
                        color = 0x0000;
                        limit = 612;
                        regGraphic = 0x0F86;
                    }
             
            Journal.Clear();
            while(!World.Player.Dead && UO.Count(regGraphic, 0x0000) > limit)
            {
                UO.WaitMenu("Vyber typ potionu", potion);
                gmmortar.Use();
                Journal.WaitForText("vylil hotovy");
                Journal.Clear();
                UO.Wait(500);
                 
                UO.WaitTargetObject(keg);
                World.Player.Backpack.AllItems.FindType(0x1843,keg.Color).Use();
                Journal.WaitForText("Prelil jsi 50");
                Journal.Clear();
                UO.Wait(500);
                 
                UO.WaitTargetType(0x0F0E);
                World.Player.Backpack.AllItems.FindType(0x1843,keg.Color).Use();
                Journal.WaitForText("You put the");
                Journal.Clear();
                UO.Wait(500);
                 
                UO.WaitTargetType(graphic, color);
                keg.Use();
                Journal.WaitForText("You put the");
                Journal.Clear();
                UO.Wait(500);
            }
        }
    }
}
Odpovědět