#include "NW_I0_GENERIC"

void main()
{
object  user=GetLastUsedBy();
if(!GetIsObjectValid(user)||!GetIsPC(user))
return;
int nMyLevels = GetCharacterLevel(user);
if ((nMyLevels >= 16) && (nMyLevels <= 40))
    {
    effect eff=EffectVisualEffect(VFX_FNF_SUNBEAM);
    object target=GetObjectByTag("WP_chance_sarlo");
    AssignCommand(user,ClearAllActions());
    ApplyEffectToObject(DURATION_TYPE_INSTANT,eff,OBJECT_SELF);
    AssignCommand(user,ActionJumpToObject(target));
    }
    else
    {
    SpeakString( "You do not meet level requirements to access this portal " + "." );
    }
}