/* Argo's third ward, modified by Frankie */
/*   based on Script generated by
http://www.lilacsoul.revility.com    */

//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

if (GetLocalInt(oPC, "NW_JOURNAL_ENTRY" + "argohelp" ) ) return;

ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUNBEAM), oPC);

switch(GetAlignmentGoodEvil(oPC))
{
case (ALIGNMENT_GOOD):
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectTrueSeeing(), oPC, 6.6f);
    DelayCommand(3.0, FloatingTextStringOnCreature("A thundering voice beckons you into the cave.", oPC) );
    break;

case (ALIGNMENT_EVIL):
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectPoison(POISON_WRAITH_SPIDER_VENOM), oPC, 66.6f);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAbilityDecrease(ABILITY_WISDOM, 4), oPC, 66.6f);
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(d6(4), DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_ENERGY), oPC);
    DelayCommand(3.0, FloatingTextStringOnCreature("A threatening roar echoes from the cave.", oPC) );

default:
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(d6(4), DAMAGE_TYPE_DIVINE, DAMAGE_POWER_ENERGY), oPC);
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(d6(4), DAMAGE_TYPE_POSITIVE, DAMAGE_POWER_ENERGY), oPC);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectDazed(), oPC, 66.6f);
}

} /* end isgood3 */
