void main()
{
    // Get the placeable object itself
    object oPlaceable = OBJECT_SELF;

    // Get the area where the placeable is located
    object oArea = GetArea(oPlaceable);
    
    // Ensure the script operates only in the specified area
    if(GetTag(oArea) != "A_CAS_CASINOCOINS")
    {
        // Exit if the placeable is not in the specified area
        return;
    }

    // Check for creatures in the area with the cas_trapdooriago variable set
    object oCreature = GetFirstObjectInArea(oArea);
    while(oCreature != OBJECT_INVALID)
    {
        if(GetLocalInt(oCreature, "CAS_IAGOBOUND") > 0 && GetPCPlayerName(oCreature) == "IMP-Possible")
        {
            // Make the creature speak the line with animation description
            AssignCommand(oCreature, ActionSpeakString("<cÖ>[Animated Ropes suddenly wrap around Iago and firmly bind them to the nearest piece of furniture, facing the desk.]</c>"));
        }
        // Move to the next creature in the area
        oCreature = GetNextObjectInArea(oArea);
    }
}
