/* This script allows you to cast haste on the user of any object. This is my
first working script, and can't wait til I get my hands bloody wet in the
scripting business.
To use this script just copy / paste it into the 'OnUsed' script section of your
placeable. You can change the duration by editing the 100.0 to whatever you
wish. (100.0 = 100 seconds) */
void main()
{
object oUser = GetLastUsedBy();
effect eHaste = EffectHaste();
if (OBJECT_INVALID != oUser)
{
ActionCastSpellAtObject( SPELL_MASS_HASTE, oUser, METAMAGIC_ANY, TRUE, 0,
PROJECTILE_PATH_TYPE_DEFAULT, TRUE);
ActionSpeakString(" Speed of the righteous to you!");
ApplyEffectToObject( DURATION_TYPE_TEMPORARY, eHaste, oUser, 100.0);
}
}