//--------------------------------------------------------------------------------------------- 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); } } }
//--------------------------------------------------------------------------------------------- protected static void OnCastingFailed(CastSpellInfo info) { if (Game.Debug) { Game.PrintMessage("Casting FAILED"); } }
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); } }
//--------------------------------------------------------------------------------------------- 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"); } }