Exemplo n.º 1
0
        //---------------------------------------------------------------------------------------------

        protected static void OnCastingSuccess(CastSpellInfo info)
        {
            if (info.Spell == StandardSpell.WallofStone || info.Spell == StandardSpell.EnergyField)//PF?
            {
                if (Game.Debug)
                {
                    Game.PrintMessage("Casting WallofStone SUCCESS");
                }

                Game.Wait(250);

                if (CalebConfig.UseWallTime)
                {
                    WallTimeKeeper.TryFoundAddWall();
                }
            }

            if (Game.Debug)
            {
                Game.PrintMessage("Casting SUCCESS");
            }

            if (CalebConfig.CastMessageType != MessagePrintType.None)
            {
                if (CalebConfig.CastMessageType == MessagePrintType.Default)
                {
                    World.Player.PrintMessage("[Ok]", Game.Val_GreenBlue);
                }
                else
                {
                    Game.PrintMessage("[Ok]", Game.Val_GreenBlue);
                }
            }
        }
Exemplo n.º 2
0
        //---------------------------------------------------------------------------------------------

        protected static void OnCastingFailed(CastSpellInfo info)
        {
            if (Game.Debug)
            {
                Game.PrintMessage("Casting FAILED");
            }
        }
Exemplo n.º 3
0
        public static void TrySetCastingSpell(CastSpellInfo spellInfo)
        {
            try
            {
                if (CastingSpellInfo == null || CastingSpellInfo.CastRunDuration > 150)
                {
                    casting = false;
                }

                if (!Casting)
                {
                    LastCastedSpell  = spellInfo.Spell;
                    CastingSpellInfo = spellInfo;
                    Casting          = true;
                }
            }
            catch
            {
                Game.PrintMessage("TrySetCastingSpell - fail!", MessageType.Error);
            }
        }
Exemplo n.º 4
0
        //---------------------------------------------------------------------------------------------

        protected static void OnCastingSuccess(CastSpellInfo info)
        {
            if (info.Spell == StandardSpell.WallofStone || info.Spell == StandardSpell.EnergyField)//PF?
            {
                if (Game.Debug)
                {
                    Game.PrintMessage("Casting WallofStone SUCCESS");
                }

                Game.Wait(250);

                if (CalebConfig.UseWallTime)
                {
                    WallTimeKeeper.TryFoundAddWall();
                }
            }

            if (Game.Debug)
            {
                Game.PrintMessage("Casting SUCCESS");
            }
        }