void main()
{
object oPC = GetItemActivator();
int nRope = GetLocalInt(oPC, "NeedRope");
if (nRope == 1)
 {
 object oTarget = GetWaypointByTag("WP_PitReturn");
 location lTarget = GetLocation(oTarget);
 if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
 AssignCommand(oPC, ClearAllActions());
 ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_IMPROVE_ABILITY_SCORE), oPC);
 DelayCommand(1.5, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
 }
else return;
}
