generated from Jaysyn/ModuleTemplate
32 lines
885 B
Plaintext
32 lines
885 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name gen_ouse_blessse
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/* Cast bless on pc when used, "on use"
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Rary
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
object oPC = GetLastUsedBy();
|
|
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
|
|
{
|
|
return;
|
|
}
|
|
if ( GetIsPC( oPC ) )
|
|
{
|
|
effect ebless1 = EffectAttackIncrease( 3 );
|
|
effect ebless2 = EffectSavingThrowIncrease( SAVING_THROW_ALL, 2 );
|
|
ActionCastSpellAtObject( SPELL_BLESS, oPC );
|
|
ApplyEffectToObject( DURATION_TYPE_INSTANT, ebless1, oPC );
|
|
ApplyEffectToObject( DURATION_TYPE_INSTANT, ebless2, oPC );
|
|
SendMessageToPC (oPC, "You can now sense a strong feeling of serenity...");
|
|
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
|
|
}
|
|
}
|
|
|
|
|