All pastes #472072 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-05 08:09 UTC
rendered paste body
	method RestPulse()
	{
		Move -stop
		if (${Me.PctMana} > ${This.FullMana}) && (${Me.PctHPs} > ${This.FullHealth})
		{
			Toon:Standup
		}
		if ${Me.Buff[Drink](exists)} || ${Me.Buff[Eat](exists)}
		{
			return
		}
		if !${Consumable.HasDrink}
		{
			if ${Toon.CastSpellGUID[${Me.GUID},Conjure Water]}
			{
				return
			}
			return
		}
		if !${Consumable.HasFood}
		{
			if ${Toon.CastSpellGUID[${Me.GUID},Conjure Food]}
			{
				return
			}
			return
		}
		if ${Toon.EnsureBuff[${Me.GUID},${This.ArmourBuff}]} 
		{
			return
		}
		if ${Toon.EnsureBuff[${Me.GUID},Arcane Intellect]} 
		{
			return
		}
		if ${This.UseDampen} 
		{
			if ${Toon.EnsureBuff[${Me.GUID},Dampen Magic]}
			{
				return
			}
		}
		if ${Consumable.HasDrink} && !${Me.Buff[Drink](exists)} && (${Me.PctMana} < ${This.FullMana})
		{
			Consumable:useDrink
			return
		}
		if ${Consumable.HasFood} && !${Me.Buff[Food](exists)} && (${Me.PctHPs} < ${This.FullHealth})
		{
			Consumable:useFood
			return
		}

	}