Alangara_PRC8/_module/nss/pm_act_negdamage.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

30 lines
720 B
Plaintext

void ApplyEffect(object oPC, object oArea)
{
if (GetArea(oPC) == oArea)
{
effect eEffect = EffectDamage(5, DAMAGE_TYPE_NEGATIVE, DAMAGE_POWER_NORMAL);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
}
else return;
DelayCommand(9.0, ApplyEffect(oPC, oArea));
}
void main()
{
object oPC = GetEnteringObject();
object oArea = GetArea(OBJECT_SELF);
object oHolder=GetNearestObjectByTag("PM_IscalioOut",OBJECT_SELF,1);
if (!GetIsPC(oPC))
{
if (GetIsPC(GetMaster(oPC))) ApplyEffect(oPC, oArea);
}
else
{
ApplyEffect(oPC, oArea);
}
if(GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD)
AdjustReputation(oPC,oHolder,50);
}