Vendor - Nákup

Datum: 27/07/2011 01:05:57

Staženo: 654x

Popis:

Super věc pro nákupy. Zmáčknutím to vypíše jméno vendora + buy ovšem jen toho nejbližšího .. nastaveno 4 políčka okolo sebe jen ...


Hodnocení: 3.4/10 (118 hlasy)

Download file:cs

Příkazy:

  • ,vendors

Kód:

    using System;
    using System.Collections.Generic;
    using Phoenix;
    using Phoenix.WorldData;
    using System.Text;
    using System.Windows.Forms;
    using System.Diagnostics;
    using System.Runtime.InteropServices;
    using Phoenix.Gui;
    namespace Scripts.DarkParadise
    {
        public class doplnky
        { 

      [Command]
         
            public static void vendors()
            {

                UOCharacter ch = true ? findvendor() : new UOCharacter(UIManager.TargetObject());
                if (!ch.Exist)
                    ScriptErrorException.Throw("Vendor neni v dosahu.");

                UO.Say(ch.Name + " buy");

            }
            private static UOCharacter findvendor()
            {
                UOCharacter output = new UOCharacter(Serial.Invalid);
                foreach (UOCharacter ch in World.Characters)
          if ((ch.Model == 0x0191 || ch.Model == 0x0190) & (ch.Name != World.Player.Name))
                        if (ch.Distance < 5 && ch.Distance < output.Distance)
                            output = ch;
                return output;
            }

       

         

    }
    }

Zde ještě není žádný komentář.

Nový komentář