Files
HeroesStone_PRC8/_module/nss/gen_ouse_blessse.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

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);
}
}