Changed folder name.
Changed folder name.
This commit is contained in:
14
_module/nss/cursetrigger.nss
Normal file
14
_module/nss/cursetrigger.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oCreature = GetEnteringObject();
|
||||
|
||||
//Make sure the opener is a PC
|
||||
if (GetIsObjectValid(oCreature) == TRUE && GetIsPC(oCreature) == TRUE)
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectCurse(), oCreature, 90.0f);
|
||||
SendMessageToPC(oCreature, "The very air you breath in these catacombs is cursed.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user