Author Sticky: Post Working Scripts Here
Iruyun Posted: Sunday, 28 July 10:51PM
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)

NWScript:
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);

    }

}