Hlídání HP pod mez, pak heal

Datum: 27/07/2011 01:12:39

Staženo: 597x

Popis:

Když vám někdo ubere HP tak vás pak začne healit :-)


Hodnocení: 3.2/10 (93 hlasy)

Download file:cs

Příkazy:

  • ,exec heal_pod_xx "int cislo"

Kód:

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

    namespace Scripts.asooisdasds
    {
        public class smocessdf
        {


  
            [Executable]
            public void Heal_pod_xx(int cislo)
            {
                UO.Print(0x00B3, "Hlidani hp " + cislo);

            znova:


                UOItem bandage = World.Player.Backpack.AllItems.FindType(0x0E21);
                if (bandage.Serial != Serial.Invalid)
                {
                    while (World.Player.Hits <= cislo)
                    {
                        UO.WaitTargetSelf();
                        bandage.Use();
                        UO.Wait(4000);
                    }
                    UO.Wait(1000);
                    goto znova;
                }
                else
                {
                    UO.Print("Nemas bandy !!!");
                }
            }
 



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

Nový komentář