All pastes #21647 Raw Edit

Something

public text v1 · immutable
#21647 ·published 2005-08-30 21:47 UTC
rendered paste body
		public bool LocateWaterwalk()
		{
			if (wow.HighestKnownSpells.Contains("Water Walking"))
			{
				if (wow.Buffs["Water Walking"] == null || wow.Buffs["Water Walking"].TimeLeft < 30 )
				{
					// stop fishing/lure apply if any, they will start again
					wow.SendScript("SpellStopCasting()");

					while (wow.CastSpellByName("Water Walking"))
					{
						// do things :x?

						Thread.Sleep(100);
					}
				}
			}
			else
			{
				// not a shaman or doesn't have the skill yet
				ApplicationContext.Instance.Settings.UseWaterwalk = false;
			}

			return false;
		}