Ejemplo n.º 1
0
        public static UOCharacter BloodyBandRessQuick(string target)
        {
            Game.PrintMessage("BloodyBandRessQuick - Ghosts: " + Healing.GhostCount());

            if (Healing.BloodyBandage.Exist && Healing.BloodyBandage.Amount >= 50)
            {
                TargetInfo tInfo = Targeting.GetTarget(target);
                if (tInfo.Success)
                {
                    if (tInfo.Character.Distance <= 1)
                    {
                        tInfo.Character.Print(Game.Val_GreenBlue, "[Ressuji Full..]");
                        Healing.BloodyBandage.Use();
                        UO.WaitTargetObject(tInfo);
                        Healing.LastCharacter = tInfo.Character;

                        if (tInfo.Character.Distance <= 1)
                        {
                            World.Player.PrintMessage("[Ress done " + Healing.BloodyBandage.Amount + "..]");
                        }

                        Game.Wait(50);

                        if (tInfo.Character.RequestStatus(125) && tInfo.Character.Hits > 0)
                        {
                            tInfo.Character.Print(Game.Val_GreenBlue, "[Ress OK " + tInfo.Character.Hits + "hp]");
                        }
                    }
                    else
                    {
                        tInfo.Character.Print(Game.Val_LightPurple, "[Daleko " + tInfo.Character.Distance + "...]");
                    }
                }
                else
                {
                    World.Player.PrintMessage("[Zadny duch..]", MessageType.Warning);
                }
            }
            else
            {
                Game.PrintMessage("Nemas dost kvravych BAND! " + Healing.BloodyBandage.Amount);
                return(Healing.BandRessQuick());
            }

            return(Healing.LastCharacter);
        }