/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnEnter
void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));

if (DoOnce==TRUE) return;

SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);

object oTarget;
oTarget = oPC;

effect eEffect;
eEffect = EffectPoison(POISON_GREENBLOOD_OIL);

ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);

eEffect = EffectDamage(2, DAMAGE_TYPE_NEGATIVE, DAMAGE_POWER_NORMAL);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);


AddJournalQuestEntry("Escape", 1, oPC, TRUE, FALSE);

AddJournalQuestEntry("Poison", 1, oPC, TRUE, FALSE);

SendMessageToPC(oPC, "This entire area is filled with poison gas.");

}

